summaryrefslogtreecommitdiffstats
path: root/web/api/web_api_v1.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 /web/api/web_api_v1.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 'web/api/web_api_v1.h')
-rw-r--r--web/api/web_api_v1.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/api/web_api_v1.h b/web/api/web_api_v1.h
index 70b7817804..3edb47e3c7 100644
--- a/web/api/web_api_v1.h
+++ b/web/api/web_api_v1.h
@@ -16,6 +16,7 @@ extern int web_client_api_request_v1_alarms(RRDHOST *host, struct web_client *w,
extern int web_client_api_request_v1_alarm_log(RRDHOST *host, struct web_client *w, char *url);
extern int web_client_api_request_single_chart(RRDHOST *host, struct web_client *w, char *url, void callback(RRDSET *st, BUFFER *buf));
extern int web_client_api_request_v1_alarm_variables(RRDHOST *host, struct web_client *w, char *url);
+extern int web_client_api_request_v1_alarm_count(RRDHOST *host, struct web_client *w, char *url);
extern int web_client_api_request_v1_charts(RRDHOST *host, struct web_client *w, char *url);
extern int web_client_api_request_v1_chart(RRDHOST *host, struct web_client *w, char *url);
extern int web_client_api_request_v1_data(RRDHOST *host, struct web_client *w, char *url);