sensu-plugins / sensu-plugins-opsgenie

Sensu plugins for OpsGenie
http://sensu-plugins.io
MIT License
4 stars 24 forks source link

Recipients should come from client not from server config #3

Closed jaxxstorm closed 7 years ago

jaxxstorm commented 9 years ago

Setting the recipient on the server side means that flexible alerting isn't possible. The handler should check for the present of client['teams'] or client['recipient'] and then fall back to the handler config if it's not found.

This would be a custom sensu tag, so we should update the docs to make this known.

eheydrick commented 8 years ago

This would be a nice improvement. Would happily take a PR for this functionality. See also PR https://github.com/sensu-plugins/sensu-plugins-opsgenie/pull/5 which lets you override opsgenie settings in the check.

analytically commented 8 years ago

Hi, I've released 0.0.3, which allows the check to override the config. Can you try with that version?

eheydrick commented 7 years ago

Reopen if this is still an issue.