mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
parent
005f5ca1df
commit
aacf9da969
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user