bugfix: event mute

This commit is contained in:
UlricQin 2021-12-04 12:07:30 +08:00
parent 79401183ca
commit b418dec3ab
1 changed files with 1 additions and 1 deletions

View File

@ -210,6 +210,7 @@ func (r RuleEval) judge(vectors []Vector) {
event := &models.AlertCurEvent{
TriggerTime: vectors[i].Timestamp,
TagsMap: tagsMap,
GroupId: r.rule.GroupId,
}
// isMuted only need TriggerTime and TagsMap
@ -226,7 +227,6 @@ func (r RuleEval) judge(vectors []Vector) {
sort.Strings(tagsArr)
event.Cluster = r.rule.Cluster
event.GroupId = r.rule.GroupId
event.Hash = hash
event.RuleId = r.rule.Id
event.RuleName = r.rule.Name