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. (incident_types) (default: incident_types, example: incident_types)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_incident_typeselectincident_type_idGet incident type details.
list_incident_typesselectinclude_deletedGet all incident types.
create_incident_typeinsertdataCreate an incident type.
update_incident_typeupdateincident_type_id, dataUpdate an incident type.
delete_incident_typedeleteincident_type_idDelete 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.
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.
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
;

INSERT examples

Create an incident type.

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

UPDATE examples

Update an incident type.

UPDATE datadog.service_management.incident_types
SET
data = '{{ data }}'
WHERE
incident_type_id = '{{ incident_type_id }}' --required
AND 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
;