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
Highlighted

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

Enhanced Incident Response from Opsgenie’s Mobile App

We’ve released a new version of the Opsgenie Mobile App that includes enhancements already introduced into the web app to empower a collaborative, transparent incident management process. To enjoy th...

154 views 0 2
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