Sample action for Microsoft Teams

Customization options

See Customize alert messages for more detail about creating actions and sharing them.

Microsoft Teams

Microsoft Teams alerts use an Incoming Webhook. For more details, see Create and send messages in the Microsoft documentation.

Below is a 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}}"
    }]
  }]
}