{{/* unified with slack.notifications.text */}}

{{- define "email.notification.text" -}}
{{ range .Alerts }}
*Cluster* {{ .Labels.cluster_id }}

{{ .Annotations.description }}

To check trends of the alert underlying condition metric and alert occurrence click on <{{ .GeneratorURL }}&g1.expr=ALERTS%7Balertname%3D%22{{ .Labels.alertname }}%22%2Calertstate%3D%22firing%22%7D&g1.tab=0&g1.range_input=1h|Prometheus UI link>

*Details:*
{{ range .Labels.SortedPairs }} • *{{ .Name }}:* `{{ .Value }}`
{{ end }}
{{ end }}
{{- end -}}
