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_business_service_priority_thresholds
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_business_service_priority_thresholds | select | X-EARLY-ACCESS | Accept | 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.<!-- theme: warning --> > ### Early Access > This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it. |
delete_business_service_priority_thresholds | delete | X-EARLY-ACCESS | Accept | 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. <!-- theme: warning --> > ### Early Access > This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it. |
_get_business_service_priority_thresholds | exec | X-EARLY-ACCESS | Accept | 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.<!-- theme: warning --> > ### Early Access > This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it. |
put_business_service_priority_thresholds | exec | X-EARLY-ACCESS , global_threshold | Accept | Set the Account-level priority threshold for Business Service. <!-- theme: warning --> > ### Early Access > This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it. |
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 |
---|---|---|
X-EARLY-ACCESS | string | This header indicates that this API endpoint is UNDER CONSTRUCTION and may change at any time. You MUST pass in this header with the value business-impact-early-access . Do not use this endpoint in production, as it may change! |
Accept | string | The Accept header is used as a versioning header. |
SELECT
examples
- get_business_service_priority_thresholds
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.
<!-- theme: warning -->
> ### Early Access
> This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it.
SELECT
id,
order
FROM pagerduty.business_services.priority_thresholds
WHERE X-EARLY-ACCESS = '{{ X-EARLY-ACCESS }}' -- required
AND Accept = '{{ Accept }}'
;
DELETE
examples
- delete_business_service_priority_thresholds
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.
<!-- theme: warning -->
> ### Early Access
> This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it.
DELETE FROM pagerduty.business_services.priority_thresholds
WHERE X-EARLY-ACCESS = '{{ X-EARLY-ACCESS }}' --required
AND Accept = '{{ Accept }}'
;
Lifecycle Methods
- _get_business_service_priority_thresholds
- put_business_service_priority_thresholds
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.
<!-- theme: warning -->
> ### Early Access
> This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it.
EXEC pagerduty.business_services.priority_thresholds._get_business_service_priority_thresholds
@X-EARLY-ACCESS='{{ X-EARLY-ACCESS }}' --required,
@Accept='{{ Accept }}'
;
Set the Account-level priority threshold for Business Service.
<!-- theme: warning -->
> ### Early Access
> This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it.
EXEC pagerduty.business_services.priority_thresholds.put_business_service_priority_thresholds
@X-EARLY-ACCESS='{{ X-EARLY-ACCESS }}' --required,
@Accept='{{ Accept }}'
@@json=
'{
"global_threshold": "{{ global_threshold }}"
}'
;