Hi Everyone,
We are currently working on enhancing our incident management automation by incorporating Mean Time To Resolve (MTTR) and Mean Time To Acknowledge (MTTA) metrics into our email reports via Python.
Kindly suggest how we can fetch the information of MTTA and MTTR through API
Hi
You’ll find all of the API docs on our developer site: https://developer.pagerduty.com/api-reference/
For Analytics, there are a number of endpoints, depending on how you’d like to aggregate the data. You can also use a number of filters to select for characteristics like urgency, team, or date range. Note that analytics are not real time, they are aggregated periodically, and it can take up to 24 hours for new data to be processed and available.
https://developer.pagerduty.com/api-reference/25800c343e344-get-aggregated-incident-data should get you started.
I put up a Python example here: https://github.com/lnxchk/pdgarage-samples/blob/main/python/get_aggregate_analytics.py
HTH,
--mandi
Reply
Login to PagerDuty Commons
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.