scores
Creates, updates, deletes, gets or lists a scores resource.
Overview
| Name | scores |
| Type | Resource |
| Id | pagerduty.standards.scores |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
resource_id | string | |
resource_type | string | (technical_service) |
score | object | |
standards | array |
| Name | Datatype | Description |
|---|---|---|
resource_id | string | |
resource_type | string | (technical_service) |
score | object | |
standards | array |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id, resource_type | List standards applied to a specific resource<br /><br />Scoped OAuth requires: standards.read<br /> | |
list | select | ids, resource_type | List standards applied to a set of resources<br /><br />Scoped OAuth requires: standards.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.
| Name | Datatype | Description |
|---|---|---|
id | string | Id of the resource to apply the standards. |
ids | array | Ids of resources to apply the standards. Maximum of 100 items |
resource_type | string |
SELECT examples
- get
- list
List standards applied to a specific resource<br /><br />Scoped OAuth requires: standards.read<br />
SELECT
resource_id,
resource_type,
score,
standards
FROM pagerduty.standards.scores
WHERE id = '{{ id }}' -- required
AND resource_type = '{{ resource_type }}' -- required
;
List standards applied to a set of resources<br /><br />Scoped OAuth requires: standards.read<br />
SELECT
resource_id,
resource_type,
score,
standards
FROM pagerduty.standards.scores
WHERE ids = '{{ ids }}' -- required
AND resource_type = '{{ resource_type }}' -- required
;