Skip to main content

A charlesbot pagerduty plugin

Project description

Travis CI Code Coverage Software License

A Charlesbot plugin that interacts with Pagerduty and does some cool shit.

How does this work

This plugin adds the following !help targets:

!oncall - Find out who's on-call right now

This will query Pagerduty and print out a list of all the on-call folks (for all the schedules).

/images/oncall.png?raw=true

Installation

pip install charlesbot-pagerduty

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

Configuration

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

main:
  enabled_plugins:
    - 'charlesbot_pagerduty.pagerduty.Pagerduty'

Then add a pagerduty dictionary block that looks something like:

pagerduty:
  token: 'E7px6VVr3PVHZPJq51oa'
  subdomain: 'acme'

Note that you will need a valid Pagerduty API token for the token value, a read-only token should suffice here.

Sample config file

main:
  slackbot_token: 'xoxb-1234'
  enabled_plugins:
    - 'charlesbot_pagerduty.pagerduty.Pagerduty'

pagerduty:
  token: 'E7px6VVr3PVHZPJq51oa'
  subdomain: 'acme'

License

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

charlesbot-pagerduty-1.0.0.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file charlesbot-pagerduty-1.0.0.tar.gz.

File metadata

File hashes

Hashes for charlesbot-pagerduty-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dc0f131d3afd0654c848eaef5fea800e6be38cbddb198d492ae06a946d78604c
MD5 c2298aacd8221540a13353948c1ad876
BLAKE2b-256 621f5dd90148ce182347929ae22703aeb9dc28f0b2eafb83cea781741bdf84fe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page