This is the Pagerduty Plugin or "SLAPIN" for SLAPI Bot managed by the SLAPI Team.
Download a copy of this yaml or copy and paste the below to pager.yml into the config/plugins directory of your SLAPI bot.
plugin:
type: container
config:
name: pager # Name of instance
Image: 'slapi/slapin-pagerduty' # Enter user/repo (or :tag is an option as well) (standard docker pull procedures), you can also pull from a private repo via domain.com/repo
Env: # List of environment variables
- PAGER_TOKEN='API_KEY' # Your API token
- PAGER_SERVICE='SERVICE_ID' # Service(s) you wish to filter buy (Coming Soon)
or if you want to avoid using container Environment variables
plugin:
type: container
mount_config: '/pager/config/pager.yml' # Path to config inside container, Will check if not nil and will mount if this exists into container
config:
Image: 'slapi/slapin-pagerduty' # Enter user/repo (or :tag is an option as well) (standard docker pull procedures), you can also pull from a private repo via domain.com/repo
# Pager Token and Service lookups
pager:
token: adfiaujioj3489 # Your API token
service: a9u30rj # Service to trigger via bot
- Export the following
export PAGER_TOKEN=$TOKEN
or create a./config/pager.yml
(like the examples in Install section, only need thepager:
portion) - Either run
bundle install
or runbin/setup
to install dependencies - Run
./bin/pager
to utilize program
- Run
rake spec
to run the tests - You can also run
bin/console
for an interactive prompt that will allow you to experiment.
Bug reports and pull requests are welcome on GitHub at https://github.com/imperiallabs/slapin-pagerduty.
The gem is available as open source under the terms of the MIT License.