grove.connectors.pagerduty package

PagerDuty connectors for Grove.

Submodules

grove.connectors.pagerduty.api module

PagerDuty Audit API client.

class grove.connectors.pagerduty.api.Client(token: str | None = None, retry: bool | None = True)[source]

Bases: object

get_records(since: str | None = None, cursor: str | None = None, limit: str | None = None) AuditLogEntries[source]

Fetches a list of audit logs which match the provided filters.

Parameters:
  • since – The ISO8601 format of the most recent event to fetch (inclusive).

  • cursor – The cursor to use when paging.

  • limit – Number of audit records per request.

Returns:

AuditLogEntries object containing a pagination cursor, and log entries.

grove.connectors.pagerduty.audit_records module

PagerDuty Audit connector for Grove.

class grove.connectors.pagerduty.audit_records.Connector(config: ConnectorConfig, context: Dict[str, str])[source]

Bases: BaseConnector

LOG_ORDER = 'REVERSE_CHRONOLOGICAL'
NAME = 'pagerduty_audit_records'
POINTER_PATH = 'execution_time'
collect()[source]

Collects PagerDuty audit records from the PagerDuty API.

https://developer.pagerduty.com/api-reference/

This will first check whether there are any pointers cached to indicate previous collections. If not, the last week of data will be collected.