suricata
|
#include "output-stats.h"
Go to the source code of this file.
Macros | |
#define | JSON_STATS_TOTALS (1 << 0) |
#define | JSON_STATS_THREADS (1 << 1) |
#define | JSON_STATS_DELTAS (1 << 2) |
#define | JSON_STATS_NO_ZEROES (1 << 3) |
Functions | |
json_t * | StatsToJSON (const StatsTable *st, uint8_t flags) |
turn StatsTable into a json object | |
TmEcode | OutputEngineStatsReloadTime (json_t **jdata) |
TmEcode | OutputEngineStatsRuleset (json_t **jdata) |
void | JsonStatsLogRegister (void) |
void | OutputJsonStatsRegisterTests (void) |
Definition in file output-json-stats.h.
#define JSON_STATS_DELTAS (1 << 2) |
Definition at line 31 of file output-json-stats.h.
#define JSON_STATS_NO_ZEROES (1 << 3) |
Definition at line 32 of file output-json-stats.h.
#define JSON_STATS_THREADS (1 << 1) |
Definition at line 30 of file output-json-stats.h.
#define JSON_STATS_TOTALS (1 << 0) |
Definition at line 29 of file output-json-stats.h.
void JsonStatsLogRegister | ( | void | ) |
Definition at line 501 of file output-json-stats.c.
References LOGGER_JSON_STATS, MODULE_NAME, and OutputRegisterStatsSubModule().
Referenced by OutputRegisterLoggers().
TmEcode OutputEngineStatsReloadTime | ( | json_t ** | jdata | ) |
Definition at line 161 of file output-json-stats.c.
References OUTPUT_ENGINE_LAST_RELOAD.
TmEcode OutputEngineStatsRuleset | ( | json_t ** | jdata | ) |
Definition at line 165 of file output-json-stats.c.
References OUTPUT_ENGINE_RULESET.
void OutputJsonStatsRegisterTests | ( | void | ) |
Definition at line 131 of file output-json-stats.c.
References UtRegisterTest().
json_t * StatsToJSON | ( | const StatsTable * | st, |
uint8_t | flags | ||
) |
turn StatsTable into a json object
flags | JSON_STATS_* flags for controlling output |
Definition at line 211 of file output-json-stats.c.
References DEBUG_VALIDATE_BUG_ON, flags, JSON_STATS_DELTAS, JSON_STATS_NO_ZEROES, JSON_STATS_THREADS, JSON_STATS_TOTALS, StatsRecord_::name, StatsTable_::nstats, StatsTable_::ntstats, offset, StatsRecord_::pvalue, StatsRecord_::short_name, StatsTable_::start_time, StatsTable_::stats, StatsRecord_::tm_name, StatsTable_::tstats, unlikely, and StatsRecord_::value.