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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,917
Community Members
 
Community Events
184
Community Groups

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
Atlassian Team members are employees working across the company in a wide variety of roles.
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
AUG Leaders

Atlassian Community Events