From c703061b7fceb17d3feb59f0126e0839305b270d Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Mon, 26 Aug 2024 17:39:57 +0800 Subject: [PATCH] fix(monitor): only show MEAN and SUM aggregators (#21099) --- pkg/apis/monitor/unifiedmonitor_query.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/apis/monitor/unifiedmonitor_query.go b/pkg/apis/monitor/unifiedmonitor_query.go index ebb2b53bba..64fd91d992 100644 --- a/pkg/apis/monitor/unifiedmonitor_query.go +++ b/pkg/apis/monitor/unifiedmonitor_query.go @@ -23,9 +23,8 @@ var ( UNIFIED_MONITOR_FIELD_OPT_TYPE = []string{"Aggregations", "Selectors"} UNIFIED_MONITOR_GROUPBY_OPT_TYPE = []string{"time", "tag", "fill"} UNIFIED_MONITOR_FIELD_OPT_VALUE = map[string][]string{ - "Aggregations": {"COUNT", "DISTINCT", "INTEGRAL", - "MEAN", "MEDIAN", "MODE", "STDDEV", "SUM"}, - "Selectors": {"BOTTOM", "FIRST", "LAST", "MAX", "MIN", "TOP"}, + "Aggregations": {"MEAN", "SUM"}, // {"COUNT", "DISTINCT", "INTEGRAL", "MEAN", "MEDIAN", "MODE", "STDDEV", "SUM"}, + "Selectors": {"BOTTOM", "FIRST", "LAST", "MAX", "MIN", "TOP"}, } UNIFIED_MONITOR_GROUPBY_OPT_VALUE = map[string][]string{ "fill": {"linear", "none", "previous", "0"},