Display name label on matrix notification
This commit is contained in:
parent
aa19d2a64f
commit
8631f66374
1 changed files with 1 additions and 1 deletions
2
main.go
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…
Reference in a new issue