Set up alerts in Microsoft Teams

  • Updated

You can have notifications from Hudu posted in Microsoft Teams

Overview

With Hudu, you can create alerts for expirations, monitored website alerts, and more. You can use email to receive these alerts, but you can also use Webhooks to send to outside services. In this case, we will setup Microsoft Teams to receive the messages.

Prerequisites

Before starting, you should create the team and channel (within that team) that you want messages to arrive in.

Instructions

  1. Go to the channel and click Connectorsmceclip0.png
  2. Click on Incoming Webhook and hit Addmceclip1.png
  3. On the next screen, click on Addmceclip2.png
  4. Enter some info like the name of the webhook and an image. Then, hit Createmceclip3.png
  5. Copy the generated url mceclip5.png
  6. Paste this URL in the Webhook URL field of the alert you are configuring.

 

Example Payloads

In order to have a message in your Discord, you will need to deliver a payload. Here are some examples:

Expirations

{"text": "There are *$EXPIRATIONS_COUNT* expirations expiring within *$TRIGGER_DAYS* days. View: [$EXPIRATIONS_HUDU_URL]($EXPIRATIONS_HUDU_URL)"}

Websites

{"text": "*$WEBSITE_NAME* appears to be down. View: [$WEBSITE_HUDU_URL]($WEBSITE_HUDU_URL)"}

Helpful links

Testing Webhooks

We provide a way to test your Webhooks. Navigate to Admin -> Alerts and click on Test Webhook. Note: we are only testing your connection and payload, not your variables, so sample variables will be filled in. 

mceclip0.png

 

Still have questions?

Contact us