console: use avg/max for LimitType (instead of Avg/Max)

This commit is contained in:
Vincent Bernat
2024-11-23 20:57:48 +01:00
parent ba37f1765a
commit 2df8b5785b
9 changed files with 22 additions and 19 deletions

View File

@@ -20,7 +20,7 @@ type graphCommonHandlerInput struct {
End time.Time `json:"end" binding:"required,gtfield=Start"`
Dimensions []query.Column `json:"dimensions"` // group by ...
Limit int `json:"limit" binding:"min=1"` // limit product of dimensions
LimitType string `json:"limitType" validate:"oneof=Avg Max"`
LimitType string `json:"limitType" validate:"oneof=avg max"`
Filter query.Filter `json:"filter"` // where ...
TruncateAddrV4 int `json:"truncate-v4" binding:"min=0,max=32"` // 0 or 32 = no truncation
TruncateAddrV6 int `json:"truncate-v6" binding:"min=0,max=128"` // 0 or 128 = no truncation