summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimotej S <6674623+underhood@users.noreply.github.com>2022-12-22 19:01:05 +0700
committerGitHub <noreply@github.com>2022-12-22 19:01:05 +0700
commit3212bd341ca4f0f5f3393eb35afe532b10639d4e (patch)
tree21507c50e25e76071bfafb447d215b557809dd48
parentf84c76faf1f1b0f5aa20a048b346ede68c0ba878 (diff)
minor - Adds query type "function[s]" for aclk chart (#14165)
add query type functions for statistics
-rw-r--r--aclk/aclk_stats.c4
-rw-r--r--aclk/aclk_stats.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/aclk/aclk_stats.c b/aclk/aclk_stats.c
index 215313ff9a..511ba952dc 100644
--- a/aclk/aclk_stats.c
+++ b/aclk/aclk_stats.c
@@ -143,7 +143,9 @@ static char *cloud_req_http_type_names[ACLK_STATS_CLOUD_HTTP_REQ_TYPE_CNT] = {
"alarms",
"alarm_log",
"chart",
- "charts"
+ "charts",
+ "function",
+ "functions"
// if you change then update `ACLK_STATS_CLOUD_HTTP_REQ_TYPE_CNT`.
};
diff --git a/aclk/aclk_stats.h b/aclk/aclk_stats.h
index bec9ac2476..783bdd3165 100644
--- a/aclk/aclk_stats.h
+++ b/aclk/aclk_stats.h
@@ -16,7 +16,7 @@ extern netdata_mutex_t aclk_stats_mutex;
#define ACLK_STATS_UNLOCK netdata_mutex_unlock(&aclk_stats_mutex)
// if you change update `cloud_req_http_type_names`.
-#define ACLK_STATS_CLOUD_HTTP_REQ_TYPE_CNT 7
+#define ACLK_STATS_CLOUD_HTTP_REQ_TYPE_CNT 9
int aclk_cloud_req_http_type_to_idx(const char *name);