zalando-zmon / zmon-worker

ZMON Python Worker
https://zmon.io/
Other
19 stars 41 forks source link

allow setting custom fields when creating opsgenie alert #357

Closed ghost closed 6 years ago

ghost commented 6 years ago

when creating an opsgenie alert, it's required to be able to optionally set custom fields in the alert. in such case notify_opsgenie should look like:

notify_opsgenie(teams=['zmon', 'ops'], message='Number of failed requests is too high!', include_alert=True,customfields={"runbooks":"https://runbo.stups.zalan.do/teams/zerowing/runbooks/marid_rollback"})