diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2023-06-22 01:16:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-22 01:16:57 +0300 |
commit | f3efdba1a0cff9b8d5a2df7149824dba2b59b653 (patch) | |
tree | 79315d2a3037931627a831737b0d5acb55e6e08b /health/health.c | |
parent | 8e8531d402b4038c12dfb73431559082787ebaa8 (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.c | 3 |
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); |