Skip to content

Latest commit

 

History

History
19 lines (19 loc) · 560 Bytes

template-slack.md

File metadata and controls

19 lines (19 loc) · 560 Bytes

test.tmpl

{{ define "slack.my.title" -}} {{- if .CommonAnnotations.summary -}} {{- .CommonAnnotations.summary -}} {{- else -}} {{- with index .Alerts 0 -}} {{- .Annotations.summary -}} {{- end -}} {{- end -}} {{- end }} {{ define "slack.my.text" -}} {{- if .CommonAnnotations.description -}} {{- .CommonAnnotations.description -}} {{- else -}} {{- range $i, $alert := .Alerts }} {{- "\n" -}} {{- .Annotations.description -}} {{- end -}} {{- end -}} {{- end }}