Browse Source

Include check's description in Slack messages.

pull/193/head
Pēteris Caune 6 years ago
parent
commit
d2939ac9af
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      templates/integrations/slack_message.json

+ 5
- 0
templates/integrations/slack_message.json View File

@ -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 }}",


Loading…
Cancel
Save