diff options
author | Timotej S <6674623+underhood@users.noreply.github.com> | 2022-08-19 17:20:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-19 17:20:25 +0200 |
commit | 2df6667153cfcd4b116589315063d73b8ed9b111 (patch) | |
tree | 168d1cdf4b6267a9be6227995b87be86b8af72d1 /web | |
parent | 475d9679909ae99ce23558dbef46077e058366c8 (diff) |
Cleanup of APIs (#13539)
ACLK related API cleanup
Diffstat (limited to 'web')
-rw-r--r-- | web/api/web_api_v1.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/web/api/web_api_v1.c b/web/api/web_api_v1.c index 8bfc617fde..f01594e87e 100644 --- a/web/api/web_api_v1.c +++ b/web/api/web_api_v1.c @@ -1215,14 +1215,9 @@ inline int web_client_api_request_v1_info_fill_buffer(RRDHOST *host, BUFFER *wb) #ifdef ENABLE_ACLK buffer_strcat(wb, "\t\"cloud-available\": true,\n"); - buffer_strcat(wb, "\t\"aclk-ng-available\": true,\n"); - buffer_strcat(wb, "\t\"aclk-ng-new-cloud-protocol\": true,\n"); - buffer_strcat(wb, "\t\"aclk-legacy-available\": false,\n"); - buffer_strcat(wb, "\t\"aclk-implementation\": \"Next Generation\",\n"); + buffer_strcat(wb, "\t\"aclk-new-cloud-protocol\": true,\n"); #else buffer_strcat(wb, "\t\"cloud-available\": false,\n"); - buffer_strcat(wb, "\t\"aclk-ng-available\": false,\n"); - buffer_strcat(wb, "\t\"aclk-legacy-available\": false,\n"); #endif char *agent_id = get_agent_claimid(); if (agent_id == NULL) @@ -1234,11 +1229,10 @@ inline int web_client_api_request_v1_info_fill_buffer(RRDHOST *host, BUFFER *wb) #ifdef ENABLE_ACLK if (aclk_connected) { buffer_strcat(wb, "\t\"aclk-available\": true,\n"); - buffer_strcat(wb, "\t\"aclk-available-protocol\": \"New\",\n"); } else #endif - buffer_strcat(wb, "\t\"aclk-available\": false,\n\t\"aclk-available-protocol\": null,\n"); // Intentionally valid with/without #ifdef above + buffer_strcat(wb, "\t\"aclk-available\": false,\n"); // Intentionally valid with/without #ifdef above buffer_strcat(wb, "\t\"memory-mode\": "); analytics_get_data(analytics_data.netdata_config_memory_mode, wb); |