msteams: escape backslashes (SCOM) in example-payload.json.j2

This commit is contained in:
Jarno Huuskonen 2019-10-07 16:01:10 +03:00
parent 29b63b0c6e
commit 7aa7577cc5

View file

@ -18,13 +18,13 @@
{%- if alert.origin %}
,{
"name": "Origin:",
"value": "{{ alert.origin }}"
"value": "{{ alert.origin|replace('\\', '\\\\') }}"
}{% endif %}
]
}
{%- if (alert.status and alert.status == 'open') and alert.text %}
,{
"text": "```{{ alert.text }}```"
"text": "```{{ alert.text|replace('\\', '\\\\') }}```"
}{% endif %}
]
{%- if alert.status and alert.status in [ 'open', 'ack', 'assign' ] %}