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

Resource

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

A base class for 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.