mirror of
https://github.com/netdata/netdata.git
synced 2025-05-02 16:30:12 +00:00

* expose the order of group by * key renames in json wrapper v2 * added group by context and group by units * added view_average_values * fix for view_average_values when percentage is specified * option group-by-labels is enabling the exposure of all the labels that are used for each of the final grouped dimensions * when executing group by queries, allocate one dimension data at a time - not all of them * respect hidden dimensions * cancel running data query on socket error * use poll to detect socket errors * use POLLRDHUP to detect half closed connections * make sure POLLRDHUP is available * do not destroy aral-by-size arals * completed documentation of /api/v2/data. * moved min, max back to view; updated swagger yaml and json * default format for /api/v2/data is json2
37 lines
922 B
C
37 lines
922 B
C
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#ifndef NETDATA_WEB_API_H
|
|
#define NETDATA_WEB_API_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"
|
|
|
|
struct web_api_command {
|
|
const char *command;
|
|
uint32_t hash;
|
|
WEB_CLIENT_ACL acl;
|
|
int (*callback)(RRDHOST *host, struct web_client *w, char *url);
|
|
};
|
|
|
|
struct web_client;
|
|
|
|
int web_client_api_request_vX(RRDHOST *host, struct web_client *w, char *url, struct web_api_command *api_commands);
|
|
|
|
static inline void fix_google_param(char *s) {
|
|
if(unlikely(!s || !*s)) return;
|
|
|
|
for( ; *s ;s++) {
|
|
if(!isalnum(*s) && *s != '.' && *s != '_' && *s != '-')
|
|
*s = '_';
|
|
}
|
|
}
|
|
|
|
bool web_client_interrupt_callback(void *data);
|
|
|
|
#include "web_api_v1.h"
|
|
#include "web_api_v2.h"
|
|
|
|
#endif //NETDATA_WEB_API_H
|