case_insights
Creates, updates, deletes, gets or lists a case_insights resource.
Overview
| Name | case_insights |
| Type | Resource |
| Id | datadog.service_management.case_insights |
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 |
|---|---|---|---|---|
add_case_insights | replace | case_id, data | Adds one or more insights to a case. Insights are references to related Datadog resources (such as monitors, security signals, incidents, or error tracking issues) that provide investigative context. Up to 100 insights can be added per request. Each insight requires a type (see CaseInsightType for allowed values), a ref (URL path to the resource), and a resource_id. | |
remove_case_insights | delete | case_id | Removes one or more previously added insights from a case by specifying their type and resource identifier in the request body. |
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) |
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. |
REPLACE examples
- add_case_insights
Adds one or more insights to a case. Insights are references to related Datadog resources (such as monitors, security signals, incidents, or error tracking issues) that provide investigative context. Up to 100 insights can be added per request. Each insight requires a type (see CaseInsightType for allowed values), a ref (URL path to the resource), and a resource_id.
REPLACE datadog.service_management.case_insights
SET
data = '{{ data }}'
WHERE
case_id = '{{ case_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;
DELETE examples
- remove_case_insights
Removes one or more previously added insights from a case by specifying their type and resource identifier in the request body.
DELETE FROM datadog.service_management.case_insights
WHERE case_id = '{{ case_id }}' --required
;