Alerting: Change Data to use Labels instead of map[string]string (#63431)

This commit changes the Data struct in template.go to use Labels
instead of map[string]string. It changes how labels are printed
when using {{ .Labels }} from map[foo:bar bar:baz] to
foo=bar, bar=baz.
This commit is contained in:
George Robinson 2023-02-20 10:08:23 +00:00 committed by GitHub
parent 005f5ca1df
commit aacf9da969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ func NewValues(caps map[string]eval.NumberValueCapture) map[string]Value {
}
type Data struct {
Labels map[string]string
Labels Labels
Values map[string]Value
Value string
}