From bc19dd2d851756aaa662796756268b4e2d1dfd81 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Thu, 17 Nov 2016 21:36:26 +0300 Subject: [PATCH] Added docs for timeShift() function, issue #307. --- docs/sources/reference/functions.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/sources/reference/functions.md b/docs/sources/reference/functions.md index c620ca7..3e9e749 100644 --- a/docs/sources/reference/functions.md +++ b/docs/sources/reference/functions.md @@ -119,6 +119,20 @@ trendValue(valueType) Specifying type of trend value returned by Zabbix when trends are used (avg, min or max). +## Time + +### timeShift +``` +timeShift(interval) +``` +Draws the selected metrics shifted in time. If no sign is given, a minus sign ( - ) is implied which will shift the metric back in time. If a plus sign ( + ) is given, the metric will be shifted forward in time. +Examples: +``` +timeShift(24h) - shift metric back in 2h hours +timeShift(-24h) - the same result as for timeShift(24h) +timeShift(+1d) - shift metric forward in 1 day +``` + ## Alias ### setAlias