Skip to main content

incident_configurations

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

Overview

Nameincident_configurations
TypeResource
Iddatadog.service_management.incident_configurations

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_incident_configurationinsertincident_id, dataCreate a configuration for an incident.
update_incident_configurationupdateincident_id, dataUpdate a configuration for 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.
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.

INSERT examples

Create a configuration for an incident.

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

UPDATE examples

Update a configuration for an incident.

UPDATE datadog.service_management.incident_configurations
SET
data = '{{ data }}'
WHERE
incident_id = '{{ incident_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data,
included;