diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2021-11-08 21:18:38 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2021-11-08 21:19:16 +0300 |
commit | 7995d5a01898310926d05ad1ca72c2a49b0a4981 (patch) | |
tree | b4cef7b1bf15338e4bdd5df15833b1cd947c4243 /include/zbxtrends.h | |
parent | 597c8230cc66c28eafaa651b098f0b71d0f794dd (diff) |
........S. [ZBXNEXT-2579] added season data period offset calculation
Diffstat (limited to 'include/zbxtrends.h')
-rw-r--r-- | include/zbxtrends.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/zbxtrends.h b/include/zbxtrends.h index 3fdba11c0c7..7406d4318f0 100644 --- a/include/zbxtrends.h +++ b/include/zbxtrends.h @@ -51,4 +51,17 @@ void zbx_tfc_destroy(void); int zbx_tfc_get_stats(zbx_tfc_stats_t *stats, char **error); void zbx_tfc_invalidate_trends(ZBX_DC_TREND *trends, int trends_num); +typedef struct +{ + int weeks; + int months; + int days; + int hours; +} +zbx_tm_diff_t; + +void zbx_baseline_season_diff(const struct tm *season, zbx_time_unit_t season_unit, const struct tm *period, + zbx_time_unit_t period_unit, zbx_tm_diff_t *diff); + + #endif |