audit_series_count

March 26, 2020 Contributors

Name

audit_series_count — Get the accumulated counts from a named series for a given key

Synopsis

#include "modules/validate/audit_series.h"

| int **audit_series_count** ( | name, |   |
|   | start, |   |
|   | end, |   |
|   | key, |   |
|   | ac); |   |

const char * <var class="pdparam">name</var>;
int <var class="pdparam">start</var>;
int <var class="pdparam">end</var>;
char * <var class="pdparam">key</var>;
accept_construct * <var class="pdparam">ac</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Get the accumulated counts from a named series for a given key.

Parameters

name
  • name of the series.
start
  • the starting time window.
end
  • the ending time window (inclusive).
key
  • the key for which the counts is desired. For series of type "cidr", key is of the form "ip/mask". to use the remote IP of current session, caller can pass in "ac" instead.
ac
  • accept construct. This is the alternative for passing in an IP for cidr series.

Return Values

counts summed over the given time windows. -1 in case of error.

**Configuration Change. ** This feature is available starting from Momentum 3.1.