support attach labels to rule result

This commit is contained in:
glidea
2025-06-07 15:37:04 +08:00
parent f4d3786496
commit ae90606263
6 changed files with 21 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ func (ls *Labels) FromMap(m map[string]string) {
for k, v := range m {
*ls = append(*ls, Label{Key: k, Value: v})
}
ls.EnsureSorted()
}
func (ls Labels) Map() map[string]string {