Skip to content

Instantly share code, notes, and snippets.

View jmdawson's full-sized avatar

Jacob M. Dawson jmdawson

View GitHub Profile
@jmdawson
jmdawson / pdActiveUsers.py
Last active May 3, 2018 00:38
A quick script to get an idea of what users in PagerDuty have interacted with incidents. In this case, over the last 180 days.
import requests,configparser,json
from dateutil.relativedelta import *
from dateutil.parser import *
from datetime import date,timedelta
def getToken(filename):
config = configparser.ConfigParser()
config.read(filename)
return config['default']['token']

Keybase proof

I hereby claim:

  • I am jmdawson on github.
  • I am dawson (https://keybase.io/dawson) on keybase.
  • I have a public key whose fingerprint is C1A5 CC86 6692 A4DD D49A 3ED2 5CB8 BC50 4BC7 8D7F

To claim this, I am signing this object: