Skip to main content

statuspage_degradations

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

Overview

Namestatuspage_degradations
TypeResource
Iddatadog.service_management.statuspage_degradations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (uuid)The ID of the degradation.
attributesobjectThe attributes of a degradation.
relationshipsobjectThe relationships of a degradation.
typestringDegradations resource type. (degradations) (default: degradations, example: degradations)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_degradationselectpage_id, degradation_idincludeRetrieves a specific degradation by its ID.
list_degradationsselectfilter[page_id], page[offset], page[limit], include, filter[status], sort, filter[source_id]Lists all degradations for the organization. Optionally filter by status and page.
create_degradationinsertpage_idnotify_subscribers, includeCreates a new degradation.
update_degradationupdatepage_id, degradation_idnotify_subscribers, includeUpdates an existing degradation's attributes.
delete_degradationdeletepage_id, degradation_idDeletes a degradation by its ID.

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
degradation_idstring (uuid)The ID of the degradation.
page_idstring (uuid)The ID of the status page.
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.
filter[page_id]stringOptional page id filter.
filter[source_id]stringOptional source ID filter. Returns only degradations whose source matches this ID (for example, an incident ID).
filter[status]stringOptional degradation status filter. Supported values: investigating, identified, monitoring, resolved.
includestringComma-separated list of resources to include. Supported values: created_by_user, last_modified_by_user, status_page.
notify_subscribersbooleanWhether to notify page subscribers of the degradation.
page[limit]integer (int64)The number of degradations to return per page.
page[offset]integer (int64)Offset to use as the start of the page.
sortstringSort order. Prefix with '-' for descending. Supported values: created_at, -created_at, modified_at, -modified_at.

SELECT examples

Retrieves a specific degradation by its ID.

SELECT
id,
attributes,
relationships,
type
FROM datadog.service_management.statuspage_degradations
WHERE page_id = '{{ page_id }}' -- required
AND degradation_id = '{{ degradation_id }}' -- required
AND include = '{{ include }}'
;

INSERT examples

Creates a new degradation.

INSERT INTO datadog.service_management.statuspage_degradations (
data,
meta,
page_id,
notify_subscribers,
include
)
SELECT
'{{ data }}',
'{{ meta }}',
'{{ page_id }}',
'{{ notify_subscribers }}',
'{{ include }}'
RETURNING
data,
included
;

UPDATE examples

Updates an existing degradation's attributes.

UPDATE datadog.service_management.statuspage_degradations
SET
data = '{{ data }}',
meta = '{{ meta }}'
WHERE
page_id = '{{ page_id }}' --required
AND degradation_id = '{{ degradation_id }}' --required
AND notify_subscribers = {{ notify_subscribers}}
AND include = '{{ include}}'
RETURNING
data,
included;

DELETE examples

Deletes a degradation by its ID.

DELETE FROM datadog.service_management.statuspage_degradations
WHERE page_id = '{{ page_id }}' --required
AND degradation_id = '{{ degradation_id }}' --required
;