diff options
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); |