You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am trying to get closed alerts how do I get those?
Hi @Shahanawaj Mulla ,
You could list closed alerts using a URL like this:
https://api.opsgenie.com/v2/alerts?query=status%3A%20closed
I believe this only pulls the 20 most recently closed alerts - so continue to GET more alerts with other URLs like these:
(Last* - would depend on the total alerts in your Opsgenie)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can we use another key-like source to get a closed status alert? like source and status is closed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes - you can realistically query just about any field using a GET on closed alerts except the alias. For example:
To verify my query I typically test in the UI, then use a URL encoder so I know what to include in the API URL:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.