1
0
Fork 0

Display name label on matrix notification

master
Timothée Floure 2 years ago
parent aa19d2a64f
commit 8631f66374
  1. 2
      main.go

@ -37,7 +37,7 @@ func getMatrixMessageFor(alert template.Alert) gomatrix.HTMLMessage {
prefix = fmt.Sprintf("<strong>%v</strong> ", alert.Status)
}
return gomatrix.GetHTMLMessage("m.text", prefix + alert.Annotations["summary"])
return gomatrix.GetHTMLMessage("m.text", prefix + alert.Labels["name"] + " >> " + alert.Annotations["summary"])
}
func getMatrixClient(homeserver string, user string, token string, targetRoomID string) *gomatrix.Client {

Loading…
Cancel
Save