console: endpoint for sankey graph

This commit is contained in:
Vincent Bernat
2022-05-22 14:09:35 +02:00
parent fb7c51653f
commit bd3c79c057
4 changed files with 426 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ type graphQuery struct {
End time.Time `json:"end" binding:"required,gtfield=Start"`
Points int `json:"points" binding:"required,min=5,max=2000"` // minimum number of points
Dimensions []queryColumn `json:"dimensions"` // group by ...
Limit int `json:"limit" binding:"isdefault|min=1,max=50"` // limit product of dimensions
Limit int `json:"limit" binding:"min=1,max=50"` // limit product of dimensions
Filter queryFilter `json:"filter"` // where ...
}