summaryrefslogtreecommitdiffstats
path: root/health/health.c
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2023-06-22 01:16:57 +0300
committerGitHub <noreply@github.com>2023-06-22 01:16:57 +0300
commitf3efdba1a0cff9b8d5a2df7149824dba2b59b653 (patch)
tree79315d2a3037931627a831737b0d5acb55e6e08b /health/health.c
parent8e8531d402b4038c12dfb73431559082787ebaa8 (diff)
New alerts endpoint (#15232)
* alerts / alerts_log v2 * Add global_id to ae Populate entries with global id * Remove transition id from template Change history to instances * Link ae to rc in all cases Code cleanup
Diffstat (limited to 'health/health.c')
-rw-r--r--health/health.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/health/health.c b/health/health.c
index 3dd3f96162..97df34fcf8 100644
--- a/health/health.c
+++ b/health/health.c
@@ -1128,6 +1128,7 @@ void *health_main(void *ptr) {
rc->last_status_change = now;
rc->last_updated = now;
rc->value = NAN;
+ rc->ae = ae;
#ifdef ENABLE_ACLK
if (netdata_cloud_enabled)
@@ -1396,6 +1397,7 @@ void *health_main(void *ptr) {
rc->last_status_change = now;
rc->old_status = rc->status;
rc->status = status;
+ rc->ae = ae;
}
rc->last_updated = now;
@@ -1473,6 +1475,7 @@ void *health_main(void *ptr) {
ae->flags |= HEALTH_ENTRY_RUN_ONCE;
}
rc->run_flags |= RRDCALC_FLAG_RUN_ONCE;
+ rc->ae = ae;
health_process_notifications(host, ae);
debug(D_HEALTH, "Notification sent for the repeating alarm %u.", ae->alarm_id);
health_alarm_wait_for_execution(ae);