summaryrefslogtreecommitdiffstats
path: root/database/rrdcalc.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-01 06:15:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-01 06:15:04 +0000
commite970e0b37b8bd7f246feb3f70c4136418225e434 (patch)
tree0b67c0ca45f56f2f9d9c5c2e725279ecdf52d2eb /database/rrdcalc.h
parentAdding upstream version 1.31.0. (diff)
downloadnetdata-e970e0b37b8bd7f246feb3f70c4136418225e434.tar.xz
netdata-e970e0b37b8bd7f246feb3f70c4136418225e434.zip
Adding upstream version 1.32.0.upstream/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);