]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
stats: stats-settings - Add description setting for metrics.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Thu, 14 Nov 2019 22:33:49 +0000 (23:33 +0100)
committermartti.rannanjarvi <martti.rannanjarvi@open-xchange.com>
Sat, 18 Apr 2020 14:55:11 +0000 (14:55 +0000)
src/stats/stats-settings.c
src/stats/stats-settings.h

index 3e8e045851bce2a1efacf3743b561a4162ee3454..3f0643033a8eee5361e3cc7de11ad2e53e308c0b 100644 (file)
@@ -110,6 +110,7 @@ static const struct setting_define stats_metric_setting_defines[] = {
        { SET_STRLIST, "filter", offsetof(struct stats_metric_settings, filter), NULL },
        DEF(SET_STR, exporter),
        DEF(SET_STR, exporter_include),
+       DEF(SET_STR, description),
        SETTING_DEFINE_LIST_END
 };
 
@@ -122,6 +123,7 @@ static const struct stats_metric_settings stats_metric_default_settings = {
        .exporter = "",
        .group_by = "",
        .exporter_include = "name hostname timestamps categories fields",
+       .description = "",
 };
 
 const struct setting_parser_info stats_metric_setting_parser_info = {
index d5a722477939e8c8d909bb0389a93e90330178c3..821056c4e8cb3a47ff4c381607615c7b156c60f3 100644 (file)
@@ -96,6 +96,7 @@ struct stats_metric_settings_group_by {
 
 struct stats_metric_settings {
        const char *name;
+       const char *description;
        const char *event_name;
        const char *source_location;
        const char *categories;