case_custom_attributes
Creates, updates, deletes, gets or lists a case_custom_attributes resource.
Overview
| Name | case_custom_attributes |
| Type | Resource |
| Id | datadog.service_management.case_custom_attributes |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
update_case_custom_attribute | insert | case_id, custom_attribute_key, data | Update case custom attribute | |
delete_case_custom_attribute | delete | case_id, custom_attribute_key | Delete custom attribute from case |
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.
| Name | Datatype | Description |
|---|---|---|
case_id | string | Case's UUID or key (example: f98a5a5b-e0ff-45d4-b2f5-afe6e74de504) |
custom_attribute_key | string | Case Custom attribute's key (example: aws_region) |
site | string | The 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. |
INSERT examples
- update_case_custom_attribute
- Manifest
Update case custom attribute
INSERT INTO datadog.service_management.case_custom_attributes (
data,
case_id,
custom_attribute_key
)
SELECT
'{{ data }}' /* required */,
'{{ case_id }}',
'{{ custom_attribute_key }}'
RETURNING
data
;
# Description fields are for documentation purposes
- name: case_custom_attributes
props:
- name: case_id
value: "{{ case_id }}"
description: Required parameter for the case_custom_attributes resource.
- name: custom_attribute_key
value: "{{ custom_attribute_key }}"
description: Required parameter for the case_custom_attributes resource.
- name: data
description: |
Case update custom attribute
value:
attributes:
is_multi: {{ is_multi }}
type: "{{ type }}"
value: "{{ value }}"
type: "{{ type }}"
DELETE examples
- delete_case_custom_attribute
Delete custom attribute from case
DELETE FROM datadog.service_management.case_custom_attributes
WHERE case_id = '{{ case_id }}' --required
AND custom_attribute_key = '{{ custom_attribute_key }}' --required
;