summaryrefslogtreecommitdiffstats
path: root/health/health.h
diff options
context:
space:
mode:
authorValentin Rakush <52716954+alpes214@users.noreply.github.com>2019-08-20 12:11:43 +0300
committerChris Akritidis <43294513+cakrit@users.noreply.github.com>2019-08-20 11:11:43 +0200
commit92642269f19f585b04d439a3bbe4e60d33918974 (patch)
treea507dfe903ebacafb4e485a2ee6edcb54867448a /health/health.h
parentd52c20ec4c632459d90797725214be8ffeb66251 (diff)
Add alarm variables to the response of chart and data (#6615)
##### Summary Implements feature #6054 Now requests like http://localhost:19999/api/v1/chart?chart=example.random http://localhost:19999/api/v1/data?chart=example.random&options=jsonwrap&options=showcustomvars - return chart variables in their responses. Chart variables include only those with options set to RRDVAR_OPTION_CUSTOM_CHART_VAR - for /api/v1/data requests chart variables are returned when parameter options=jsonwrap and options=showcustomvars ##### Component Name [/database](https://github.com/netdata/netdata/tree/master/database/) [/web/api/formatters](https://github.com/netdata/netdata/tree/master/web/api/formatters)
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 6920d12de7..0bf3b8ffa8 100644
--- a/health/health.h
+++ b/health/health.h
@@ -62,6 +62,7 @@ extern void health_alarms2json(RRDHOST *host, BUFFER *wb, int all);
extern void health_alarm_log2json(RRDHOST *host, BUFFER *wb, uint32_t after);
void health_api_v1_chart_variables2json(RRDSET *st, BUFFER *buf);
+void health_api_v1_chart_custom_variables2json(RRDSET *st, BUFFER *buf);
extern int health_alarm_log_open(RRDHOST *host);
extern void health_alarm_log_close(RRDHOST *host);