incident_todos
Creates, updates, deletes, gets or lists an incident_todos resource.
Overview
| Name | incident_todos |
| Type | Resource |
| Id | datadog.service_management.incident_todos |
Fields
The following fields are returned by SELECT queries:
- get_incident_todo
- list_incident_todos
| Name | Datatype | Description |
|---|---|---|
id | string | The incident todo's ID. (example: 00000000-0000-0000-1234-000000000000) |
attributes | object | Incident todo's attributes. |
relationships | object | The incident's relationships from a response. |
type | string | Todo resource type. (default: incident_todos, example: incident_todos) |
| Name | Datatype | Description |
|---|---|---|
id | string | The incident todo's ID. (example: 00000000-0000-0000-1234-000000000000) |
attributes | object | Incident todo's attributes. |
relationships | object | The incident's relationships from a response. |
type | string | Todo resource type. (default: incident_todos, example: incident_todos) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_incident_todo | select | incident_id, todo_id, region | Get incident todo details. | |
list_incident_todos | select | incident_id, region | Get all todos for an incident. | |
create_incident_todo | insert | incident_id, region, data__data | Create an incident todo. | |
update_incident_todo | update | incident_id, todo_id, region, data__data | Update an incident todo. | |
delete_incident_todo | delete | incident_id, todo_id, region | Delete 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.
| Name | Datatype | Description |
|---|---|---|
incident_id | string | The UUID of the incident. |
region | string | (default: datadoghq.com) |
todo_id | string | The UUID of the incident todo. |
SELECT examples
- get_incident_todo
- list_incident_todos
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
;
Get all todos for an incident.
SELECT
id,
attributes,
relationships,
type
FROM datadog.service_management.incident_todos
WHERE incident_id = '{{ incident_id }}' -- required
AND region = '{{ region }}' -- required
;
INSERT examples
- create_incident_todo
- Manifest
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
;
# Description fields are for documentation purposes
- name: incident_todos
props:
- name: incident_id
value: string
description: Required parameter for the incident_todos resource.
- name: region
value: string
description: Required parameter for the incident_todos resource.
- name: data
value: object
description: |
Incident todo data for a create request.
UPDATE examples
- update_incident_todo
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_incident_todo
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
;