render all grafana alert annotations in ntfy
This commit is contained in:
@@ -260,11 +260,12 @@ in {
|
|||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ with index $labels "severity" }}Severity: {{ . }}
|
{{ with index $labels "severity" }}Severity: {{ . }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ with index .Annotations "summary" }}Summary: {{ . }}
|
{{ with .Annotations.SortedPairs }}Annotations:
|
||||||
{{ else }}{{ with index $.CommonAnnotations "summary" }}Summary: {{ . }}
|
{{ range . }}- {{ .Name }}: {{ .Value }}
|
||||||
{{ end }}{{ end -}}
|
{{ end -}}
|
||||||
{{ with index .Annotations "description" }}Details: {{ . }}
|
{{ else }}{{ with $.CommonAnnotations.SortedPairs }}Annotations:
|
||||||
{{ else }}{{ with index $.CommonAnnotations "description" }}Details: {{ . }}
|
{{ range . }}- {{ .Name }}: {{ .Value }}
|
||||||
|
{{ end -}}
|
||||||
{{ end }}{{ end -}}
|
{{ end }}{{ end -}}
|
||||||
{{ with .GeneratorURL }}Source: {{ . }}
|
{{ with .GeneratorURL }}Source: {{ . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user