Giter VIP home page Giter VIP logo

charlesbot-pagerduty-escalations's Introduction

Pagerduty Escalations

Travis CI

Code Coverage

Software License

A Charlesbot plugin to create an incident in Pagerduty and assign it to a specific service.

How does this work

This plugin adds the following two !help targets:

!lassie <service> [optional message] - Triggers a Pagerduty incident and assigns it to that service
!lassie services - Lists all the available Pagerduty services

Creating an escalation event triggers an incident in Pagerduty and assigns it to the specified service. Using a Slack interface that people are already comfortable with, this could be a very useful and efficient way of getting the attention of the right people during an emergency.

Installation

pip install charlesbot-pagerduty-escalations

Instructions for how to run Charlesbot are over at https://github.com/marvinpinto/charlesbot!

Configuration

First off, create one or more services in Pagerduty of type Generic API. This plugin makes use of a service's Integration Key to trigger escalation events.

In your Charlesbot config.yaml, enable this plugin by adding the following entry to the main section:

main:
  enabled_plugins:
    - 'charlesbot_pagerduty_escalations.pagerdutyescalations.PagerdutyEscalations'

Then add a pdescalations dictionary block that looks something like:

pdescalations:
  service_mappings:
    service_one_name: 's1_pd_key'
    service_two_name: 's2_pd_key'

The name that you assign your service will be the name that shows up when a person issues the !lassie services command. The corresponding key here is the Integration Key associated with that service (in Pagerduty).

Sample config file

main:
  slackbot_token: 'xoxb-1234'
  enabled_plugins:
    - 'charlesbot_pagerduty_escalations.pagerdutyescalations.PagerdutyEscalations'

pdescalations:
  service_mappings:
    service_one_name: 's1_pd_key'
    service_two_name: 's2_pd_key'

License

See the LICENSE.txt file for license rights and limitations (MIT).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.