nzymedefense / nzyme

Network Defense System.
https://www.nzyme.org/
Other
1.38k stars 144 forks source link

OpsGenie integration for sending alerts #460

Open mathieubrun opened 3 years ago

mathieubrun commented 3 years ago

I'd like to send alerts to OpsGenie instead of emails.

I had a look a the interface provided by nzyme, looks easy to do, nice job !

I could provide a PR, but I'm not sure which implementation you'd prefer:

  1. Add a dependency on OpsGenie java SDK and use it
  2. Only use HTTP calls, no dependency but maybe more complicated code

Any interest on this ?

lennartkoopmann commented 3 years ago

PR would be very welcome! OpsGenie Java SDK preferred if it's maintained and under a permissive enough license. Send me a link if you want me to check if out first.

mathieubrun commented 3 years ago

Licence is Apache 2.0 : https://github.com/opsgenie/opsgenieclient/blob/master/LICENSE

Last release is from 2017, it's still referenced in their doc : https://docs.opsgenie.com/docs/opsgenie-java-api

If they deprecate it there is always the possibility to directly call the REST API, but it's more work.