Skip to content

Instantly share code, notes, and snippets.

Chris Gagne chrisgagne

View GitHub Profile
@chrisgagne
chrisgagne / incidents.py
Last active Jan 7, 2019
Export descriptions and notes from PagerDuty into a CSV file.
View incidents.py
# -*- coding: utf-8 -*-
# This script requires pygerduty: https://github.com/dropbox/pygerduty
# Given a start date and end date, this sample will export the description and
# notes from all incidents to a CSV file. The CSV file is formatted for use
# with Excel.
# This will export to incident_notes_[start date]_-_[end date].csv in the same
# directory that this script is located in.
# This would be most useful to join with a CSV file as exported from PagerDuty.
You can’t perform that action at this time.