SSE: fix casing on classic conditions model. (#32754)

This commit is contained in:
Kyle Brandt 2021-04-07 10:12:22 -04:00 committed by GitHub
parent 0d08928981
commit 6395c649c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ type ClassicConditionJSON struct {
} `json:"operator"`
Query struct {
Params []string
Params []string `json:"params"`
} `json:"query"`
Reducer struct {

View File

@ -53,7 +53,7 @@ type dashConditionsJSON struct {
}
// dashAlertingConditionJSON is like classic.ClassicConditionJSON except that it
// include the model property with the query.
// includes the model property with the query.
type dashAlertingConditionJSON struct {
Evaluator conditionEvalJSON `json:"evaluator"`
@ -62,8 +62,8 @@ type dashAlertingConditionJSON struct {
} `json:"operator"`
Query struct {
Params []string
DatasourceID int64 `json:""`
Params []string `json:"params"`
DatasourceID int64 `json:""`
Model json.RawMessage
} `json:"query"`