~xenrox/ntfy-alertmanager

ee9dfe2f8404c798e01f2eb1922db5082fe80fe6 — Thorben Günther 1 year, 3 months ago 27eb45b
fixup! Support sending grouped alerts on their own
1 files changed, 1 insertions(+), 1 deletions(-)

M main.go
M main.go => main.go +1 -1
@@ 63,7 63,7 @@ func (rcv *receiver) singleAlertNotifications(p *payload) []*notification {
		n := new(notification)

		// create title
		n.title = fmt.Sprintf("[%s]", strings.ToUpper(p.Status))
		n.title = fmt.Sprintf("[%s]", strings.ToUpper(alert.Status))
		if name, ok := alert.Labels["alertname"]; ok {
			n.title = fmt.Sprintf("%s %s", n.title, name)
		}