Copy
{% capture markdown %}
Alert ID: {{alertId}}
Alert level: {{alertLevel}}
Occurred at: {{occurredAt}}
Alert data: {{alertData | json_markdown}}
{% endcapture %}
{
"text": "{{alertType}}",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "{{alertType}}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": {{markdown | jsonify}}
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Organization name: *<{{organizationUrl}}|{{organizationName}}>*
Organization ID: {{organizationId}}
"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Network name: *<{{networkUrl}}|{{networkName}}>*
Network ID: {{networkId}}
"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Device name: {{deviceName}}
Device serial: <{{deviceUrl}}|{{deviceSerial}}>
Device MAC: {{deviceMac}}
Device tags: {{deviceTags | join: ', '}}
Device model: {{deviceModel}}
"
}
}
],
"organizationId": "{{organizationId}}",
"networkId": "{{networkId}}"
}