master
h 37 lines 1.81 KB
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #ifndef NETDATA_API_V2_CALLS_H
4 #define NETDATA_API_V2_CALLS_H
5
6 #include "../web_api_v2.h"
7
8 int api_v2_info(RRDHOST *host, struct web_client *w, char *url);
9
10 int api_v2_data(RRDHOST *host, struct web_client *w, char *url);
11 int api_v3_data(RRDHOST *host, struct web_client *w, char *url);
12 int api_v2_weights(RRDHOST *host, struct web_client *w, char *url);
13
14 int api_v2_alert_config(RRDHOST *host, struct web_client *w, char *url);
15
16 int api_v2_contexts_internal(RRDHOST *host, struct web_client *w, char *url, CONTEXTS_V2_MODE mode, CONTEXTS_OPTIONS options);
17 int api_v2_contexts(RRDHOST *host, struct web_client *w, char *url);
18 int api_v2_alert_transitions(RRDHOST *host, struct web_client *w, char *url);
19 int api_v2_alerts(RRDHOST *host, struct web_client *w, char *url);
20 int api_v2_functions(RRDHOST *host, struct web_client *w, char *url);
21 int api_v2_versions(RRDHOST *host, struct web_client *w, char *url);
22 int api_v2_q(RRDHOST *host, struct web_client *w, char *url);
23 int api_v2_nodes(RRDHOST *host, struct web_client *w, char *url);
24 int api_v2_node_instances(RRDHOST *host, struct web_client *w, char *url);
25
26 int api_v2_claim(RRDHOST *host, struct web_client *w, char *url);
27 int api_v3_claim(RRDHOST *host, struct web_client *w, char *url);
28
29 int api_v2_webrtc(RRDHOST *host, struct web_client *w, char *url);
30
31 int api_v2_progress(RRDHOST *host, struct web_client *w, char *url);
32
33 int api_v2_bearer_get_token(RRDHOST *host, struct web_client *w, char *url);
34 int bearer_get_token_json_response(BUFFER *wb, RRDHOST *host, const char *claim_id, const char *machine_guid, const char *node_id, HTTP_USER_ROLE user_role, HTTP_ACCESS access, nd_uuid_t cloud_account_id, const char *client_name);
35 int api_v2_bearer_protection(RRDHOST *host, struct web_client *w, char *url);
36
37 #endif //NETDATA_API_V2_CALLS_H