Internal Resources

ConfigurationException

class pagerduty_api.exceptions.ConfigurationException

An exception for Configuration errors

IncidentKeyException

class pagerduty_api.exceptions.IncidentKeyException

An exception when no Incident Key exists

PagerDutyAPIServerException

class pagerduty_api.exceptions.PagerDutyAPIServerException

An exception for Pager Duty server errors

Resource

class pagerduty_api.base.Resource

A base class for API resources

AuthorizedResource

class pagerduty_api.base.AuthorizedResource(api_key=None, *args, **kwargs)

A base class for authorized API resources

__init__(api_key=None, *args, **kwargs)
Parameters:api_key (str) – The API key. If no key is passed, the environment variable PAGERDUTY_API_KEY is used.
Raises:If the api_key parameter is not present, and no environment variable is present, a ConfigurationException is raised.