set state correctly and test (#34680)

This commit is contained in:
David Parrott
2021-05-26 11:37:42 -07:00
committed by GitHub
parent 3aba08f708
commit 20d356947c
4 changed files with 70 additions and 11 deletions

View File

@@ -68,7 +68,6 @@ func (c *cache) getOrCreate(alertRule *ngModels.AlertRule, result eval.Result) *
OrgID: alertRule.OrgID,
CacheId: id,
Labels: lbs,
State: result.State,
Annotations: annotations,
EvaluationDuration: result.EvaluationDuration,
}