Incident Command Utilities
This is a simple toolkit of utilities that make my on-call life easier.
Source code |
|
Download |
|
Documentation |
Installation
pip3 install ictools
Tools
list-pagerduty-incidents
list-pagerduty-incidents [options] START END
This utility retrieves incidents from PagerDuty for the time range and writes them to standard output. The –format option controls the output format which is JSON by default.
Options
- –format= json or confluence
This optional parameter sets the format of the produced output. The default for this option is to production JSON output.
- –verbose, -v
Increases the diagnostic verbosity. By default, errors and warnings are displayed. This option can be specified multiple times for increased effect.
- –quiet, -q
This option disables all diagnostic output.
Parameters
- START
The starting date for the range of incidents to retrieve.
- END
The ending date for the range of incidents to retrieve.
scan-hipchat-room
scan-hipchat-room [options] START END ROOM [ROOM...]
This utility retrieves messages from one or more HipChat rooms for the given time range. The –format option controls the output format which defaults to JSON.
Options
- –format= json or confluence
This optional parameter sets the format of the produced output. The default for this option is to production JSON output.
- –verbose, -v
Increases the diagnostic verbosity. By default, errors and warnings are displayed. This option can be specified multiple times for increased effect.
- –quiet, -q
This option disables all diagnostic output.
Parameters
- START
The starting date for the range of messages to retrieve.
- END
The ending date for the range of messages to retrieve.
- ROOM
One or more room names to fetch messages from.
create-confluence-table
create-confluence-table
This utility reads the “confluence” formatted output from other commands as its standard input. It parses the timestamp, sorts the rows based on the timestamp, and prints them to the standard output stream.
Environment Variables
HIPCHAT_TOKEN
API token to use when talking to the HipChat API.
PAGERDUTY_TOKEN
API token to use when talking to the pagerduty API.
Metadata
Release files for ictools 0.3.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 | Provenance | Actions |
|---|---|---|---|---|
| ictools-0.3.0.tar.gz | 6.6 kB | Without provenance | Details for ictools-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ictools-0.3.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for ictools-0.3.0-py2.py3-none-any.whl |
Total release size: 16.1 kB
Release files / ictools-0.3.0.tar.gz
| Download URL | ictools-0.3.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b308673745815ac9d6eb6acec1dba16689ece29ce7d51eaf87b0244fed8a548
|
|
BLAKE2b-256 checksum How to use checksums |
35a17dc7b759c2f5bd666c296feece620d1c80d1692f2645af1e947831fee753
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ictools-0.3.0-py2.py3-none-any.whl
| Download URL | ictools-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
28412f7958f74b27873a1fc8326e8041295439a7aef268bceaeb57880eb0681c
|
|
BLAKE2b-256 checksum How to use checksums |
15f79ddca5dec340e18747e85e265cab9b8dacc879daf69d3810279a80ac4175
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ictools 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.