From d2939ac9af500292cabeb20ee42b74fdf018e27e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Mon, 20 Aug 2018 20:17:23 +0300 Subject: [PATCH] Include check's description in Slack messages. --- templates/integrations/slack_message.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/integrations/slack_message.json b/templates/integrations/slack_message.json index 905a4d41..8983ec18 100644 --- a/templates/integrations/slack_message.json +++ b/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 }}",