Skip to main content

incident_impacts

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

Overview

Nameincident_impacts
TypeResource
Iddatadog.service_management.incident_impacts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe incident impact's ID. (example: 00000000-0000-0000-1234-000000000000)
attributesobjectThe incident impact's attributes.
relationshipsobjectThe incident impact's resource relationships.
typestringIncident impact resource type. (incident_impacts) (default: incident_impacts, example: incident_impacts)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_incident_impactsselectincident_idincludeGet all impacts for an incident.
create_incident_impactinsertincident_id, dataincludeCreate an impact for an incident.
patch_incident_impactupdateincident_id, impact_id, dataincludeUpdate an incident impact.
delete_incident_impactdeleteincident_id, impact_idDelete an incident impact.

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
impact_idstringThe UUID of the incident impact.
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.
includearraySpecifies which related resources should be included in the response.

SELECT examples

Get all impacts for an incident.

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

INSERT examples

Create an impact for an incident.

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

UPDATE examples

Update an incident impact.

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

DELETE examples

Delete an incident impact.

DELETE FROM datadog.service_management.incident_impacts
WHERE incident_id = '{{ incident_id }}' --required
AND impact_id = '{{ impact_id }}' --required
;