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.
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 aservice
key on all of thepagerDutyGet
method calls to apply that filter.Reference: https://developer.pagerduty.com/documentation/rest/incidents/list