Python wrapper for Pagerduty Events API
Project description
PagerDuty Events API
Python wrapper for PagerDuty’s Events API.
Installation
pip install pagerduty_events_api
Examples
Triggering an alert:
import pagerduty_events_api service = pagerduty_events_api.PagerdutyService('my_service_key_123') incident = service.trigger('some_alert_description')
Please note, that the trigger method of a pagerduty_events_api.PagerdutyService object returns a pagerduty_events_api.PagerdutyIncident instance. Through this instance You can retrieve the identifyer of the triggered incident, acknowledge or resolve it later.
Acknowledging an incident:
import pagerduty_events_api incident = pagerduty_events_api.PagerdutyIncident('my_service_key_123', 'my_incident_key456') incident.acknowledge()
Resolving an incident:
import pagerduty_events_api incident = pagerduty_events_api.PagerdutyIncident('my_service_key_123', 'my_incident_key456') incident.resolve()
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
Built Distribution
Close
Hashes for pagerduty_events_api-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c65bc414c15b08213204b072d26d82cd963bc5ee17c01bf435c57050f62f8acf |
|
MD5 | 993cfdedb36f46171efb8fb7a48f5109 |
|
BLAKE2b-256 | aa6a30f9e7f9c46c3ec71cf646f99546c2448518e266b382c159a4d28d48503b |
Close
Hashes for pagerduty_events_api-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de95d8eef58737e13e8592e5b71fa31bcb89490fb96f08a3996c0bad993f227e |
|
MD5 | 57521ecd28df4dac0c65c9411fd1ce53 |
|
BLAKE2b-256 | a24163feb514adf0001f9c24b2409e11254cb935ad2b67e92627376fea5cab38 |