Browse Source

Modify format of service name in Teams notification

Teams notifications have all text parsed as markdown.  If the service
name has underscores in them it causes the service name to be
misrendered.
This puts backquotes around the service name, which formats it as
fixed width on a grey background, with underscores handled correctly
and pulls your focus to the service name.
pull/426/head
Nigel Metheringham 4 years ago
parent
commit
ceceddd4c7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      templates/integrations/msteams_message.json

+ 1
- 1
templates/integrations/msteams_message.json View File

@ -3,7 +3,7 @@
"@type": "MessageCard", "@type": "MessageCard",
"@context": "https://schema.org/extensions", "@context": "https://schema.org/extensions",
"themeColor": "{% if check.status == "up" %}5cb85c{% endif %}{% if check.status == "down" %}d9534f{% endif %}", "themeColor": "{% if check.status == "up" %}5cb85c{% endif %}{% if check.status == "down" %}d9534f{% endif %}",
"text": "“{{ check.name_then_code|escapejs }}” is {{ check.status|upper }}.",
"text": "`{{ check.name_then_code|escapejs }}` is {{ check.status|upper }}.",
"sections": [ "sections": [
{ {
"facts": [ "facts": [


Loading…
Cancel
Save