summaryrefslogtreecommitdiffstats
path: root/health/health_json.c
diff options
context:
space:
mode:
authorEmmanuel Vasilakis <mrzammler@mm.st>2022-04-20 14:32:59 +0300
committerGitHub <noreply@github.com>2022-04-20 14:32:59 +0300
commit6caab18c2e7c8b142b0fac3e0087cb3b67862410 (patch)
tree538898076d6206ef112e615a6607e84254a7fd54 /health/health_json.c
parentfce09f9c899f10c5d39125c93b111b3fc4b7aaa6 (diff)
Store alert log entries even if alert is repeating. (#12226)
* store alarm log entries even if it is repeating * log times repeated for an alert
Diffstat (limited to 'health/health_json.c')
-rw-r--r--health/health_json.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/health/health_json.c b/health/health_json.c
index be95100bc2..56318472b7 100644
--- a/health/health_json.c
+++ b/health/health_json.c
@@ -227,6 +227,7 @@ static inline void health_rrdcalc2json_nolock(RRDHOST *host, BUFFER *wb, RRDCALC
"\t\t\t\"crit_repeat_every\": \"%u\",\n"
"\t\t\t\"value_string\": \"%s\",\n"
"\t\t\t\"last_repeat\": \"%lu\",\n"
+ "\t\t\t\"times_repeat\": %lu,\n"
, rc->chart, rc->name
, (unsigned long)rc->id
, hash_id
@@ -259,6 +260,7 @@ static inline void health_rrdcalc2json_nolock(RRDHOST *host, BUFFER *wb, RRDCALC
, rc->crit_repeat_every
, value_string
, (unsigned long)rc->last_repeat
+ , (unsigned long)rc->times_repeat
);
if(unlikely(rc->options & RRDCALC_FLAG_NO_CLEAR_NOTIFICATION)) {