query.h 871 B

12345678910111213141516171819202122232425262728293031323334
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #ifndef NETDATA_API_DATA_QUERY_H
  3. #define NETDATA_API_DATA_QUERY_H
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef enum rrdr_grouping {
  8. RRDR_GROUPING_UNDEFINED = 0,
  9. RRDR_GROUPING_AVERAGE,
  10. RRDR_GROUPING_MIN,
  11. RRDR_GROUPING_MAX,
  12. RRDR_GROUPING_SUM,
  13. RRDR_GROUPING_INCREMENTAL_SUM,
  14. RRDR_GROUPING_MEDIAN,
  15. RRDR_GROUPING_STDDEV,
  16. RRDR_GROUPING_CV,
  17. RRDR_GROUPING_SES,
  18. RRDR_GROUPING_DES,
  19. RRDR_GROUPING_COUNTIF,
  20. } RRDR_GROUPING;
  21. extern const char *group_method2string(RRDR_GROUPING group);
  22. extern void web_client_api_v1_init_grouping(void);
  23. extern RRDR_GROUPING web_client_api_request_v1_data_group(const char *name, RRDR_GROUPING def);
  24. extern const char *web_client_api_request_v1_data_group_to_string(RRDR_GROUPING group);
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif //NETDATA_API_DATA_QUERY_H