From 4a400dc3df0f20c12f94f47eecaa72ffef0ae445 Mon Sep 17 00:00:00 2001 From: Linas Medziunas Date: Thu, 19 Mar 2026 16:10:23 +0200 Subject: [PATCH] fix(UI): autocomplete for first_over_time and ts_of_first_over_time Signed-off-by: Linas Medziunas --- .../codemirror-promql/src/complete/promql.terms.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/web/ui/module/codemirror-promql/src/complete/promql.terms.ts b/web/ui/module/codemirror-promql/src/complete/promql.terms.ts index 645b507855..7fb89bf062 100644 --- a/web/ui/module/codemirror-promql/src/complete/promql.terms.ts +++ b/web/ui/module/codemirror-promql/src/complete/promql.terms.ts @@ -317,10 +317,16 @@ export const functionIdentifierTerms = [ info: 'Join together label values into new label', type: 'function', }, + { + label: 'first_over_time', + detail: 'function', + info: 'Return the value of the oldest sample in the specified interval', + type: 'function', + }, { label: 'last_over_time', detail: 'function', - info: 'The most recent point value in specified interval.', + info: 'Return the value of the most recent sample in the specified interval', type: 'function', }, { @@ -371,6 +377,12 @@ export const functionIdentifierTerms = [ info: 'Return the timestamp of the minimum value over time for input series', type: 'function', }, + { + label: 'ts_of_first_over_time', + detail: 'function', + info: 'Return the timestamp of the first value over time for input series', + type: 'function', + }, { label: 'ts_of_last_over_time', detail: 'function',