Skip to main content

case_comments

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

Overview

Namecase_comments
TypeResource
Iddatadog.service_management.case_comments

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:

NameAccessible byRequired ParamsOptional ParamsDescription
comment_caseinsertcase_id, dataComment case
update_case_commentreplacecase_id, cell_id, dataUpdates the text content of an existing comment on a case timeline. The comment is identified by its cell ID.
delete_case_commentdeletecase_id, cell_idDelete case comment

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_idstringCase's UUID or key (example: f98a5a5b-e0ff-45d4-b2f5-afe6e74de504)
cell_idstringThe UUID of the timeline cell (comment) to update. (example: f98a5a5b-e0ff-45d4-b2f5-afe6e74de504)
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.

INSERT examples

Comment case

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

REPLACE examples

Updates the text content of an existing comment on a case timeline. The comment is identified by its cell ID.

REPLACE datadog.service_management.case_comments
SET
data = '{{ data }}'
WHERE
case_id = '{{ case_id }}' --required
AND cell_id = '{{ cell_id }}' --required
AND data = '{{ data }}' --required;

DELETE examples

Delete case comment

DELETE FROM datadog.service_management.case_comments
WHERE case_id = '{{ case_id }}' --required
AND cell_id = '{{ cell_id }}' --required
;