summaryrefslogtreecommitdiffstats
path: root/src/web/api/functions/functions.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 14:45:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 14:48:03 +0000
commite55403ed71282d7bfd8b56df219de3c28a8af064 (patch)
tree524889e5becb81643bf8741e3082955dca076f09 /src/web/api/functions/functions.c
parentReleasing debian version 1.47.5-1. (diff)
downloadnetdata-e55403ed71282d7bfd8b56df219de3c28a8af064.tar.xz
netdata-e55403ed71282d7bfd8b56df219de3c28a8af064.zip
Merging upstream version 2.0.3+dfsg:
- does not include dygraphs anymore (Closes: #923993) - does not include pako anymore (Closes: #1042533) - does not include dashboard binaries anymore (Closes: #1045145) Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/web/api/functions/functions.c')
-rw-r--r--src/web/api/functions/functions.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/web/api/functions/functions.c b/src/web/api/functions/functions.c
new file mode 100644
index 000000000..c00e04ca0
--- /dev/null
+++ b/src/web/api/functions/functions.c
@@ -0,0 +1,43 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#include "functions.h"
+
+void global_functions_add(void) {
+ // we register this only on localhost
+ // for the other nodes, the origin server should register it
+ rrd_function_add_inline(
+ localhost,
+ NULL,
+ "streaming",
+ 10,
+ RRDFUNCTIONS_PRIORITY_DEFAULT + 1,
+ RRDFUNCTIONS_VERSION_DEFAULT,
+ RRDFUNCTIONS_STREAMING_HELP,
+ "top",
+ HTTP_ACCESS_SIGNED_ID | HTTP_ACCESS_SAME_SPACE | HTTP_ACCESS_SENSITIVE_DATA,
+ function_streaming);
+
+ rrd_function_add_inline(
+ localhost,
+ NULL,
+ "netdata-api-calls",
+ 10,
+ RRDFUNCTIONS_PRIORITY_DEFAULT + 2,
+ RRDFUNCTIONS_VERSION_DEFAULT,
+ RRDFUNCTIONS_PROGRESS_HELP,
+ "top",
+ HTTP_ACCESS_SIGNED_ID | HTTP_ACCESS_SAME_SPACE | HTTP_ACCESS_SENSITIVE_DATA,
+ function_progress);
+
+ rrd_function_add_inline(
+ localhost,
+ NULL,
+ RRDFUNCTIONS_BEARER_GET_TOKEN,
+ 10,
+ RRDFUNCTIONS_PRIORITY_DEFAULT + 3,
+ RRDFUNCTIONS_VERSION_DEFAULT,
+ RRDFUNCTIONS_BEARER_GET_TOKEN_HELP,
+ RRDFUNCTIONS_TAG_HIDDEN,
+ HTTP_ACCESS_SIGNED_ID | HTTP_ACCESS_SAME_SPACE | HTTP_ACCESS_SENSITIVE_DATA,
+ function_bearer_get_token);
+}