Skip to main content

replay_heatmap_snapshots

Creates, updates, deletes, gets or lists a replay_heatmap_snapshots resource.

Overview

Namereplay_heatmap_snapshots
TypeResource
Iddatadog.digital_experience.replay_heatmap_snapshots

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique identifier of the heatmap snapshot.
attributesobjectAttributes of a heatmap snapshot, including view context, device information, and audit metadata.
typestringSnapshots resource type. (snapshots) (default: snapshots, example: snapshots)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_replay_heatmap_snapshotsselectfilter[view_name]filter[device_type], page[limit], filter[application_id]List heatmap snapshots.
create_replay_heatmap_snapshotinsertdataCreate a heatmap snapshot.
update_replay_heatmap_snapshotupdatesnapshot_id, dataUpdate a heatmap snapshot.
delete_replay_heatmap_snapshotdeletesnapshot_idDelete a heatmap snapshot.

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
filter[view_name]stringView name to filter snapshots.
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.
snapshot_idstringUnique identifier of the heatmap snapshot.
filter[application_id]stringFilter by application ID.
filter[device_type]stringDevice type to filter snapshots.
page[limit]integer (int64)Maximum number of snapshots to return.

SELECT examples

List heatmap snapshots.

SELECT
id,
attributes,
type
FROM datadog.digital_experience.replay_heatmap_snapshots
WHERE filter[view_name] = '{{ filter[view_name] }}' -- required
AND filter[device_type] = '{{ filter[device_type] }}'
AND page[limit] = '{{ page[limit] }}'
AND filter[application_id] = '{{ filter[application_id] }}'
;

INSERT examples

Create a heatmap snapshot.

INSERT INTO datadog.digital_experience.replay_heatmap_snapshots (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;

UPDATE examples

Update a heatmap snapshot.

UPDATE datadog.digital_experience.replay_heatmap_snapshots
SET
data = '{{ data }}'
WHERE
snapshot_id = '{{ snapshot_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete a heatmap snapshot.

DELETE FROM datadog.digital_experience.replay_heatmap_snapshots
WHERE snapshot_id = '{{ snapshot_id }}' --required
;