From 6040e79d502b275f10e89584eb7f7661f28afa41 Mon Sep 17 00:00:00 2001 From: UlricQin Date: Fri, 30 Jul 2021 16:03:25 +0800 Subject: [PATCH] sort classpaths of event --- alert/consume.go | 1 + 1 file changed, 1 insertion(+) diff --git a/alert/consume.go b/alert/consume.go index 4aa3b42c..c799e06d 100644 --- a/alert/consume.go +++ b/alert/consume.go @@ -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)