Alerting: Remove back end logic for supporting KeepLastState (#34242)

* Removed back end logic for supporting KeepLastState

* Map keep_state correctly in migrations
This commit is contained in:
David Parrott
2021-05-18 10:55:43 -07:00
committed by GitHub
parent 0683692509
commit bbb7bbf891
7 changed files with 22 additions and 90 deletions
@@ -279,18 +279,16 @@ func (n *GettableExtendedRuleNode) validate() error {
type NoDataState string
const (
Alerting NoDataState = "Alerting"
NoData NoDataState = "NoData"
KeepLastState NoDataState = "KeepLastState"
OK NoDataState = "OK"
Alerting NoDataState = "Alerting"
NoData NoDataState = "NoData"
OK NoDataState = "OK"
)
// swagger:enum ExecutionErrorState
type ExecutionErrorState string
const (
AlertingErrState ExecutionErrorState = "Alerting"
KeepLastStateErrState ExecutionErrorState = "KeepLastState"
AlertingErrState ExecutionErrorState = "Alerting"
)
// swagger:model