Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2020-09-14 13:58:47 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2020-09-14 14:57:15 +0300
commit23f266b16451236c3aa8180dd3b6b0b790bbb55b (patch)
treee2d2312d43d9d1d62a64dc39f1d921cee08378f1 /include/zbxtrends.h
parentf6be0cbeacf9c4b17d3f5785c39ed8b921112898 (diff)
........S. [ZBXNEXT-6140] added functions to work with trends tables
Diffstat (limited to 'include/zbxtrends.h')
-rw-r--r--include/zbxtrends.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/zbxtrends.h b/include/zbxtrends.h
index 5dc290599c1..abcf581bd17 100644
--- a/include/zbxtrends.h
+++ b/include/zbxtrends.h
@@ -27,4 +27,11 @@ int zbx_trends_parse_base(const char *params, zbx_time_unit_t *base, char **erro
int zbx_trends_parse_range(const char *period, const char *period_shift, int *start, int *end, char **error);
+int zbx_trends_eval_avg(const char *table, zbx_uint64_t itemid, int start, int end, double *value);
+int zbx_trends_eval_count(const char *table, zbx_uint64_t itemid, int start, int end, double *value);
+int zbx_trends_eval_delta(const char *table, zbx_uint64_t itemid, int start, int end, double *value);
+int zbx_trends_eval_max(const char *table, zbx_uint64_t itemid, int start, int end, double *value);
+int zbx_trends_eval_min(const char *table, zbx_uint64_t itemid, int start, int end, double *value);
+int zbx_trends_eval_sum(const char *table, zbx_uint64_t itemid, int start, int end, double *value);
+
#endif