Skip to main content

Automatic acks for the PagerDuty incidents

Project description

pagerduty-auto-ack

Sometimes you can not acknowledge an incident manually, but you also can not really respond to it. These are (and should be when you are on-call) usually short moments, taking about 15-20 minutes. A good example here is taking a shower. In such cases you may want to automatically acknowledge the incidents, to prevent loud notifications or calls from disturbing other people.

This script monitors the incidents that are assigned to you and acks them if needed. At the end of execution (when stopped with C^c) it displays the incidents that it acknowledged.

usage: pagerduty-auto-ack [-h] --pagerduty-api-key PAGERDUTY_API_KEY [--interval INTERVAL] [--urgency {high,low}]

Monitor and automatically ACKnowledge PagerDuty incidents

options:
  -h, --help            show this help message and exit
  --pagerduty-api-key   PAGERDUTY_API_KEY
  --interval INTERVAL   how often (in seconds) to run the check
  --urgency {high,low}  defaults to all urgencies

Requirements

It requires a user-level API key to run. This API key starts with the u+ prefix and can be generated by following the PagerDuty API docs.

How to run it

Fast and easy way is to use pipx:

pipx install pagerduty-auto-ack
pagerduty-auto-ack --pagerduty-api-key <api_key>

For development you can clone the repo and run the script with poetry:

poetry install
poetry run pagerduty-auto-ack --pagerduty-api-key <api_key>

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

pagerduty_auto_ack-1.0.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

pagerduty_auto_ack-1.0.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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