support cardinality agg

This commit is contained in:
liugq 2023-04-01 12:25:06 +08:00
parent 9bd5682122
commit 1a645a655a
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ func generateAgg(metricItem *insight.MetricItem, timeField string) map[string]in
var percent = 0.0
var isPipeline = false
switch metricItem.Statistic {
case "max", "min", "sum", "avg":
case "max", "min", "sum", "avg", "cardinality":
aggType = metricItem.Statistic
case "count", "value_count":
aggType = "value_count"