syslog-ng source
stats-query-commands.c File Reference
#include "messages.h"
#include "stats-query-commands.h"
#include "stats-prometheus.h"
#include "stats-csv.h"
#include "stats/stats-query.h"
#include "control/control-connection.h"
#include "scratch-buffers.h"
Include dependency graph for stats-query-commands.c:

Typedefs

typedef gboolean(* query_cmd) (const gchar *output_fmt, const gchar *filter_expr, GString *result)
 

Enumerations

enum  QueryCommand {
  QUERY_GET = 0 , QUERY_GET_RESET , QUERY_GET_SUM , QUERY_GET_SUM_RESET ,
  QUERY_LIST , QUERY_LIST_RESET , QUERY_CMD_MAX
}
 

Functions

GString * stats_execute_query_command (const gchar *command, gpointer user_data, gboolean *cancelled)
 
void stats_process_query_command (ControlConnection *cc, GString *command, gpointer user_data, gboolean *cancelled)
 

Variables

const gint CMD_STR = 0
 
const gint QUERY_CMD_STR = 1
 
const gint QUERY_OUT_FMT_STR = 2
 
const gint QUERY_FILTER_STR = 3
 

Typedef Documentation

◆ query_cmd

typedef gboolean(* query_cmd) (const gchar *output_fmt, const gchar *filter_expr, GString *result)

Enumeration Type Documentation

◆ QueryCommand

Enumerator
QUERY_GET 
QUERY_GET_RESET 
QUERY_GET_SUM 
QUERY_GET_SUM_RESET 
QUERY_LIST 
QUERY_LIST_RESET 
QUERY_CMD_MAX 

Function Documentation

◆ stats_execute_query_command()

GString* stats_execute_query_command ( const gchar *  command,
gpointer  user_data,
gboolean *  cancelled 
)

◆ stats_process_query_command()

void stats_process_query_command ( ControlConnection *  cc,
GString *  command,
gpointer  user_data,
gboolean *  cancelled 
)

Variable Documentation

◆ CMD_STR

const gint CMD_STR = 0

◆ QUERY_CMD_STR

const gint QUERY_CMD_STR = 1

◆ QUERY_FILTER_STR

const gint QUERY_FILTER_STR = 3

◆ QUERY_OUT_FMT_STR

const gint QUERY_OUT_FMT_STR = 2