Skip to main content

past_incidents

Creates, updates, deletes, gets or lists a past_incidents resource.

Overview

Namepast_incidents
TypeResource
Idpagerduty.incidents.past_incidents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
incidentobjectIncident model reference
scorenumberThe computed similarity score associated with the incident and parent incident

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_past_incidentsselectidAccept, Content-TypePast Incidents returns Incidents within the past 6 months that have similar metadata and were generated on the same Service as the parent Incident. By default, 5 Past Incidents are returned. Note: This feature is currently available as part of the Event Intelligence package or Digital Operations plan only.

For more information see the API Concepts Document

Scoped OAuth requires: incidents.read
_get_past_incidentsexecidAccept, Content-TypePast Incidents returns Incidents within the past 6 months that have similar metadata and were generated on the same Service as the parent Incident. By default, 5 Past Incidents are returned. Note: This feature is currently available as part of the Event Intelligence package or Digital Operations plan only.

For more information see the API Concepts Document

Scoped OAuth requires: incidents.read

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe ID of the resource.
AcceptstringThe Accept header is used as a versioning header.
Content-Typestring

SELECT examples

Past Incidents returns Incidents within the past 6 months that have similar metadata and were generated on the same Service as the parent Incident. By default, 5 Past Incidents are returned. Note: This feature is currently available as part of the Event Intelligence package or Digital Operations plan only.

For more information see the API Concepts Document

Scoped OAuth requires: incidents.read

SELECT
incident,
score
FROM pagerduty.incidents.past_incidents
WHERE id = '{{ id }}' -- required
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
;

Lifecycle Methods

Past Incidents returns Incidents within the past 6 months that have similar metadata and were generated on the same Service as the parent Incident. By default, 5 Past Incidents are returned. Note: This feature is currently available as part of the Event Intelligence package or Digital Operations plan only.

For more information see the API Concepts Document

Scoped OAuth requires: incidents.read

EXEC pagerduty.incidents.past_incidents._get_past_incidents 
@id='{{ id }}' --required,
@Accept='{{ Accept }}',
@Content-Type='{{ Content-Type }}'
;