1. Alerts
  2. Send alerts to Microsoft Teams

Alerts

Send alerts to Microsoft Teams

OnlineOrNot posts alerts to Microsoft Teams through a Teams Workflows webhook. Each alert is an Adaptive Card with the monitor's name and a button that opens it in OnlineOrNot.

On the free plan you can connect one Teams channel. Paid plans can connect more.

Create a webhook in Teams

  1. In Microsoft Teams, open Workflows
  2. Create a workflow that starts when a Teams webhook request is received
  3. Add a step that posts the message as an Adaptive Card to the channel or chat that should receive alerts
  4. Save the workflow and copy its webhook URL

Connect Teams to OnlineOrNot

  1. In OnlineOrNot, go to Settings > Integrations > Microsoft Teams
  2. Click Add Teams channel
  3. Enter a Channel name so you can recognise the destination later, for example #engineering-alerts
  4. Paste the workflow URL into Webhook URL
  5. Click Add integration

Send a test alert

Open the menu next to the channel and click Send test "down" alert or Send test "up" alert. The message is posted to your Teams channel straight away.

Send alerts from a check or heartbeat

  1. Edit your check or heartbeat
  2. Scroll to Alert Settings
  3. Under Microsoft Teams channels to send alerts to, select the channel
  4. Save your changes

With Terraform or the API, put the integration ID in microsoft_teams_alerts.

What triggers notifications

OnlineOrNot posts two messages per outage:

  1. A DOWN alert when the outage is confirmed, with details of the failing assertion when there is one
  2. An UP alert when the monitor recovers

If you've set up reminder alerts, OnlineOrNot also posts a reminder while the outage continues.

Remove the integration

Open the menu next to the channel and click Remove. Delete the workflow in Teams too if you no longer need it.