Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automatically Acknowledge and Close Alert using Python

Hi Guys

 

I am going to develop a small program using Python. This program will do the following:

  • GUI having User Name and Password
  • When User enter the User Name and Password. The Program will Log-In to Ops-Genie
  • Check Every 1 minute that any Open Alert exists. If Open Alert exists then Mark this Alert as Acknowledged.

Anyone please guide me How I will do this.

Thanks

1 comment

Samir Atlassian Team Jun 22, 2020

Hi @Anil Sharma - as far as developing the web application, I can't offer much guidance there. But in regard to closing and acknowledging alerts in Opsgenie from Python, you can leverage our Alert API to acknowledge and close alerts from a python script. 

Here is the documentation for the 2 requests...

Close Alert API Request - https://docs.opsgenie.com/docs/alert-api#close-alert

Acknowledge Alert API Request - https://docs.opsgenie.com/docs/alert-api#acknowledge-alert

 

We have found using the "requests" library in Python as a good option for making requests to our API.  

 

Hope that helps!

 

Thanks,

Samir

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Opsgenie

Leveraging Atlassian’s Opsgenie and AWS Cloudformation Registry to stay ahead of incidents

In the past, managing IT infrastructure was a hard job. It required a lot of manual effort and it was hard to keep track of all the necessary information (monitoring, scalability etc). Thankfully, as...

2,368 views 0 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you