sort classpaths of event

This commit is contained in:
UlricQin 2021-07-30 16:03:25 +08:00
parent 834a5e83ee
commit 6040e79d50
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ func consume(events []interface{}, sema *semaphore.Semaphore) {
event.RuleNote = alertRule.Note
event.NotifyChannels = alertRule.NotifyChannels
classpaths := cache.ResClasspath.GetValues(event.ResIdent)
sort.Strings(classpaths)
event.ResClasspaths = strings.Join(classpaths, " ")
enrichTag(event, alertRule)