Skip to main content

incident_todos

Creates, updates, deletes, gets or lists an incident_todos resource.

Overview

Nameincident_todos
TypeResource
Iddatadog.service_management.incident_todos

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe incident todo's ID. (example: 00000000-0000-0000-1234-000000000000)
attributesobjectIncident todo's attributes.
relationshipsobjectThe incident's relationships from a response.
typestringTodo resource type. (default: incident_todos, example: incident_todos)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_incident_todoselectincident_id, todo_id, regionGet incident todo details.
list_incident_todosselectincident_id, regionGet all todos for an incident.
create_incident_todoinsertincident_id, region, data__dataCreate an incident todo.
update_incident_todoupdateincident_id, todo_id, region, data__dataUpdate an incident todo.
delete_incident_tododeleteincident_id, todo_id, regionDelete an incident todo.

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_idstringThe UUID of the incident.
regionstring(default: datadoghq.com)
todo_idstringThe UUID of the incident todo.

SELECT examples

Get incident todo details.

SELECT
id,
attributes,
relationships,
type
FROM datadog.service_management.incident_todos
WHERE incident_id = '{{ incident_id }}' -- required
AND todo_id = '{{ todo_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create an incident todo.

INSERT INTO datadog.service_management.incident_todos (
data__data,
incident_id,
region
)
SELECT
'{{ data }}' /* required */,
'{{ incident_id }}',
'{{ region }}'
RETURNING
data,
included
;

UPDATE examples

Update an incident todo.

UPDATE datadog.service_management.incident_todos
SET
data__data = '{{ data }}'
WHERE
incident_id = '{{ incident_id }}' --required
AND todo_id = '{{ todo_id }}' --required
AND region = '{{ region }}' --required
AND data__data = '{{ data }}' --required
RETURNING
data,
included;

DELETE examples

Delete an incident todo.

DELETE FROM datadog.service_management.incident_todos
WHERE incident_id = '{{ incident_id }}' --required
AND todo_id = '{{ todo_id }}' --required
AND region = '{{ region }}' --required
;