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,556,869
Community Members
 
Community Events
184
Community Groups

[OPSGENIE] Is it possible to relate an alert to an incident via API call?

Hi,

 

I'm new to using OPS Genie and currently studying the documentation as i'm planning on automating the creation of incidents based on the alerts we receive.

 

I'm also studying Marid integration and my idea is, whenever an alert is created, it will call the script referred to by actions.Create.script in marid.conf and this script will create an incident for me.

 

However, i want my script to check if a similar incident is already created for that alert. If there is, i will just relate that alert to the incident instead of creating a new one.

 

So far, I have read the following Rest API documentations but found no explicit mention of the ability to relate alerts to incident.

https://docs.opsgenie.com/docs/incident-api

https://docs.opsgenie.com/docs/alert-api

 

Is there any API that can be used to relate alerts to incidents? 

(Or perhaps I have missed it in the docs i mentioned above, in which case, please do correct me)

 

Thanks!

1 answer

0 votes
Mark Campbell-Vincent
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 21, 2019

Hi @Ivan Stanlley P Juan - Currently there isn't an API that associates an alert to an incident. When an alert is created that matches an incident rule of a service, it will automatically be associated with the related incident. 

 

_4776_Opsgenie_-_Alerts.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events