mirror of https://github.com/prometheus/prometheus
notifier: Remove redundant format conversions. (#5960)
Signed-off-by: johncming <johncming@yahoo.com>pull/5994/head
parent
dbfd493265
commit
1e51ba4d30
|
@ -567,7 +567,7 @@ func alertsToOpenAPIAlerts(alerts []*Alert) models.PostableAlerts {
|
||||||
func labelsToOpenAPILabelSet(modelLabelSet labels.Labels) models.LabelSet {
|
func labelsToOpenAPILabelSet(modelLabelSet labels.Labels) models.LabelSet {
|
||||||
apiLabelSet := models.LabelSet{}
|
apiLabelSet := models.LabelSet{}
|
||||||
for _, label := range modelLabelSet {
|
for _, label := range modelLabelSet {
|
||||||
apiLabelSet[label.Name] = string(label.Value)
|
apiLabelSet[label.Name] = label.Value
|
||||||
}
|
}
|
||||||
|
|
||||||
return apiLabelSet
|
return apiLabelSet
|
||||||
|
|
Loading…
Reference in New Issue