Is it possible create OpsGenie incident (not alert) by Java API?

447 views Asked by At

I am trying integrate Camunda spring boot app with Opsgenie space of our project. After adding Java SDK as the dependency, it's possible now to create alert to the Opsgenie project. But i need create incident (it is the type of alert as docs say), but i found only incident Rest API for this purpose - Java API creates only alerts.

Should i write custom implementation of this API method in Java? Help, please, thank you.

2

There are 2 answers

1
AudioBubble On

From doc: incidents can be created manually, or their creation can be automated

by consolidating Alerts through the use of Incident Rules

Thats why, maybe, Java API creates only alerts

0
Sergio Santiago On

Yes, you can create incidents. You can use opsgenie-oas project and generate the API client code using open API generator.