mirabelle.output.pagerduty

event+keys->str

(event+keys->str event event-keys separator)

event-url

format-event

(format-event {:keys [source-key summary-keys]} event)

Formats an event for PagerDuty v2 API

parse-timestamp

(parse-timestamp event)

post

(post request-body url options)

POST to the PagerDuty events API.

request-body

(request-body {:keys [service-key dedup-keys], :as this} event-action event)

Generate PD v2 API request body. event-action is one of :trigger, :acknowledge, :resolve

send-event

(send-event {:keys [http-options], :as component} event-action event)

Send an event to Pagerduty.

valid-actions