Skip to main content

team_on_call_users

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

Overview

Nameteam_on_call_users
TypeResource
Iddatadog.service_management.team_on_call_users

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique identifier of the on-call responder configuration.
relationshipsobjectRelationship objects linked to a team's on-call responder configuration, including escalations and responders.
typestringRepresents the resource type for a group of users assigned to handle on-call duties within a team. (team_oncall_responders) (default: team_oncall_responders, example: team_oncall_responders)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_team_on_call_usersselectteam_idincludeGet a team's on-call users at a given time

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
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.
team_idstringThe team ID
includestringComma-separated list of included relationships to be returned. Allowed values: responders, escalations, escalations.responders.

SELECT examples

Get a team's on-call users at a given time

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