Browse Source
Include check's description in Slack messages.
pull/193/head
Pēteris Caune
6 years ago
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2
1 changed files with
5 additions and
0 deletions
-
templates/integrations/slack_message.json
|
|
@ -13,6 +13,11 @@ |
|
|
|
"mrkdwn_in": ["fields"], |
|
|
|
"text": "“{{ check.name_then_code|escapejs }}” is {{ check.status|upper }}.", |
|
|
|
"fields": [ |
|
|
|
{% if check.desc %} |
|
|
|
{"title": "Description", |
|
|
|
"value": "{{ check.desc|escapejs }}" |
|
|
|
}, |
|
|
|
{% endif %} |
|
|
|
{% if check.kind == "simple" %} |
|
|
|
{"title": "Period", |
|
|
|
"value": "{{ check.timeout|hc_duration }}", |
|
|
|