From d3433be5857c9d551b6a8c87e9e74a80aec9ff04 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 26 May 2022 04:38:22 -0400 Subject: [PATCH] loki: added two new functions (#49617) (#49666) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 514d1bbbdd944b5f0e6a1bd5f8a7aad078b1edb1) Co-authored-by: Gábor Farkas --- public/app/plugins/datasource/loki/syntax.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/public/app/plugins/datasource/loki/syntax.ts b/public/app/plugins/datasource/loki/syntax.ts index 94a5e54dab4..ad19acff4f7 100644 --- a/public/app/plugins/datasource/loki/syntax.ts +++ b/public/app/plugins/datasource/loki/syntax.ts @@ -122,6 +122,18 @@ export const RANGE_VEC_FUNCTIONS = [ detail: 'max_over_time(range-vector)', documentation: 'The maximum of all values in the specified interval. Only available in Loki 2.0+.', }, + { + insertText: 'first_over_time', + label: 'first_over_time', + detail: 'first_over_time(range-vector)', + documentation: 'The first of all values in the specified interval. Only available in Loki 2.3+.', + }, + { + insertText: 'last_over_time', + label: 'last_over_time', + detail: 'last_over_time(range-vector)', + documentation: 'The last of all values in the specified interval. Only available in Loki 2.3+.', + }, { insertText: 'sum_over_time', label: 'sum_over_time',