Skip to main content

case_types

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

Overview

Namecase_types
TypeResource
Iddatadog.service_management.case_types

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringCase type's identifier (example: aeadc05e-98a8-11ec-ac2c-da7ad0900001)
attributesobjectAttributes of a case type, which define a classification category for cases. Organizations use case types to model different workflows (for example, Security Incident, Bug Report, Change Request).
typestringJSON:API resource type for case types. (case_type) (default: case_type, example: case_type)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_all_case_typesselectGet all case types
create_case_typeinsertdataCreate a Case Type
update_case_typereplacecase_type_id, dataUpdates the name, emoji, or description of an existing case type.
delete_case_typedeletecase_type_idDelete a case 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
case_type_idstringThe UUID of the case type. (example: f98a5a5b-e0ff-45d4-b2f5-afe6e74de505)
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.

SELECT examples

Get all case types

SELECT
id,
attributes,
type
FROM datadog.service_management.case_types
;

INSERT examples

Create a Case Type

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

REPLACE examples

Updates the name, emoji, or description of an existing case type.

REPLACE datadog.service_management.case_types
SET
data = '{{ data }}'
WHERE
case_type_id = '{{ case_type_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete a case type

DELETE FROM datadog.service_management.case_types
WHERE case_type_id = '{{ case_type_id }}' --required
;