summaryrefslogtreecommitdiffstats
path: root/database/rrdcalc.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-01 06:15:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-01 06:15:11 +0000
commit483926a283e118590da3f9ecfa75a8a4d62143ce (patch)
treecb77052778df9a128a8cd3ff5bf7645322a13bc5 /database/rrdcalc.h
parentReleasing debian version 1.31.0-4. (diff)
downloadnetdata-483926a283e118590da3f9ecfa75a8a4d62143ce.tar.xz
netdata-483926a283e118590da3f9ecfa75a8a4d62143ce.zip
Merging upstream version 1.32.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'database/rrdcalc.h')
-rw-r--r--database/rrdcalc.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/database/rrdcalc.h b/database/rrdcalc.h
index b4122c605..d7446f63a 100644
--- a/database/rrdcalc.h
+++ b/database/rrdcalc.h
@@ -38,6 +38,7 @@ struct rrdcalc {
char *name; // the name of this alarm
uint32_t hash; // the hash of the alarm name
+ uuid_t config_hash_id; // a predictable hash_id based on specific alert configuration
char *exec; // the command to execute when this alarm switches state
char *recipient; // the recipient of the alarm (the first parameter to exec)
@@ -149,6 +150,43 @@ struct rrdcalc {
struct rrdcalc *next;
};
+struct alert_config {
+ char *alarm;
+ char *template_key;
+ char *os;
+ char *host;
+ char *on;
+ char *families;
+ char *plugin;
+ char *module;
+ char *charts;
+ char *lookup;
+ char *calc;
+ char *warn;
+ char *crit;
+ char *every;
+ char *green;
+ char *red;
+ char *exec;
+ char *to;
+ char *units;
+ char *info;
+ char *classification;
+ char *component;
+ char *type;
+ char *delay;
+ char *options;
+ char *repeat;
+ char *host_labels;
+
+ char *p_db_lookup_dimensions;
+ char *p_db_lookup_method;
+ uint32_t p_db_lookup_options;
+ int32_t p_db_lookup_after;
+ int32_t p_db_lookup_before;
+ int32_t p_update_every;
+};
+
extern int alarm_isrepeating(RRDHOST *host, uint32_t alarm_id);
extern int alarm_entry_isrepeating(RRDHOST *host, ALARM_ENTRY *ae);
extern RRDCALC *alarm_max_last_repeat(RRDHOST *host, char *alarm_name, uint32_t hash);