Skip to main content

alerts

Creates, updates, deletes, gets or lists an alerts resource.

Overview

Namealerts
TypeResource
Idpagerduty.paused_incident_reports.alerts

Fields

The following fields are returned by SELECT queries:

Paused Incident Reporting on Alerts for the Account or scoped to a Service.

NameDatatypeDescription
resolved_after_pause_alertsarrayAn array of Alerts that were resolved after being paused.
sincestringThe start of the date range over which the report data is represented.
triggered_after_pause_alertsarrayAn array of Alerts that were triggered after being paused.
untilstringThe end of the date range over which the report data is represented.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsince, until, service_id, suspended_byReturns the 5 most recent alerts that were triggered after being paused and the 5 most recent alerts that were resolved after being paused for a given reporting period (maximum 6 months lookback period). Note: This feature is currently available as part of the Event Intelligence package or Digital Operations plan only.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#paused-incident-reports)<br /><br />Scoped OAuth requires: incidents.read<br />

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
service_idstringSpecifies a filter to limit the scope of reporting to a particular service
sincestring (date-time)The start of the date range over which you want to search.
suspended_bySpecifies a filter to scope the response to either alerts suspended by Auto Pause or Event Rules.
untilstring (date-time)The end of the date range over which you want to search.

SELECT examples

Returns the 5 most recent alerts that were triggered after being paused and the 5 most recent alerts that were resolved after being paused for a given reporting period (maximum 6 months lookback period). Note: This feature is currently available as part of the Event Intelligence package or Digital Operations plan only.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#paused-incident-reports)<br /><br />Scoped OAuth requires: incidents.read<br />

SELECT
resolved_after_pause_alerts,
since,
triggered_after_pause_alerts,
until
FROM pagerduty.paused_incident_reports.alerts
WHERE since = '{{ since }}'
AND until = '{{ until }}'
AND service_id = '{{ service_id }}'
AND suspended_by = '{{ suspended_by }}'
;