Created
May 15, 2017 14:31
-
-
Save taija/76c2e22cba7d07e476d0457b4e8cda53 to your computer and use it in GitHub Desktop.
Webhook for integrating Uptime Robot with Microsoft Teams
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"text": " *alertDetails* - ID: *monitorID*. URL: [*monitorURL*](*monitorURL*)", | |
"title": "*monitorFriendlyName* is *alertTypeFriendlyName*" | |
} |
I got it working. Hopefully this will help someone else.
In Microsoft Teams:
- Add and configure the "Incoming Webhook" connector to the channel...
- Name = UptimeRobot (or whatever you want),
- Upload a UptimeRobot image to identify posts as UptimeRobot (optional).
- Copy the URL and add "?" to the end of it. I.e. https://outlook.office.com/webhook/xxxxxx@xxxxxx/IncomingWebhook/xxxxxx/xxxxxx?
- Click Done.
In UptimeRobot
Add a new Alert Contact...
Alert Contact Type = Web-Hook.
Friendly Name = Whatever you want.
URL to Notify = The URL copied above.
POST Value (JSON Format) =
{
"text": " *alertDetails* - ID: *monitorID*. URL: [*monitorURL*](*monitorURL*)",
"title": "*monitorFriendlyName* is *alertTypeFriendlyName*"
}
Send as JSON = Yes
Click Create Alert Contact, then Close.
Edit each monitor and add the new contact.
Thanks for this, works a treat :)
Thanks for posting this! Super helpful.
Worked for me, Thanks! Still works three years later. It's surprising that they haven't broken that functionality yet...just give it time.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you share us what are your settings for Uptime Robot?
I use 365 Incoming Webhook and post message I placed your given
JSON
format. It doesn't work actually.