Visually distinguish alertname and summary

This commit is contained in:
Ceesjan Luiten 2015-04-21 19:28:05 +02:00
parent 99636c0e55
commit c12fa13a06
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ func (n *notifier) sendHipChatNotification(authToken string, roomId int32, color
incidentKey := a.Fingerprint()
buf, err := json.Marshal(map[string]interface{}{
"color": color,
"message": fmt.Sprintf("%s: %s <a href='%s'>view</a>", html.EscapeString(a.Labels["alertname"]), html.EscapeString(a.Summary), a.Payload["GeneratorURL"]),
"message": fmt.Sprintf("<b>%s</b>: %s (<a href='%s'>view</a>)", html.EscapeString(a.Labels["alertname"]), html.EscapeString(a.Summary), a.Payload["GeneratorURL"]),
"notify": notify,
"message_format": "html",
})