Alerting: Load annotations from rule into State cache (#33542)

for https://github.com/grafana/alerting-squad/issues/127
This commit is contained in:
Kyle Brandt
2021-04-30 14:23:12 -04:00
committed by GitHub
parent 0c2bcbf2bc
commit 7823842c5d
8 changed files with 71 additions and 47 deletions

View File

@@ -134,5 +134,6 @@ func (a *State) Equals(b *State) bool {
a.State.String() == b.State.String() &&
a.StartsAt == b.StartsAt &&
a.EndsAt == b.EndsAt &&
a.LastEvaluationTime == b.LastEvaluationTime
a.LastEvaluationTime == b.LastEvaluationTime &&
data.Labels(a.Annotations).String() == data.Labels(b.Annotations).String()
}