Forwards events to OpsGenie
(opsgenie service-key recipients)
Creates an OpsGenie adapter. Takes your OG service key, and returns a map of functions which trigger and resolve events. clojure/hash from event host, service and tags will be used as the alias.
(let [og (opsgenie “my-service-key” “email@example.com")] (changed-state (where (state ”ok“) (:resolve og)) (where (state ”critical") (:trigger og))))