Is it possible to use the API to pull all past alerts for a team? Some of my team’s past alerts have notes on them. I would like to collect data on which past alerts have notes and which don’t.
Is it possible to use the API to pull all past alerts for a team?
Hello,
Thanks for reaching out on our Community space! The list incidents API would be for this, notes would be listed on the Incident itself and not the Alert
https://developer.pagerduty.com/api-reference/reference/REST/openapiv3.json/paths/~1incidents/get
John
Hi John,
Thanks for your response but this doesn’t help me because I am looking to get all the PAST alerts for my team but the /incidents
endpoint only pulls active alerts.
By past I mean resolved
and by active I mean triggered
or acknowledged
.
Hi William, I would strongly encourage (if you’re going to be working with the PD API relatively regularly) to use the PD-CLI command. It makes life much easier when working with most of the PD objects. Here is the link:
It will allow you to get all the resolved incidents including alerts. see the wiki page in the github repo.