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 /health | |
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 'health')
-rw-r--r-- | health/health_json.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/health/health_json.c b/health/health_json.c index ab7eb52e35..8a088d034a 100644 --- a/health/health_json.c +++ b/health/health_json.c @@ -304,12 +304,8 @@ void health_alarms2json(RRDHOST *host, BUFFER *wb, int all) { // for(rt = host->templates; rt ; rt = rt->next) // health_rrdcalctemplate2json_nolock(wb, rt); - buffer_strcat(wb, "\n\t},"); + buffer_strcat(wb, "\n\t}\n}\n"); rrdhost_unlock(host); - - buffer_strcat(wb, "\n\t\"labels\": {\n"); - host_labels2json(host, wb, 2); - buffer_strcat(wb, "\t}\n}\n"); } |