I'm trying to query the Opsgenie python API based on time range but I don't see any API that supports the action.
Hi @Ashok Simma ,
Not a Python expert myself, but this is possible via the alert API using something like Postman - so I have to assume it should be possible with Python as well.
You can query between date ranges. For example if you wanted to pull alerts created in the month of November, you might use something like this:
https://api.opsgenie.com/v2/alerts?query=createdAt%3E31-10-2022%20AND%20createdAt%3C01-12-2022
I typically use a site like URL Encoder to help, but not sure what the Python format / query might be. I'm not sure if any of that helps, but again leads me to believe it should be possible.
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.