mirror of
https://github.com/netdata/netdata.git
synced 2025-04-23 04:50:22 +00:00

* optimized ses and added des * added coefficient of variation * fix bug identified by @vlvkobal: use all available points when resampling is required and the timeframe is not enough for a single point
24 lines
687 B
C
24 lines
687 B
C
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#ifndef NETDATA_API_DATA_QUERY_H
|
|
#define NETDATA_API_DATA_QUERY_H
|
|
|
|
typedef enum rrdr_grouping {
|
|
RRDR_GROUPING_UNDEFINED = 0,
|
|
RRDR_GROUPING_AVERAGE,
|
|
RRDR_GROUPING_MIN,
|
|
RRDR_GROUPING_MAX,
|
|
RRDR_GROUPING_SUM,
|
|
RRDR_GROUPING_INCREMENTAL_SUM,
|
|
RRDR_GROUPING_MEDIAN,
|
|
RRDR_GROUPING_STDDEV,
|
|
RRDR_GROUPING_CV,
|
|
RRDR_GROUPING_SES,
|
|
RRDR_GROUPING_DES,
|
|
} RRDR_GROUPING;
|
|
|
|
extern const char *group_method2string(RRDR_GROUPING group);
|
|
extern void web_client_api_v1_init_grouping(void);
|
|
extern RRDR_GROUPING web_client_api_request_v1_data_group(const char *name, RRDR_GROUPING def);
|
|
|
|
#endif //NETDATA_API_DATA_QUERY_H
|