diff options
author | Vladimir Kobal <vlad@prokk.net> | 2020-01-06 17:34:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-06 17:34:49 +0200 |
commit | 8cf58891941b7c4c4b1f35f6e9b6db770eb878ab (patch) | |
tree | 1cef3ea2e65fdb202c1cd5a580cf8b7eed779f48 /database | |
parent | cd7abaa69d32f119706ff75e0d1529f8087d0f0d (diff) |
Clean up host labels in API responses (#7616)
* Remove host labels from the Swagger specification
* Remove host labels from the api responses
Diffstat (limited to 'database')
-rw-r--r-- | database/rrdvar.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/database/rrdvar.c b/database/rrdvar.c index d819a08afd..6b824d0d3f 100644 --- a/database/rrdvar.c +++ b/database/rrdvar.c @@ -296,10 +296,7 @@ void health_api_v1_chart_variables2json(RRDSET *st, BUFFER *buf) { helper.counter = 0; avl_traverse_lock(&st->rrdfamily->rrdvar_root_index, single_variable2json, (void *)&helper); - buffer_sprintf(buf, "\n\t},\n\t\"host\": \"%s\",", host->hostname); - buffer_strcat(buf, "\n\t\"labels\": {\n"); - host_labels2json(st->rrdhost, buf, 2); - buffer_strcat(buf, "\t},\n\t\"host_variables\": {"); + buffer_sprintf(buf, "\n\t},\n\t\"host\": \"%s\",\n\t\"host_variables\": {", host->hostname); helper.counter = 0; avl_traverse_lock(&host->rrdvar_root_index, single_variable2json, (void *)&helper); |