datalust / seq-app-opsgenie

Create Opsgenie alerts in response to events or notifications in Seq
Apache License 2.0
3 stars 2 forks source link

Improved logging, add Seq properties to OpsGenie #10

Closed MattMofDoom closed 2 years ago

MattMofDoom commented 2 years ago

Hi @nblumhardt ,

This PR could viably supersede and close #9.

I have added a new 'details' node to the OpsGenieAlert, which will send the following properties to OpsGenie;

I have also enhanced the logging of OpsGenie results. This will capture the HttpResponseMessage and the OpsGenie Json result (deserialized to an OpsGenieResponse class).

This will improve traceability of events sent to OpsGenie, both by having the Seq properties in OpsGenie, and by logging the results to Seq as structured properties.

I've tested with our OpsGenie instance and it works very well! 😊

Cheers,

Matt

MattMofDoom commented 2 years ago

Updated dependencies

MattMofDoom commented 2 years ago

Closing as superseded by #12