Skip to main content

incident_timestamp_overrides

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

Overview

Nameincident_timestamp_overrides
TypeResource
Iddatadog.service_management.incident_timestamp_overrides

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (uuid)The timestamp override identifier. (example: 00000000-0000-0000-0000-000000000000)
attributesobjectAttributes of a timestamp override in a response.
relationshipsobjectRelationships for a timestamp override.
typestringIncident timestamp override resource type. (incidents_timestamp_overrides) (example: incidents_timestamp_overrides)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_timestamp_overridesselectincident_idList all timestamp overrides for an incident.
create_timestamp_overrideinsertincident_id, dataCreate a timestamp override for an incident.
update_timestamp_overrideupdateincident_id, id, dataUpdate a timestamp override for an incident.
delete_timestamp_overridedeleteincident_id, idDelete a timestamp override 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
idstring (uuid)The UUID of the timestamp override.
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.

SELECT examples

List all timestamp overrides for an incident.

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

INSERT examples

Create a timestamp override for an incident.

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

UPDATE examples

Update a timestamp override for an incident.

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

DELETE examples

Delete a timestamp override for an incident.

DELETE FROM datadog.service_management.incident_timestamp_overrides
WHERE incident_id = '{{ incident_id }}' --required
AND id = '{{ id }}' --required
;