priority_thresholds
Creates, updates, deletes, gets or lists a priority_thresholds resource.
Overview
| Name | priority_thresholds |
| Type | Resource |
| Id | pagerduty.business_services.priority_thresholds |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
id | string | |
order | integer |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | 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 /> | ||
update | update | global_threshold | Set the Account-level priority threshold for Business Service.<br />Scoped OAuth requires: services.write<br /> | |
delete | delete | 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 /> |
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.
| Name | Datatype | Description |
|---|
SELECT examples
- get
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
- update
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
- delete
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
;