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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pagerduty_auto_ack-1.0.0.tar.gz
.
File metadata
- Download URL: pagerduty_auto_ack-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 577bca34c72a1e5eed018f71d7e658a9dd13cafdc3263f067b4f8f874f81b3d2 |
|
MD5 | 38a725faa65d6639ca1f1bd1d8ecae64 |
|
BLAKE2b-256 | 5454f9de440dad34c3254ef41db5705f5e682469a7f038be19be3beab93d79d7 |
File details
Details for the file pagerduty_auto_ack-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: pagerduty_auto_ack-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 678ee5c7bee51d932a4959c1ffd28d5f9088236f0681f4f5c4b2eaded7b54d91 |
|
MD5 | 406bd66e9f5ff40d64e8c880df131c0f |
|
BLAKE2b-256 | 51f1c20031726bc8864752d6d50814c34fb8d1a3c831babb278a1d9f885f364f |