feat(alerting): adds ok as no data option

closes #6866
This commit is contained in:
bergquist
2016-12-15 11:13:19 +01:00
parent 6a161216de
commit ca7baca21d
2 changed files with 4 additions and 2 deletions

View File

@@ -20,9 +20,10 @@ const (
)
const (
NoDataSetOK NoDataOption = "ok"
NoDataSetNoData NoDataOption = "no_data"
NoDataSetAlerting NoDataOption = "alerting"
NoDataKeepState NoDataOption = "keep_state"
NoDataSetAlerting NoDataOption = "alerting"
)
const (
@@ -35,7 +36,7 @@ func (s AlertStateType) IsValid() bool {
}
func (s NoDataOption) IsValid() bool {
return s == NoDataSetNoData || s == NoDataSetAlerting || s == NoDataKeepState
return s == NoDataSetNoData || s == NoDataSetAlerting || s == NoDataKeepState || s == NoDataSetOK
}
func (s NoDataOption) ToAlertState() AlertStateType {