OnCallPagingApi Missing endpoint to list pages
Describe the bug OnCallPagingApi has methods to Escalate, Acknowledge, Resolve or Create On-Call Pages but not to list them. The only way to list them is through the web ui https://app.datadoghq.eu/on-call/pages
To Reproduce Steps to reproduce the behavior:
- Try out the example for acknowledging an on-call page found here
- Try to change the code to list current triggered pages
- No methods or api endpoints exposed for that.
Expected behavior
A method similar to acknowledge_on_call_page but for listing outstanding pages, with the ability to filter out by responder, status, etc...
Screenshots
Environment and Versions (please complete the following information):
- datadog-api-client==2.41.0
Additional context The web UI is currently using an unstable API endpoint that differs from what the library is using ie:
- The library: https://github.com/DataDog/datadog-api-client-python/blob/22e917aa5ba86e8dbd8f4f3b4b211c565138e615/src/datadog_api_client/v2/api/on_call_paging_api.py#L32
- The web UI:
https://app.datadoghq.eu/api/unstable/on-call/pages
If the endpoints is unstable the expected behavior is to have it supported under the unstable feature flag
Thanks for your contribution!
This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community.
If you would like this issue to remain open:
-
Verify that you can still reproduce the issue in the latest version of this project.
-
Comment that the issue is still reproducible and include updated details requested in the issue template.