summaryrefslogtreecommitdiffstats
path: root/health/health.h
diff options
context:
space:
mode:
authorValentin Rakush <52716954+alpes214@users.noreply.github.com>2019-08-23 13:29:20 +0300
committerChris Akritidis <43294513+cakrit@users.noreply.github.com>2019-08-23 12:29:20 +0200
commit62bc37ed5f6cf64459deafc11c7d6d938158c447 (patch)
tree116b91e623b39af175613b2b4b555ee2d58a1070 /health/health.h
parent81ff262cd8f57551c73bf97030d2ad474c18592d (diff)
Add alarm status counter api call (#6554)
##### Summary This is implementation of a prerequisite for the requested feature #6536 (Generate an overall status badge/chart for the health of category) ##### Component Name web/api/ health/ ##### Details Provide a new, `alarm_count` API call that returns the total number of alarms for given contexts and alarm states. Default is the total number of raised alarms, for all contexts.
Diffstat (limited to 'health/health.h')
-rw-r--r--health/health.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/health/health.h b/health/health.h
index 0bf3b8ffa8..6c000bf458 100644
--- a/health/health.h
+++ b/health/health.h
@@ -58,6 +58,7 @@ extern void *health_main(void *ptr);
extern void health_reload(void);
extern int health_variable_lookup(const char *variable, uint32_t hash, RRDCALC *rc, calculated_number *result);
+extern void health_aggregate_alarms(RRDHOST *host, BUFFER *wb, BUFFER* context, RRDCALC_STATUS status);
extern void health_alarms2json(RRDHOST *host, BUFFER *wb, int all);
extern void health_alarm_log2json(RRDHOST *host, BUFFER *wb, uint32_t after);