Does anyone have a way to export all historical incidents from PagerDuty? I can't seem to make it work by using any of the options in here:
https://developer.pagerduty.com/api-reference/9d0b4b12e36f9-list-incidents
So I've been trying to do it in python using https://pagerduty.github.io/pdpyras/
My simple script looks like this:
import os
from pdpyras import APISession
api_key = os.environ['PD_API_KEY']
session = APISession(api_key, default_from="fake.email.com")
for incident in session.iter_all('incidents'):
print(incident)
This only exports about the last month worth of incidents. I can't seem to find a parameter to pass into this which will allow me to export ALL incidents.