severities
Creates, updates, deletes, gets or lists a severities resource.
Overview
| Name | severities |
| Type | Resource |
| Id | pagerduty.status_pages.severities |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | An unique identifier within Status Page scope that defines a Severity entry. |
description | string | The description is a human-readable text that describes the Severity level. |
post_type | string | The type of the Post. (incident, maintenance) |
self | string | The API resource URL of the Severity. |
status_page | object | Status Page |
type | string | The type of the object returned by the API - in this case, a Status Page Severity. |
| Name | Datatype | Description |
|---|---|---|
id | string | An unique identifier within Status Page scope that defines a Severity entry. |
description | string | The description is a human-readable text that describes the Severity level. |
post_type | string | The type of the Post. (incident, maintenance) |
self | string | The API resource URL of the Severity. |
status_page | object | Status Page |
type | string | The type of the object returned by the API - in this case, a Status Page Severity. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id, severity_id | Get a Severity for a Status Page by Status Page ID and Severity ID.<br /><br />Scoped OAuth requires: status_pages.read<br /> | |
list | select | id | post_type | List Severities for a Status Page by Status Page ID.<br /><br />Scoped OAuth requires: status_pages.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 | The ID of the resource. |
severity_id | string | The ID of the Status Page severity. |
post_type | string | Filter by Post type. |
SELECT examples
- get
- list
Get a Severity for a Status Page by Status Page ID and Severity ID.<br /><br />Scoped OAuth requires: status_pages.read<br />
SELECT
id,
description,
post_type,
self,
status_page,
type
FROM pagerduty.status_pages.severities
WHERE id = '{{ id }}' -- required
AND severity_id = '{{ severity_id }}' -- required
;
List Severities for a Status Page by Status Page ID.<br /><br />Scoped OAuth requires: status_pages.read<br />
SELECT
id,
description,
post_type,
self,
status_page,
type
FROM pagerduty.status_pages.severities
WHERE id = '{{ id }}' -- required
AND post_type = '{{ post_type }}'
;