I want to track how many notifications have been sent to engineers in my company and associate them to a team, service, and alert if possible. How can I do this in the API? I see we can get Notification Rules, but not the notifications themselves. On the Alerts API, I can see a list of "responders". Is this something I can leverage, perhaps to get the number of people notified even if I can't get the number of notifications?
Hi @sduzett ,
Happy to help!
Using Analytics (Notification Reports) on Opsgenie would be the best way to track that, but if you wanted to use the API, you could use the Logs API endpoint here https://docs.opsgenie.com/docs/logs-api if you have the Enterprise plan to pull your Product Logs, and then use that resultant data to filter down on notifications sent. The other option would be to list Alerts, pull Alert Logging, and then filter for Notifications sent via that method.
Using the Responders field from the Alerts API endpoint would be informative on how many people were notified, but it wouldn't necessarily indicate how many notifications were sent between all of them throughout the Alert's lifespan.
Please let me know if you have any follow up questions!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.