diff options
author | Emmanuel Vasilakis <mrzammler@mm.st> | 2023-09-19 15:35:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-19 15:35:44 +0300 |
commit | 9f0fbff5b8d014235b44d4460291d56128855f1d (patch) | |
tree | e791cdf9841e0121e50798183fff8c7519f05cbc /database/rrdcalc.h | |
parent | f07a55346a888fe4928522b6ae5381cde14667b6 (diff) |
Add a summary field to alerts (#15886)
* add a summary field to alerts
* add summary field to db
* rebase
* better migration
* rebase
* change email notification
* revert to silent
* use macro
* add the summary field to some alerts
* add more summary fields
* change migration function
* add to postgres alerts
* add summary to vernemq
* more summary fields
* more summary fields
* fixes
* add doc
Diffstat (limited to 'database/rrdcalc.h')
-rw-r--r-- | database/rrdcalc.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/database/rrdcalc.h b/database/rrdcalc.h index 2081452c7a..c635c284c2 100644 --- a/database/rrdcalc.h +++ b/database/rrdcalc.h @@ -64,8 +64,10 @@ struct rrdcalc { STRING *source; // the source of this alarm STRING *units; // the units of the alarm + STRING *summary; // a short alert summary + STRING *original_summary; // the original summary field before any variable replacement STRING *original_info; // the original info field before any variable replacement - STRING *info; // a short description of the alarm + STRING *info; // a description of the alarm int update_every; // update frequency for the alarm @@ -170,6 +172,8 @@ struct rrdcalc { #define rrdcalc_module_match(rc) string2str((rc)->module_match) #define rrdcalc_source(rc) string2str((rc)->source) #define rrdcalc_units(rc) string2str((rc)->units) +#define rrdcalc_original_summary(rc) string2str((rc)->original_summary) +#define rrdcalc_summary(rc) string2str((rc)->summary) #define rrdcalc_original_info(rc) string2str((rc)->original_info) #define rrdcalc_info(rc) string2str((rc)->info) #define rrdcalc_dimensions(rc) string2str((rc)->dimensions) @@ -206,6 +210,7 @@ struct alert_config { STRING *exec; STRING *to; STRING *units; + STRING *summary; STRING *info; STRING *classification; STRING *component; |