From 514d1bbbdd944b5f0e6a1bd5f8a7aad078b1edb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Farkas?= Date: Thu, 26 May 2022 10:23:28 +0200 Subject: [PATCH] loki: added two new functions (#49617) --- 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',