syslog-ng source
stats.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2002-2013 Balabit
3  * Copyright (c) 1998-2013 Balázs Scheidler
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  *
19  * As an additional exemption you are allowed to compile & link against the
20  * OpenSSL libraries as published by the OpenSSL project. See the file
21  * COPYING for details.
22  *
23  */
24 
25 #ifndef STATS_H_INCLUDED
26 #define STATS_H_INCLUDED
27 
28 #include "syslog-ng.h"
29 #include "stats/stats-cluster.h"
30 #include "cfg-parser.h"
31 
32 typedef struct _StatsOptions
33 {
34  gint log_freq;
35  gint level;
36  gint lifetime;
39 } StatsOptions;
40 
41 enum
42 {
47 };
48 
49 void stats_reinit(StatsOptions *options);
50 void stats_init(void);
51 void stats_destroy(void);
52 
54 
55 #endif
56 
CfgYesNoAuto
Definition: cfg-parser.h:69
@ STATS_LEVEL0
Definition: stats.h:43
@ STATS_LEVEL2
Definition: stats.h:45
@ STATS_LEVEL3
Definition: stats.h:46
@ STATS_LEVEL1
Definition: stats.h:44
void stats_options_defaults(StatsOptions *options)
Definition: stats.c:257
void stats_reinit(StatsOptions *options)
Definition: stats.c:234
void stats_destroy(void)
Definition: stats.c:249
void stats_init(void)
Definition: stats.c:241
Definition: stats.h:33
CfgYesNoAuto syslog_stats
Definition: stats.h:38
gint log_freq
Definition: stats.h:34
gint level
Definition: stats.h:35
gint lifetime
Definition: stats.h:36
gint max_dynamic
Definition: stats.h:37