Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" List On-calls """
## Configuration ##
#secrets.json
#{
# "pagerduty": {
# "key": "apikey"
@simonfiddaman
simonfiddaman / pagerduty-custom-pingdom.txt
Last active December 20, 2021 09:15
PagerDuty custom event definition for Pingdom alerts
// 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 + ")",

Keybase proof

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: