Skip to main content

incident_types

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

Overview

Nameincident_types
TypeResource
Iddatadog.service_management.incident_types

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe incident type's ID. (example: 00000000-0000-0000-0000-000000000000)
attributesobjectIncident type's attributes.
relationshipsobjectThe incident type's resource relationships.
typestringIncident type resource type. (default: incident_types, example: incident_types)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_incident_typeselectincident_type_id, regionGet incident type details.
list_incident_typesselectregioninclude_deletedGet all incident types.
create_incident_typeinsertregion, data__dataCreate an incident type.
update_incident_typeupdateincident_type_id, region, data__dataUpdate an incident type.
delete_incident_typedeleteincident_type_id, regionDelete an incident type.

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
incident_type_idstringThe UUID of the incident type.
regionstring(default: datadoghq.com)
include_deletedbooleanInclude deleted incident types in the response.

SELECT examples

Get incident type details.

SELECT
id,
attributes,
relationships,
type
FROM datadog.service_management.incident_types
WHERE incident_type_id = '{{ incident_type_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create an incident type.

INSERT INTO datadog.service_management.incident_types (
data__data,
region
)
SELECT
'{{ data }}' /* required */,
'{{ region }}'
RETURNING
data
;

UPDATE examples

Update an incident type.

UPDATE datadog.service_management.incident_types
SET
data__data = '{{ data }}'
WHERE
incident_type_id = '{{ incident_type_id }}' --required
AND region = '{{ region }}' --required
AND data__data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete an incident type.

DELETE FROM datadog.service_management.incident_types
WHERE incident_type_id = '{{ incident_type_id }}' --required
AND region = '{{ region }}' --required
;