raw_incidents
Overview
Name | raw_incidents |
Type | Resource |
Id | pagerduty.analytics.raw_incidents |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Incident ID |
description | string | The incident description |
assignment_count | integer | Total count of instances where responders were assigned an incident (including through reassignment or escalation) or accepted a responder request. |
business_hour_interruptions | integer | Total number of unique interruptions during business hour. Business hour: 8am-6pm Mon-Fri, based on the user’s time zone. |
created_at | string | Timestamp of when the incident was created. |
engaged_seconds | integer | Total engaged time across all responders for this incident. Engaged time is measured from the time a user engages with an incident (by acknowledging or accepting a responder request) until the incident is resolved. This may include periods in which the incident was snoozed. |
engaged_user_count | integer | Total number of users who engaged (acknowledged, accepted responder request) in the incident. |
escalation_count | integer | Total count of instances where an incident is escalated between responders assigned to an escalation policy. |
incident_number | integer | The PagerDuty incident number |
major | boolean | An incident is classified as a major incident if it has one of the two highest priorities, or if multiple responders are added and acknowledge the incident. |
off_hour_interruptions | integer | Total number of unique interruptions during off hour. Off hour: 6pm-10pm Mon-Fri and all day Sat-Sun, based on the user’s time zone. |
priority_id | string | ID of the incident's priority level. |
priority_name | string | The user-provided short name of the priority. |
resolved_at | string | Timestamp of when the incident was resolved. |
seconds_to_engage | integer | A measure of people response time. This metric measures the time from the first user engagement (acknowledge or responder accept) to the last. This metric is only used for incidents with multiple responders; for incidents with one or no engaged users, this value is null. |
seconds_to_first_ack | integer | Time between start of an incident, and the first responder to acknowledge. |
seconds_to_mobilize | integer | Time between start of an incident, and the last additional responder to acknowledge. If an incident has one or less responders, the value will be null. |
seconds_to_resolve | integer | Time from when incident triggered until it was resolved. |
service_id | string | ID of the service that the incident triggered on. |
service_name | string | Name of the service that the incident triggered on. |
sleep_hour_interruptions | integer | Total number of unique interruptions during sleep hour. Sleep hour: 10pm-8am every day, based on the user’s time zone. |
snoozed_seconds | integer | Total seconds the incident has been snoozed for. |
team_id | string | ID of the team the incident was assigned to. |
team_name | string | Name of the team the incident was assigned to. |
urgency | string | Notification level |
user_defined_effort_seconds | integer | The total response effort in seconds, as defined by the user. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_analytics_incidents | SELECT | Provides enriched incident data and metrics for multiple incidents. Example metrics include Seconds to Resolve, Seconds to Engage, Snoozed Seconds, and Sleep Hour Interruptions. Some metric definitions can be found in our Knowledge Base. <!-- theme: warning --> > ### Early Access > This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it. <!-- theme: info --> > A team_ids or service_ids filter is required for user-level API keys or keys generated through an OAuth flow. Account-level API keys do not have this requirement.<!-- theme: info --> > Note: Analytics data is updated once per day. It takes up to 24 hours before new incidents appear in the Analytics API. Scoped OAuth requires: analytics.read | |
get_analytics_incidents_by_id | SELECT | id | Provides enriched incident data and metrics for a single incident. Example metrics include Seconds to Resolve, Seconds to Engage, Snoozed Seconds, and Sleep Hour Interruptions. Some metric definitions can be found in our Knowledge Base. <!-- theme: warning --> > ### Early Access > This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it. <!-- theme: info --> > Note: Analytics data is updated once per day. It takes up to 24 hours before new incidents appear in the Analytics API. Scoped OAuth requires: analytics.read |
_get_analytics_incidents_by_id | EXEC | id | Provides enriched incident data and metrics for a single incident. Example metrics include Seconds to Resolve, Seconds to Engage, Snoozed Seconds, and Sleep Hour Interruptions. Some metric definitions can be found in our Knowledge Base. <!-- theme: warning --> > ### Early Access > This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it. <!-- theme: info --> > Note: Analytics data is updated once per day. It takes up to 24 hours before new incidents appear in the Analytics API. Scoped OAuth requires: analytics.read |