diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-01 22:33:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-01 22:33:59 +0000 |
commit | 526afdf95a5ab8a12a96c3095501265077ff24f2 (patch) | |
tree | 0594fb88c9da773c1d465fab7a4e56c2c1a1d91a /src/libstat/stat_api.h | |
parent | 65892d6abe7d054499bd6cbfe36d991885466ec0 (diff) | |
download | rspamd-526afdf95a5ab8a12a96c3095501265077ff24f2.tar.gz rspamd-526afdf95a5ab8a12a96c3095501265077ff24f2.zip |
Return statfiles stats from controller.
Diffstat (limited to 'src/libstat/stat_api.h')
-rw-r--r-- | src/libstat/stat_api.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstat/stat_api.h b/src/libstat/stat_api.h index 2dbf19372..c0023ffbd 100644 --- a/src/libstat/stat_api.h +++ b/src/libstat/stat_api.h @@ -55,6 +55,14 @@ gboolean rspamd_stat_classify (struct rspamd_task *task, lua_State *L, GError ** gboolean rspamd_stat_learn (struct rspamd_task *task, gboolean spam, lua_State *L, GError **err); +/** + * Get the overall statistics for all statfile backends + * @param cfg configuration + * @param total_learns the total number of learns is stored here + * @return array of statistical information + */ +ucl_object_t * rspamd_stat_statistics (struct rspamd_config *cfg, + guint64 *total_learns); void rspamd_stat_unload (void); |