hubot-archive / hubot-pager-me

PagerDuty integration for Hubot
https://www.npmjs.com/package/hubot-pager-me
MIT License
73 stars 93 forks source link

Restrict queries to a particular service #32

Closed stephenyeargin closed 9 years ago

stephenyeargin commented 9 years ago

Fixes #31

Our PagerDuty instance has numerous services that receive alerts, but we only want our Hubot to query against a subset of those. This adds a HUBOT_PAGERDUTY_SERVICES environment variable that accepts a comma separated list of service identifiers. This list is then added as a service key on all of the pagerDutyGet method calls to apply that filter.

Reference: https://developer.pagerduty.com/documentation/rest/incidents/list

technicalpickles commented 9 years ago

Looks good, thanks!