Reading from PagerDuty entities
Prerequisites
A PagerDuty object you want to read from. See the supported entities table below for the available entities.
The alerts and incident_notes entities belong to an incident, and team_members belongs to a team. Use alerts/, incidentIdincident_notes/, or incidentIdteam_members/. AWS Glue discovers the available incident and team IDs for your connection.teamId
Supported entities for source
| Entity | Can be filtered | Supports limit | Supports select * | Supports order by | Supports partitioning |
|---|---|---|---|---|---|
| incidents | Yes | Yes | Yes | No | No |
| log_entries | Yes | Yes | Yes | No | No |
| services | No | Yes | Yes | No | No |
| users | No | Yes | Yes | No | No |
| teams | No | Yes | Yes | No | No |
| escalation_policies | No | Yes | Yes | No | No |
| schedules | No | Yes | Yes | No | No |
| oncalls | Yes | Yes | Yes | No | No |
| maintenance_windows | No | Yes | Yes | No | No |
| change_events | Yes | Yes | Yes | No | No |
| audit_records | Yes | Yes | Yes | No | No |
| priorities | No | No | Yes | No | No |
| vendors | No | Yes | Yes | No | No |
| incident_types | No | No | Yes | No | No |
| tags | No | Yes | Yes | No | No |
| alerts | No | Yes | Yes | No | No |
| team_members | No | Yes | Yes | No | No |
| extensions | No | Yes | Yes | No | No |
| incident_notes | No | No | Yes | No | No |
| business_services | No | Yes | Yes | No | No |
Example – Reading from a PagerDuty entity
The following example reads from the incidents entity. Replace connectionName with the name of your PagerDuty connection:
read_df = glueContext.create_dynamic_frame.from_options( connection_type="pagerduty", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "incidents" } )