Skip to main content

incident_responders

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

Overview

Nameincident_responders
TypeResource
Iddatadog.service_management.incident_responders

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (uuid)The responder identifier. (example: 00000000-0000-0000-0000-000000000000)
attributesobjectAttributes of an incident responder in a response.
relationshipsobjectRelationships for an incident responder.
typestringIncident responder resource type. (incident_responders) (example: incident_responders)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_incident_responderselectincident_id, responder_idGet a single responder for an incident.
list_incident_respondersselectincident_idList all responders for an incident.
create_incident_responderinsertincident_id, dataAdd a responder to an incident.
delete_incident_responderdeleteincident_id, responder_idRemove a responder from an incident.

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.
responder_idstring (uuid)The UUID of the incident responder.
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.

SELECT examples

Get a single responder for an incident.

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

INSERT examples

Add a responder to an incident.

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

DELETE examples

Remove a responder from an incident.

DELETE FROM datadog.service_management.incident_responders
WHERE incident_id = '{{ incident_id }}' --required
AND responder_id = '{{ responder_id }}' --required
;