sensu-plugins / sensu-plugins-opsgenie

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

Possibility to choose European OpsGenie API Endpoint - OPSGENIE_URL #77

Open mmitucha opened 4 years ago

mmitucha commented 4 years ago

Hello,

due to EU regulation there is dedicated European OpsGenie API endpoint: https://api.opsgenie.com/v2/alerts/ see https://docs.opsgenie.com/docs/alert-api & https://docs.opsgenie.com/docs/european-service-region

Variable is OPSGENIE_URL https://github.com/sensu-plugins/sensu-plugins-opsgenie/blob/master/bin/handler-opsgenie.rb#L16

It would be very useful if there is a possibility for overwriting API endpoint. Otherwise the API response is always "unauthorized".

By the way the plugin is great, thank you very much for work.