Skip to content

Latest commit

 

History

History
86 lines (60 loc) · 2.69 KB

README.md

File metadata and controls

86 lines (60 loc) · 2.69 KB

lita-pagerduty

Build Status MIT License RubyGems :: RMuh Gem Version Coveralls Coverage Code Climate Gemnasium

A PagerDuty plugin for Lita.

Installation

Add lita-pagerduty to your Lita instance's Gemfile:

gem "lita-pagerduty"

Configuration

Create a PagerDuty API key (v2). You will need to give it FullAccess to update incidents.

Add the following variables to your Lita config file:

config.handlers.pagerduty.api_key = ''
config.handlers.pagerduty.email   = ''

If your account has the teams capability and you want to scope Lita's access to a specific set of teams, you can set the list of teams by adding the following to your config file:

config..handlers.pagerduty.teams = [ "team-a", "team-b" ]

Usage

Misc

pager identify <email address>     - Associate your chat user with your email address
pager forget                       - Remove your chat user / email association

Specific incidents

pager incidents all                - Show all open incidents
pager incidents mine               - Show all open incidents assigned to me
pager incident <incident ID>       - Show a specific incident

Incident notes

pager notes <incident ID>          - Show all notes for a specific incident

Acknowledging an incident

pager ack all                      - Acknowledge all triggered incidents
pager ack mine                     - Acknowledge all triggered incidents assigned to me
pager ack <incident ID>            - Acknowledge a specific incident

Resolving an incident

pager resolve all                  - Resolve all triggered incidents
pager resolve mine                 - Resolve all triggered incidents assigned to me
pager resolve <incident ID>        - Resolve a specific incident

Schedules

pager oncall - List available schedules
pager oncall <schedule> - Show who is on call for the given schedule

License

MIT