mirror of
https://github.com/netdata/netdata.git
synced 2025-05-21 00:09:54 +00:00

* set grouping functions * storage engine should check the validity of timestamps, not the query engine * calculate and store in RRDR anomaly rates for every query * anomaly rate used by volume metric correlations * mc volume should use absolute data, to avoid cancelling effect * return anomaly-rates in jasonwrap with jw-anomaly-rates option to data queries * dont return null on anomaly rates * allow passing group query options from the URL * added countif to the query engine and used it in metric correlations * fix configure * fix countif and anomaly rate percentages * added group_options to metric correlations; updated swagger * added newline at the end of yaml file * always check the time the highlighted window was above/below the highlighted window * properly track time in memory queries * error for internal checks only * moved pack_storage_number() into the storage engines * moved unpack_storage_number() inside the storage engines * remove old comment * pass unit tests * properly detect zero or subnormal values in pack_storage_number() * fill nulls before the value, not after * make sure math.h is included * workaround for isfinite() * fix for isfinite() * faster isfinite() alternative * fix for faster isfinite() alternative * next_metric() now returns end_time too * variable step implemented in a generic way * remove left-over variables * ensure we always complete the wanted number of points * fixes * ensure no infinite loop * mc-volume-improvements: Add information about invalid condition * points should have a duration in the past * removed unneeded info() line * Fix unit tests for exporting engine * new_point should only be checked when it is fetched from the db; better comment about the premature breaking of the main query loop Co-authored-by: Thiago Marques <thiagoftsm@gmail.com> Co-authored-by: Vladimir Kobal <vlad@prokk.net>
26 lines
802 B
C
26 lines
802 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_COUNTIF,
|
|
} 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);
|
|
extern const char *web_client_api_request_v1_data_group_to_string(RRDR_GROUPING group);
|
|
|
|
#endif //NETDATA_API_DATA_QUERY_H
|