I hereby claim:
- I am simonfiddaman on github.
- I am simonf (https://keybase.io/simonf) on keybase.
- I have a public key whose fingerprint is DDB1 98D1 A62A F353 CF4D 5D80 81FA 39DC 65DD 0887
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" List On-calls """ | |
## Configuration ## | |
#secrets.json | |
#{ | |
# "pagerduty": { | |
# "key": "apikey" |
// shorten the posted data ref | |
var webhook = PD.inputRequest.body; | |
var event = { | |
// Default to Triggering a new event | |
event_type: PD.Trigger, | |
// use the check_id as the incident key - should only ever be in one state | |
incident_key: webhook.check_id, | |
// set Alert/Incident title | |
description: "Pingdom says " + webhook.check_name + " is " + webhook.current_state + " (" + webhook.description + ")", |