incident_timestamp_overrides
Creates, updates, deletes, gets or lists an incident_timestamp_overrides resource.
Overview
| Name | incident_timestamp_overrides |
| Type | Resource |
| Id | datadog.service_management.incident_timestamp_overrides |
Fields
The following fields are returned by SELECT queries:
- list_timestamp_overrides
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | The timestamp override identifier. (example: 00000000-0000-0000-0000-000000000000) |
attributes | object | Attributes of a timestamp override in a response. |
relationships | object | Relationships for a timestamp override. |
type | string | Incident timestamp override resource type. (incidents_timestamp_overrides) (example: incidents_timestamp_overrides) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_timestamp_overrides | select | incident_id | List all timestamp overrides for an incident. | |
create_timestamp_override | insert | incident_id, data | Create a timestamp override for an incident. | |
update_timestamp_override | update | incident_id, id, data | Update a timestamp override for an incident. | |
delete_timestamp_override | delete | incident_id, id | Delete 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.
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | The UUID of the timestamp override. |
incident_id | string | The UUID of the incident. |
site | string | The 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_timestamp_overrides
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_timestamp_override
- Manifest
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
;
# Description fields are for documentation purposes
- name: incident_timestamp_overrides
props:
- name: incident_id
value: "{{ incident_id }}"
description: Required parameter for the incident_timestamp_overrides resource.
- name: data
description: |
Timestamp override data in a create request.
value:
attributes:
timestamp_type: "{{ timestamp_type }}"
timestamp_value: "{{ timestamp_value }}"
type: "{{ type }}"
UPDATE examples
- update_timestamp_override
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_timestamp_override
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
;