Expressions: Use enumerations rather than strings (#83741)

This commit is contained in:
Ryan McKinley
2024-03-01 19:38:32 +02:00
committed by GitHub
parent c59ebfc60f
commit 5f6bf93dd5
9 changed files with 77 additions and 41 deletions
+2 -2
View File
@@ -54,10 +54,10 @@ type ResampleQuery struct {
Window string `json:"window" jsonschema:"minLength=1,example=1w,example=10m"`
// The downsample function
Downsampler string `json:"downsampler"`
Downsampler mathexp.ReducerID `json:"downsampler"`
// The upsample function
Upsampler string `json:"upsampler"`
Upsampler mathexp.Upsampler `json:"upsampler"`
}
type ThresholdQuery struct {