Alerting: update API models to user NoDataState and ExecutionErrorState from definitions instead of models (#63824)

This commit is contained in:
Yuri Tseretyan
2023-02-28 16:21:41 -05:00
committed by GitHub
parent 69aba3eed3
commit 5e2a661dec
3 changed files with 8 additions and 8 deletions
@@ -123,9 +123,9 @@ type ProvisionedAlertRule struct {
// readonly: true
Updated time.Time `json:"updated,omitempty"`
// required: true
NoDataState models.NoDataState `json:"noDataState"`
NoDataState NoDataState `json:"noDataState"`
// required: true
ExecErrState models.ExecutionErrorState `json:"execErrState"`
ExecErrState ExecutionErrorState `json:"execErrState"`
// required: true
For model.Duration `json:"for"`
// example: {"runbook_url": "https://supercoolrunbook.com/page/13"}