Skip to main content

incident_global_incident_handles

Creates, updates, deletes, gets or lists an incident_global_incident_handles resource.

Overview

Nameincident_global_incident_handles
TypeResource
Iddatadog.service_management.incident_global_incident_handles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the incident handle (example: 12ceee6d-a7c0-4407-bc54-30e54140d7f0)
attributesobjectIncident handle attributes for responses
relationshipsobjectRelationships associated with an incident handle response, including linked users and incident type.
typestringIncident handle resource type (incidents_handles) (example: incidents_handles)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_global_incident_handlesselectincludeRetrieve a list of global incident handles.
create_global_incident_handleinsertdataincludeCreate a new global incident handle.
update_global_incident_handlereplacedataincludeUpdate an existing global incident handle.
delete_global_incident_handledeleteDelete a global incident handle.

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
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.
includestringComma-separated list of related resources to include in the response

SELECT examples

Retrieve a list of global incident handles.

SELECT
id,
attributes,
relationships,
type
FROM datadog.service_management.incident_global_incident_handles
WHERE include = '{{ include }}'
;

INSERT examples

Create a new global incident handle.

INSERT INTO datadog.service_management.incident_global_incident_handles (
data,
include
)
SELECT
'{{ data }}' /* required */,
'{{ include }}'
RETURNING
data,
included
;

REPLACE examples

Update an existing global incident handle.

REPLACE datadog.service_management.incident_global_incident_handles
SET
data = '{{ data }}'
WHERE
data = '{{ data }}' --required
AND include = '{{ include}}'
RETURNING
data,
included;

DELETE examples

Delete a global incident handle.

DELETE FROM datadog.service_management.incident_global_incident_handles
;