Last active
May 18, 2020 16:19
-
-
Save armiiller/ed027cf7f6505fff733fcf6dfdf07c69 to your computer and use it in GitHub Desktop.
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
import requests | |
pload = { | |
'event_type':'create', | |
'Id':'monitor-1', | |
'Title': 'Monitor 1 is Down for 60s', | |
'Description': 'Please check the monitor @ https://this.url' | |
} | |
r = requests.post('https://api.pagertree.com/int_xxxxxxx',data = pload) | |
print(r.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment