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>
Metadata
Release files for pagerduty-auto-ack 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pagerduty_auto_ack-1.0.0.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pagerduty_auto_ack-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / pagerduty_auto_ack-1.0.0.tar.gz
| Download URL | pagerduty_auto_ack-1.0.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
577bca34c72a1e5eed018f71d7e658a9dd13cafdc3263f067b4f8f874f81b3d2
|
|
BLAKE2b-256 checksum How to use checksums |
5454f9de440dad34c3254ef41db5705f5e682469a7f038be19be3beab93d79d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / pagerduty_auto_ack-1.0.0-py3-none-any.whl
| Download URL | pagerduty_auto_ack-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
678ee5c7bee51d932a4959c1ffd28d5f9088236f0681f4f5c4b2eaded7b54d91
|
|
BLAKE2b-256 checksum How to use checksums |
51f1c20031726bc8864752d6d50814c34fb8d1a3c831babb278a1d9f885f364f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|