moira-alert / notifier

[DEPRECATED]
GNU General Public License v3.0
16 stars 8 forks source link

basic support for pagerduty #21

Closed alxschwarz closed 7 years ago

alxschwarz commented 7 years ago

At this time, supports only "trigger" (https://v2.developer.pagerduty.com/docs/trigger-events). I would like to add support for "resolve" and "acknowledge" but I don't know how to store "incident_key" which returns after a request for the creating of the alert.

Sending the alert to PagerDuty can be tested using go test notifier_pagerduty_test.go from func_tests. I removed my trial api token from notifier_pagerduty_test.go, but I can provide this api token to test.

Any comments are very welcome! :)