A CLI toolkit for managing customer support workflows. Assumes that PagerDuty is used. Written by Vettabase for its support customers.
These scripts let you configure, test, and use your PagerDuty account from the command line.
- Python 3.6 or later (no third-party packages required)
- A PagerDuty REST API key
Run the configure script once to store your PagerDuty API key locally:
./_configure.py
You will be prompted to enter your PagerDuty Integration API key. You should have one. If not, contact support.
The key is saved to a file called PAGERDUTY_KEY in the current directory.
Now, use this script to test that the key works and the API is reachable:
./_test.py
Create a new PagerDuty incident:
./open-ticket.py 'Database server is unreachable'
If you don't specify a description, the script will ask you for one interactively.
This toolkit was released under the terms of the AGPLv3 license.