Skip to main content

priority_thresholds

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

Overview

Namepriority_thresholds
TypeResource
Idpagerduty.business_services.priority_thresholds

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring
orderinteger

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectRetrieves the priority threshold information for an account. Currently, there is a global_threshold that can be set for the account. Incidents that have a priority meeting or exceeding this threshold will be considered impacting on any Business Service that depends on the Service to which the Incident belongs.<br />Scoped OAuth requires: services.read<br />
updateupdateglobal_thresholdSet the Account-level priority threshold for Business Service.<br />Scoped OAuth requires: services.write<br />
deletedeleteClears the Priority Threshold for the account. If the priority threshold is cleared, any Incident with a Priority set will be able to impact Business Services.<br />Scoped OAuth requires: services.write<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

SELECT examples

Retrieves the priority threshold information for an account. Currently, there is a global_threshold that can be set for the account. Incidents that have a priority meeting or exceeding this threshold will be considered impacting on any Business Service that depends on the Service to which the Incident belongs.<br />Scoped OAuth requires: services.read<br />

SELECT
id,
order
FROM pagerduty.business_services.priority_thresholds
;

UPDATE examples

Set the Account-level priority threshold for Business Service.<br />Scoped OAuth requires: services.write<br />

UPDATE pagerduty.business_services.priority_thresholds
SET
global_threshold = '{{ global_threshold }}'
WHERE
global_threshold = '{{ global_threshold }}' --required
RETURNING
global_threshold;

DELETE examples

Clears the Priority Threshold for the account. If the priority threshold is cleared, any Incident with a Priority set will be able to impact Business Services.<br />Scoped OAuth requires: services.write<br />

DELETE FROM pagerduty.business_services.priority_thresholds
;