Sample Action for Microsoft Teams¶
Customization Options¶
See Customizing Alert Messages for more detail about creating actions and sharing them.
Microsoft Teams¶
Microsoft Teams alerts use an Incoming Webhook. For more details, see the Microsoft Teams documentation: Create and send messages
Microsoft Teams alert body example
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"themeColor": "0076D7",
"summary": "{{^alert.type.isAlarmEnded}}{{alert.severity}} - {{/alert.type.isAlarmEnded}}{{alert.type}} {{monitor.name}} at {{alert.start.timePart}}, {{alert.start.datePart}}",
"sections": [{
"activityTitle": "{{monitor.name}} triggered at {{alert.startTime}}",
"activitySubtitle": "{{monitor.description}}",
"activityImage": "https://teamsnodesample.azurewebsites.net/static/img/image5.png",
"facts": [{
"name": "Assigned to",
"value": "Unassigned"
}, {
"name": "Started at",
"value": "{{alert.startTime}}"
}, {
"name": "Importance",
"value": "{{alert.severity}}"
}],
"markdown": true
}],
"potentialAction": [{
"@type": "OpenUri",
"name": "View Alert",
"targets": [{
"os": "default",
"uri": "{{alert.url}}"
}]
}]
}