Alerting: Adding color option for slack receiver (#99615)
This commit is contained in:
@@ -479,6 +479,7 @@ The following sections detail the supported settings and secure settings for eac
|
||||
| mentionGroups | |
|
||||
| mentionChannel | |
|
||||
| token | yes |
|
||||
| color | |
|
||||
|
||||
#### Alert notification `victorops`
|
||||
|
||||
|
||||
@@ -511,6 +511,8 @@ settings:
|
||||
# <string>
|
||||
endpointUrl: https://custom_url/api/chat.postMessage
|
||||
# <string>
|
||||
color: {{ if eq .Status "firing" }}#D63232{{ else }}#36a64f{{ end }}
|
||||
# <string>
|
||||
title: |
|
||||
{{ template "slack.default.title" . }}
|
||||
text: |
|
||||
|
||||
Reference in New Issue
Block a user