-
-
Save taija/76c2e22cba7d07e476d0457b4e8cda53 to your computer and use it in GitHub Desktop.
{ | |
"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.
I'm trying to setup the Connector, but i allways get an Error in the Workflow in Teams:
The execution of template action 'Send_each_adaptive_card' failed: the result of the evaluation of 'foreach' expression '@triggerBody()?['attachments']' is of type 'Null'. The result must be a valid array.
Any Ideas?
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.