suricata
output-json-stats.h File Reference
#include "output-stats.h"
Include dependency graph for output-json-stats.h:
This graph shows which files directly or indirectly include this file:

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)
 

Functions

json_t * StatsToJSON (const StatsTable *st, uint8_t flags)
 turn StatsTable into a json object More...
 
TmEcode OutputEngineStatsReloadTime (json_t **jdata)
 
TmEcode OutputEngineStatsRuleset (json_t **jdata)
 
void JsonStatsLogRegister (void)
 

Detailed Description

Author
Tom DeCanio td@np.nosp@m.ulse.nosp@m.tech..nosp@m.com

Definition in file output-json-stats.h.

Macro Definition Documentation

#define JSON_STATS_DELTAS   (1<<2)

Definition at line 31 of file output-json-stats.h.

Referenced by StatsToJSON().

#define JSON_STATS_THREADS   (1<<1)

Definition at line 30 of file output-json-stats.h.

Referenced by StatsSetUI64(), and StatsToJSON().

#define JSON_STATS_TOTALS   (1<<0)

Definition at line 29 of file output-json-stats.h.

Referenced by StatsSetUI64(), and StatsToJSON().

Function Documentation

void JsonStatsLogRegister ( void  )

Definition at line 526 of file output-json-stats.c.

References LOGGER_JSON_STATS, MODULE_NAME, OutputRegisterStatsModule(), and OutputRegisterStatsSubModule().

Referenced by OutputRegisterLoggers().

Here is the call graph for this function:

Here is the caller graph for this function:

TmEcode OutputEngineStatsReloadTime ( json_t **  jdata)

Definition at line 160 of file output-json-stats.c.

References OUTPUT_ENGINE_LAST_RELOAD.

TmEcode OutputEngineStatsRuleset ( json_t **  jdata)

Definition at line 164 of file output-json-stats.c.

References OUTPUT_ENGINE_ALL, OUTPUT_ENGINE_RULESET, strlcpy(), and TM_ECODE_OK.

Here is the call graph for this function: