summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorTimotej S <6674623+underhood@users.noreply.github.com>2021-06-14 10:38:58 +0200
committerGitHub <noreply@github.com>2021-06-14 10:38:58 +0200
commit59af90b08c705a66bdca7551b43257781db47711 (patch)
tree18f7961b77aea97891c7472cd792fd61d1c98e6f /web
parentf71036cdeca8e6c5becd357928ddc0325154a622 (diff)
Allows ACLK NG and Legacy to coexist (#11225)
Diffstat (limited to 'web')
-rw-r--r--web/api/web_api_v1.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/web/api/web_api_v1.c b/web/api/web_api_v1.c
index 96fcf485ac..c58a86af0f 100644
--- a/web/api/web_api_v1.c
+++ b/web/api/web_api_v1.c
@@ -980,10 +980,22 @@ 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");
#ifdef ACLK_NG
- buffer_strcat(wb, "\t\"aclk-implementation\": \"Next Generation\",\n");
+ buffer_strcat(wb, "\t\"aclk-ng-available\": true,\n");
#else
- buffer_strcat(wb, "\t\"aclk-implementation\": \"legacy\",\n");
+ buffer_strcat(wb, "\t\"aclk-ng-available\": false,\n");
#endif
+#ifdef ACLK_LEGACY
+ buffer_strcat(wb, "\t\"aclk-legacy-available\": true,\n");
+#else
+ buffer_strcat(wb, "\t\"aclk-legacy-available\": false,\n");
+#endif
+ buffer_strcat(wb, "\t\"aclk-implementation\": \"");
+ if (aclk_ng) {
+ buffer_strcat(wb, "Next Generation");
+ } else {
+ buffer_strcat(wb, "legacy");
+ }
+ buffer_strcat(wb, "\",\n");
#else
buffer_strcat(wb, "\t\"cloud-available\": false,\n");
#endif