mirror of
https://github.com/netdata/netdata.git
synced 2025-05-07 18:41:03 +00:00

##### Summary fixes #2673 fixes #2149 fixes #5017 fixes #3830 fixes #3187 fixes #5154 Implements a command API for health which will accept commands via a socket to selectively suppress health checks. Allows different ports to accept different request types (streaming, dashboard, api, registry, netdata.conf, badges, management) Removes support for multi-threaded and single-threaded web servers. ##### Component Name health, daemon
31 lines
1.6 KiB
C
31 lines
1.6 KiB
C
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#ifndef NETDATA_WEB_API_V1_H
|
|
#define NETDATA_WEB_API_V1_H 1
|
|
|
|
#include "daemon/common.h"
|
|
#include "web/api/badges/web_buffer_svg.h"
|
|
#include "web/api/formatters/rrd2json.h"
|
|
#include "web/api/health/health_cmdapi.h"
|
|
|
|
extern uint32_t web_client_api_request_v1_data_options(char *o);
|
|
extern uint32_t web_client_api_request_v1_data_format(char *name);
|
|
extern uint32_t web_client_api_request_v1_data_google_format(char *name);
|
|
|
|
extern int web_client_api_request_v1_alarms(RRDHOST *host, struct web_client *w, char *url);
|
|
extern int web_client_api_request_v1_alarm_log(RRDHOST *host, struct web_client *w, char *url);
|
|
extern int web_client_api_request_single_chart(RRDHOST *host, struct web_client *w, char *url, void callback(RRDSET *st, BUFFER *buf));
|
|
extern int web_client_api_request_v1_alarm_variables(RRDHOST *host, struct web_client *w, char *url);
|
|
extern int web_client_api_request_v1_charts(RRDHOST *host, struct web_client *w, char *url);
|
|
extern int web_client_api_request_v1_chart(RRDHOST *host, struct web_client *w, char *url);
|
|
extern int web_client_api_request_v1_data(RRDHOST *host, struct web_client *w, char *url);
|
|
extern int web_client_api_request_v1_registry(RRDHOST *host, struct web_client *w, char *url);
|
|
extern int web_client_api_request_v1_info(RRDHOST *host, struct web_client *w, char *url);
|
|
extern int web_client_api_request_v1(RRDHOST *host, struct web_client *w, char *url);
|
|
|
|
extern void web_client_api_v1_init(void);
|
|
extern void web_client_api_v1_management_init(void);
|
|
|
|
char *api_secret;
|
|
|
|
#endif //NETDATA_WEB_API_V1_H
|