Skip to content

Instantly share code, notes, and snippets.

View chrisgagne's full-sized avatar

Chris Gagne chrisgagne

View GitHub Profile
@chrisgagne
chrisgagne / incidents.py
Last active March 14, 2020 15:53
Export descriptions and notes from PagerDuty into a CSV file.
# -*- 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.