msteams: escape backslashes (SCOM) in example-payload.json.j2
This commit is contained in:
parent
29b63b0c6e
commit
7aa7577cc5
1 changed files with 2 additions and 2 deletions
|
@ -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' ] %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue