Skip to main content

incident_teams

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

Overview

Nameincident_teams
TypeResource
Iddatadog.service_management.incident_teams

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe incident team's ID. (example: 00000000-7ea3-0000-000a-000000000000)
attributesobjectThe incident team's attributes from a response.
relationshipsobjectThe incident team's relationships.
typestringIncident Team resource type. (default: teams, example: teams)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_incident_teamselectteam_id, regionincludeGet details of an incident team. If the include[users] query parameter is provided,
the included attribute will contain the users related to these incident teams.
list_incident_teamsselectregioninclude, page[size], page[offset], filterGet all incident teams for the requesting user's organization. If the include[users] query parameter is provided, the included attribute will contain the users related to these incident teams.
create_incident_teaminsertregion, data__dataCreates a new incident team.
update_incident_teamupdateteam_id, region, data__dataUpdates an existing incident team. Only provide the attributes which should be updated as this request is a partial update.
delete_incident_teamdeleteteam_id, regionDeletes an existing incident team.

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
regionstring(default: datadoghq.com)
team_idstringThe ID of the incident team.
filterstringA search query that filters teams by name.
includestringSpecifies which types of related objects should be included in the response.
page[offset]integer (int64)Specific offset to use as the beginning of the returned page.
page[size]integer (int64)Size for a given page. The maximum allowed value is 100.

SELECT examples

Get details of an incident team. If the include[users] query parameter is provided,
the included attribute will contain the users related to these incident teams.

SELECT
id,
attributes,
relationships,
type
FROM datadog.service_management.incident_teams
WHERE team_id = '{{ team_id }}' -- required
AND region = '{{ region }}' -- required
AND include = '{{ include }}'
;

INSERT examples

Creates a new incident team.

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

UPDATE examples

Updates an existing incident team. Only provide the attributes which should be updated as this request is a partial update.

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

DELETE examples

Deletes an existing incident team.

DELETE FROM datadog.service_management.incident_teams
WHERE team_id = '{{ team_id }}' --required
AND region = '{{ region }}' --required
;