{{/*
example:

[FIRING:1 - WARNING] AlertmanagerNotificationFailureWarning
*/}}

{{- define "slack.notification.title" -}}
[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}{{ if .CommonLabels.severity }} - {{ .CommonLabels.severity | toUpper }}{{ end }}] {{ .CommonLabels.alertname }}
{{- end -}}
