Skip to main content

counts

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

Overview

Namecounts
TypeResource
Idpagerduty.paused_incident_reports.counts

Fields

The following fields are returned by SELECT queries:

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

NameDatatypeDescription
paused_countnumberThe total number of paused Alerts for the Account or Servce.
resolved_after_pause_countnumberThe total number of paused Alerts for the Account or Service that were resolved after being paused and not triggered (transient Alerts).
sincestringThe start of the date range over which the report data is represented.
triggered_after_pause_countnumberThe total number of paused Alerts for the Account or Service that were triggerd after being paused (non-transient Alerts).
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
get_paused_incident_report_countsselectAccept, Content-Type, since, until, service_id, suspended_byReturns reporting counts for paused Incident usage 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.

For more information see the API Concepts Document

Scoped OAuth requires: incidents.read
_get_paused_incident_report_countsexecAccept, Content-Type, since, until, service_id, suspended_byReturns reporting counts for paused Incident usage 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.

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
AcceptstringThe Accept header is used as a versioning header.
Content-Typestring
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 reporting counts for paused Incident usage 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.

For more information see the API Concepts Document

Scoped OAuth requires: incidents.read

SELECT
paused_count,
resolved_after_pause_count,
since,
triggered_after_pause_count,
until
FROM pagerduty.paused_incident_reports.counts
WHERE Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
AND since = '{{ since }}'
AND until = '{{ until }}'
AND service_id = '{{ service_id }}'
AND suspended_by = '{{ suspended_by }}'
;

Lifecycle Methods

Returns reporting counts for paused Incident usage 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.

For more information see the API Concepts Document

Scoped OAuth requires: incidents.read

EXEC pagerduty.paused_incident_reports.counts._get_paused_incident_report_counts 
@Accept='{{ Accept }}',
@Content-Type='{{ Content-Type }}',
@since='{{ since }}',
@until='{{ until }}',
@service_id='{{ service_id }}',
@suspended_by='{{ suspended_by }}'
;