syslog-ng source
stats-aggregator-registry.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021 One Identity
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * As an additional exemption you are allowed to compile & link against the
19  * OpenSSL libraries as published by the OpenSSL project. See the file
20  * COPYING for details.
21  *
22  */
23 
24 #ifndef STATS_AGGREGATOR_REGISTRY_H
25 #define STATS_AGGREGATOR_REGISTRY_H
26 
28 #include "stats/stats-registry.h"
29 #include "syslog-ng.h"
30 
33 
34 void stats_aggregator_lock(void);
35 void stats_aggregator_unlock(void);
36 
39 
40 /* type specific helpers */
41 
42 void stats_register_aggregator_maximum(gint level, StatsClusterKey *sc_key, StatsAggregator **aggr);
43 void stats_register_aggregator_average(gint level, StatsClusterKey *sc_key, StatsAggregator **aggr);
44 void stats_register_aggregator_cps(gint level, StatsClusterKey *sc_key, StatsClusterKey *sc_key_input, gint stats_type,
45  StatsAggregator **aggr);
46 void stats_unregister_aggregator(StatsAggregator **aggr);
47 
48 
49 #endif /* STATS_AGGREGATOR_REGISTRY_H */
void stats_aggregator_registry_deinit(void)
Definition: stats-aggregator-registry.c:137
void stats_aggregator_lock(void)
Definition: stats-aggregator-registry.c:47
void stats_register_aggregator_average(gint level, StatsClusterKey *sc_key, StatsAggregator **aggr)
Definition: stats-aggregator-registry.c:192
void stats_unregister_aggregator(StatsAggregator **aggr)
Definition: stats-aggregator-registry.c:241
void stats_aggregator_remove_orphaned_stats(void)
Definition: stats-aggregator-registry.c:79
void stats_register_aggregator_cps(gint level, StatsClusterKey *sc_key, StatsClusterKey *sc_key_input, gint stats_type, StatsAggregator **aggr)
Definition: stats-aggregator-registry.c:216
void stats_register_aggregator_maximum(gint level, StatsClusterKey *sc_key, StatsAggregator **aggr)
Definition: stats-aggregator-registry.c:168
void stats_aggregator_unlock(void)
Definition: stats-aggregator-registry.c:54
void stats_aggregator_registry_init(void)
Definition: stats-aggregator-registry.c:128
void stats_aggregator_registry_reset(void)
Definition: stats-aggregator-registry.c:96