Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Opsgenie and Amazon team up to launch new DevOps Guru integration - now available!

We’re proud to announce that our integration with Amazon DevOps Guru is now live. The Amazon and Opsgenie product teams have worked together to build a deep integration between Opsgenie and the new...

541 views 0 16
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