From 8f591b848ad1fd57e4789d0e379fa3b091f8bcb7 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sat, 2 May 2020 22:43:29 +0300 Subject: [PATCH] docs/MetricsQL.md: document `first_over_time` and `last_over_time` functions --- docs/MetricsQL.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/MetricsQL.md b/docs/MetricsQL.md index 6d0461a53..af440fdef 100644 --- a/docs/MetricsQL.md +++ b/docs/MetricsQL.md @@ -110,3 +110,5 @@ This functionality can be tried at [an editable Grafana dashboard](http://play-g would calculate `min_over_time`, `max_over_time` and `rate` for `m[d]`. - `hoeffding_bound_upper(phi, m[d])` and `hoeffding_bound_lower(phi, m[d])` - return upper and lower [Hoeffding bounds](https://en.wikipedia.org/wiki/Hoeffding%27s_inequality) for the given `phi` in the range `[0..1]`. +- `last_over_time(m[d])` - returns the last value for `m` on the time range `d`. +- `first_over_time(m[d])` - returns the first value for `m` on the time range `d`.