-
Alert Contact Type: Web-Hook
-
URL to Notify:
https://discordapp.com/api/webhooks/CHANGEME/CHANGEME?- Must end with
?
- Must end with
-
Send as JSON (application/json).
-
Send default variables as POST parameters
-
-
Save Log1x/af2c1a9613d155477295f20eece406a3 to your computer and use it in GitHub Desktop.
| { | |
| "embeds": [ | |
| { | |
| "title": "*alertDetails*", | |
| "footer": { | |
| "text": "Timestamp: *alertDateTime*" | |
| }, | |
| "thumbnail": { | |
| "url": "https://i.imgur.com/00zpqHE.jpg", | |
| "height": 16, | |
| "width": 16 | |
| }, | |
| "fields": [ | |
| { | |
| "name": "ID", | |
| "value": "*monitorID*" | |
| }, | |
| { | |
| "name": "Name", | |
| "value": "*monitorFriendlyName*" | |
| }, | |
| { | |
| "name": "Destination", | |
| "value": "*monitorURL*" | |
| }, | |
| { | |
| "name": "Type", | |
| "value": "*alertTypeFriendlyName*" | |
| } | |
| ] | |
| } | |
| ] | |
| } |
and how do i use this?
mahn u are a time saver
and how do i use this?
good question.
Add a Webhook in UptimeRobot and set the configuration as I have in the gist above. I was hoping it'd be straight forward. :(
mahn u are a time saver
<3
i need help, when i post the code in the post value, it is showing "post value must be JSON" some help would be appriciated
also can u add a feature which mentions a user when it does down
also if it is an up message the color of embed is green and if it is a down message the embed color is red
unfortunately for the latter there's no way to do a conditional here to control the embed color.
as far as the mention you should be able to add @username into one of the fields, but I'm not sure if it will work.
Is this still up to date? dosent seem to work
Is this still up to date? dosent seem to work
still working on my end
it was a problem with uptime robot. It does not work with "ö, ä ,ü " etc. thanks for this code man. amazing
Was already wondering why I didn't get a notification, turns out that the body is actually a requirement and doesn't default to something. Thanks for providing the message body :)
what do you mean message body?
unfortunately for the latter there's no way to do a conditional here to control the embed color.
as far as the mention you should be able to add
@usernameinto one of the fields, but I'm not sure if it will work.
Hey, I found a workaround, it should be possible to add a message field above the embed like the screenshot
You can do this by using adding "content": "your message", above "embeds": [
e.g.
{
"content": "@everyone bot down",
"embeds": [
...
To mention a user you can add <@USERID> to the text field and replace "USERID" with the ID of the user or a role if you wanna do that



Excellent, thanks a lot for sharing!