mirror of
https://github.com/netdata/netdata.git
synced 2025-04-25 13:33:48 +00:00

* initial webrtc setup * missing files * rewrite of webrtc integration * initialization and cleanup of webrtc connections * make it compile without libdatachannel * add missing webrtc_initialize() function when webrtc is not enabled * make c++17 optional * add build/m4/ax_compiler_vendor.m4 * add ax_cxx_compile_stdcxx.m4 * added new m4 files to makefile.am * id all webrtc connections * show warning when webrtc is disabled * fixed message * moved all webrtc error checking inside webrtc.cpp * working webrtc connection establishment and cleanup * remove obsolete code * rewrote webrtc code in C to remove dependency for c++17 * fixed left-over reference * detect binary and text messages * minor fix * naming of webrtc threads * added webrtc configuration * fix for thread_get_name_np() * smaller web_client memory footprint * universal web clients cache * free web clients every 100 uses * webrtc is now enabled by default only when compiled with internal checks * webrtc responses to /api/ requests, including LZ4 compression * fix for binary and text messages * web_client_cache is now global * unification of the internal web server API, for web requests, aclk request, webrtc requests * more cleanup and unification of web client timings * fixed compiler warnings * update sent and received bytes * eliminated of almost all big buffers in web client * registry now uses the new json generation * cookies are now an array; fixed redirects * fix redirects, again * write cookies directly to the header buffer, eliminating the need for cookie structures in web client * reset the has_cookies flag * gathered all web client cleanup to one function * fixes redirects * added summary.globals in /api/v2/data response * ars to arc in /api/v2/data * properly handle host impersonation * set the context of mem.numa_nodes
38 lines
1.9 KiB
C
38 lines
1.9 KiB
C
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#ifndef NETDATA_WEB_API_V1_H
|
|
#define NETDATA_WEB_API_V1_H 1
|
|
|
|
#include "web_api.h"
|
|
|
|
struct web_client;
|
|
|
|
RRDR_OPTIONS web_client_api_request_v1_data_options(char *o);
|
|
void web_client_api_request_v1_data_options_to_buffer_json_array(BUFFER *wb, const char *key, RRDR_OPTIONS options);
|
|
void web_client_api_request_v1_data_options_to_string(char *buf, size_t size, RRDR_OPTIONS options);
|
|
|
|
uint32_t web_client_api_request_v1_data_format(char *name);
|
|
uint32_t web_client_api_request_v1_data_google_format(char *name);
|
|
|
|
int web_client_api_request_v1_alarms(RRDHOST *host, struct web_client *w, char *url);
|
|
int web_client_api_request_v1_alarms_values(RRDHOST *host, struct web_client *w, char *url);
|
|
int web_client_api_request_v1_alarm_log(RRDHOST *host, struct web_client *w, char *url);
|
|
int web_client_api_request_single_chart(RRDHOST *host, struct web_client *w, char *url, void callback(RRDSET *st, BUFFER *buf));
|
|
int web_client_api_request_v1_alarm_variables(RRDHOST *host, struct web_client *w, char *url);
|
|
int web_client_api_request_v1_alarm_count(RRDHOST *host, struct web_client *w, char *url);
|
|
int web_client_api_request_v1_charts(RRDHOST *host, struct web_client *w, char *url);
|
|
int web_client_api_request_v1_chart(RRDHOST *host, struct web_client *w, char *url);
|
|
int web_client_api_request_v1_registry(RRDHOST *host, struct web_client *w, char *url);
|
|
int web_client_api_request_v1_info(RRDHOST *host, struct web_client *w, char *url);
|
|
int web_client_api_request_v1(RRDHOST *host, struct web_client *w, char *url_path_endpoint);
|
|
int web_client_api_request_v1_info_fill_buffer(RRDHOST *host, BUFFER *wb);
|
|
|
|
void web_client_api_v1_init(void);
|
|
void web_client_api_v1_management_init(void);
|
|
|
|
void host_labels2json(RRDHOST *host, BUFFER *wb, const char *key);
|
|
void web_client_api_request_v1_info_summary_alarm_statuses(RRDHOST *host, BUFFER *wb, const char *key);
|
|
|
|
extern char *api_secret;
|
|
|
|
#endif //NETDATA_WEB_API_V1_H
|