From 2aa34293f64819701a344dcbdfdba2ffaca7c939 Mon Sep 17 00:00:00 2001 From: Sean Hanson Date: Fri, 30 Aug 2024 09:04:12 +0100 Subject: [PATCH] Add movingWindow to list of functions that might adjust timerange Fixes #840 840 --- pkg/parser/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/parser/parser.go b/pkg/parser/parser.go index ed6f8052c..afc9f2bd1 100644 --- a/pkg/parser/parser.go +++ b/pkg/parser/parser.go @@ -241,7 +241,7 @@ func (e *expr) Metrics(from, until int64) []MetricRequest { } r = append(r, adjustedReq) } - case "movingAverage", "movingMedian", "movingMin", "movingMax", "movingSum", "exponentialMovingAverage": + case "movingAverage", "movingMedian", "movingMin", "movingMax", "movingSum", "movingWindow", "exponentialMovingAverage": if len(e.args) < 2 { return nil }