Skip to content

Instantly share code, notes, and snippets.

@Log1x
Last active November 28, 2023 21:15
Show Gist options
  • Save Log1x/af2c1a9613d155477295f20eece406a3 to your computer and use it in GitHub Desktop.
Save Log1x/af2c1a9613d155477295f20eece406a3 to your computer and use it in GitHub Desktop.

Revisions

  1. Log1x revised this gist Dec 20, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -8,5 +8,5 @@
    - URL to Notify: `https://discordapp.com/api/webhooks/CHANGEME/CHANGEME?`
    - **Must end with `?`**

    [x] Send as JSON (application/json).
    [ ] Send default variables as POST parameters
    - [x] Send as JSON (application/json).
    - [ ] Send default variables as POST parameters
  2. Log1x revised this gist Apr 19, 2020. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,12 @@
    # Uptime Robot Webhook for Discord

    ![Screenshot](https://i.imgur.com/g028aEj.png)

    ## Configuration

    - Alert Contact Type: **Web-Hook**
    - URL to Notify: `https://discordapp.com/api/webhooks/CHANGEME/CHANGEME?`
    - **Must end with `?`**
    - [x] Send as JSON (application/json).
    - [ ] Send default variables as POST parameters

    [x] Send as JSON (application/json).
    [ ] Send default variables as POST parameters
  3. Log1x created this gist Apr 19, 2020.
    9 changes: 9 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # Uptime Robot Webhook for Discord

    ## Configuration

    - Alert Contact Type: **Web-Hook**
    - URL to Notify: `https://discordapp.com/api/webhooks/CHANGEME/CHANGEME?`
    - **Must end with `?`**
    - [x] Send as JSON (application/json).
    - [ ] Send default variables as POST parameters
    33 changes: 33 additions & 0 deletions postValue.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    {
    "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*"
    }
    ]
    }
    ]
    }