Public | Automated Build

Last pushed: 10 months ago
Short Description
Pagerduty Plugin for SLAPI
Full Description

Pagerduty-Slapin

This is the Pagerduty Plugin or "SLAPIN" for SLAPI Bot managed by the SLAPI Team.

Installation & Configuration

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
  managed: true # Choose True or False for SLAPI management
  listen_type: passive # Choose passive or active.
  message_data: true # True/False to accept the message data from who sent a message
  config:
    name: pager # Name of instance
    Image: 'slapi/pagerduty-slapi' # 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)
    Tty: true # Set true/false for container TTY

or if you want to avoid using container Environment variables

plugin:
  type: container
  managed: true # Choose True or False for SLAPI management
  listen_type: passive # Choose passive or active.
  message_data: true # True/False to accept the message data from who sent a message
  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:
    name: pager # Name of instance
    Image: 'slapi/pagerduty-slapi' # 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
    Tty: true # Set true/false for container TTY
# Pager Token and Service lookups
pager:
  token: adfiaujioj3489 # Your API token
  service: a9u30rj # Service to trigger via bot

Usage

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/imperiallabs/pagerduty-slapin.

License

The gem is available as open source under the terms of the MIT License.

Docker Pull Command
Owner
slapi
Source Repository