mirror of
https://github.com/netdata/netdata.git
synced 2025-04-21 04:10:38 +00:00

* /api/v1/weights endpoints * high resolution anomaly rate in parallel with queries; points and options in /api/v1/weights reflect the truth * context printing * merged metric_correlations with weights API; added parameter tier to select the tier to run the query; weight api now returns points per tier; added swagger info about weights api * moved metric_correlations files to web/api/queries as weights * added contexts filtering; renamed correlated_dimensions; weights API is always enabled; code cleanup * allow returning zero results
40 lines
2.2 KiB
C
40 lines
2.2 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"
|
|
#include "web/api/queries/weights.h"
|
|
|
|
#define MAX_CHART_LABELS_FILTER (32)
|
|
extern RRDR_OPTIONS web_client_api_request_v1_data_options(char *o);
|
|
extern void web_client_api_request_v1_data_options_to_string(BUFFER *wb, RRDR_OPTIONS options);
|
|
|
|
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_alarms_values(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_alarm_count(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_archivedcharts(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 int web_client_api_request_v1_info_fill_buffer(RRDHOST *host, BUFFER *wb);
|
|
extern void host_labels2json(RRDHOST *host, BUFFER *wb, size_t indentation);
|
|
|
|
extern void web_client_api_v1_init(void);
|
|
extern void web_client_api_v1_management_init(void);
|
|
|
|
extern char *api_secret;
|
|
|
|
#endif //NETDATA_WEB_API_V1_H
|