Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,113 changes: 1,113 additions & 0 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions examples/v2/rum-replay-heatmaps/CreateReplayHeatmapSnapshot.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Create replay heatmap snapshot returns "Created" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayHeatmapsAPI.new

body = DatadogAPIClient::V2::SnapshotCreateRequest.new({
data: DatadogAPIClient::V2::SnapshotCreateRequestData.new({
attributes: DatadogAPIClient::V2::SnapshotCreateRequestDataAttributes.new({
application_id: "aaaaaaaa-1111-2222-3333-bbbbbbbbbbbb",
device_type: "desktop",
event_id: "11111111-2222-3333-4444-555555555555",
is_device_type_selected_by_user: false,
snapshot_name: "My Snapshot",
start: 0,
view_name: "/home",
}),
type: DatadogAPIClient::V2::SnapshotUpdateRequestDataType::SNAPSHOTS,
}),
})
p api_instance.create_replay_heatmap_snapshot(body)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Delete replay heatmap snapshot returns "No Content" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayHeatmapsAPI.new
api_instance.delete_replay_heatmap_snapshot("00000000-0000-0000-0000-000000000001")
5 changes: 5 additions & 0 deletions examples/v2/rum-replay-heatmaps/ListReplayHeatmapSnapshots.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List replay heatmap snapshots returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayHeatmapsAPI.new
p api_instance.list_replay_heatmap_snapshots("/home")
17 changes: 17 additions & 0 deletions examples/v2/rum-replay-heatmaps/UpdateReplayHeatmapSnapshot.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Update replay heatmap snapshot returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayHeatmapsAPI.new

body = DatadogAPIClient::V2::SnapshotUpdateRequest.new({
data: DatadogAPIClient::V2::SnapshotUpdateRequestData.new({
attributes: DatadogAPIClient::V2::SnapshotUpdateRequestDataAttributes.new({
event_id: "11111111-2222-3333-4444-555555555555",
is_device_type_selected_by_user: false,
start: 0,
}),
id: "00000000-0000-0000-0000-000000000001",
type: DatadogAPIClient::V2::SnapshotUpdateRequestDataType::SNAPSHOTS,
}),
})
p api_instance.update_replay_heatmap_snapshot("00000000-0000-0000-0000-000000000001", body)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Add rum replay session to playlist returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new
p api_instance.add_rum_replay_session_to_playlist(1704067200000, 1234567, "00000000-0000-0000-0000-000000000001")
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Bulk remove rum replay playlist sessions returns "No Content" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new

body = DatadogAPIClient::V2::SessionIdArray.new({
data: [
DatadogAPIClient::V2::SessionIdData.new({
id: "00000000-0000-0000-0000-000000000001",
type: DatadogAPIClient::V2::ViewershipHistorySessionDataType::RUM_REPLAY_SESSION,
}),
],
})
api_instance.bulk_remove_rum_replay_playlist_sessions(1234567, body)
19 changes: 19 additions & 0 deletions examples/v2/rum-replay-playlists/CreateRumReplayPlaylist.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Create rum replay playlist returns "Created" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new

body = DatadogAPIClient::V2::Playlist.new({
data: DatadogAPIClient::V2::PlaylistData.new({
attributes: DatadogAPIClient::V2::PlaylistDataAttributes.new({
created_by: DatadogAPIClient::V2::PlaylistDataAttributesCreatedBy.new({
handle: "john.doe@example.com",
id: "00000000-0000-0000-0000-000000000001",
uuid: "00000000-0000-0000-0000-000000000001",
}),
name: "My Playlist",
}),
type: DatadogAPIClient::V2::PlaylistDataType::RUM_REPLAY_PLAYLIST,
}),
})
p api_instance.create_rum_replay_playlist(body)
5 changes: 5 additions & 0 deletions examples/v2/rum-replay-playlists/DeleteRumReplayPlaylist.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Delete rum replay playlist returns "No Content" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new
api_instance.delete_rum_replay_playlist(1234567)
5 changes: 5 additions & 0 deletions examples/v2/rum-replay-playlists/GetRumReplayPlaylist.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Get rum replay playlist returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new
p api_instance.get_rum_replay_playlist(1234567)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List rum replay playlist sessions returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new
p api_instance.list_rum_replay_playlist_sessions(1234567)
5 changes: 5 additions & 0 deletions examples/v2/rum-replay-playlists/ListRumReplayPlaylists.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List rum replay playlists returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new
p api_instance.list_rum_replay_playlists()
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Remove rum replay session from playlist returns "No Content" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new
api_instance.remove_rum_replay_session_from_playlist(1234567, "00000000-0000-0000-0000-000000000001")
19 changes: 19 additions & 0 deletions examples/v2/rum-replay-playlists/UpdateRumReplayPlaylist.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Update rum replay playlist returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new

body = DatadogAPIClient::V2::Playlist.new({
data: DatadogAPIClient::V2::PlaylistData.new({
attributes: DatadogAPIClient::V2::PlaylistDataAttributes.new({
created_by: DatadogAPIClient::V2::PlaylistDataAttributesCreatedBy.new({
handle: "john.doe@example.com",
id: "00000000-0000-0000-0000-000000000001",
uuid: "00000000-0000-0000-0000-000000000001",
}),
name: "My Playlist",
}),
type: DatadogAPIClient::V2::PlaylistDataType::RUM_REPLAY_PLAYLIST,
}),
})
p api_instance.update_rum_replay_playlist(1234567, body)
5 changes: 5 additions & 0 deletions examples/v2/rum-replay-sessions/GetSegments.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Get segments returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplaySessionsAPI.new
p api_instance.get_segments("00000000-0000-0000-0000-000000000002", "00000000-0000-0000-0000-000000000001")
16 changes: 16 additions & 0 deletions examples/v2/rum-replay-viewership/CreateRumReplaySessionWatch.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Create rum replay session watch returns "Created" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayViewershipAPI.new

body = DatadogAPIClient::V2::Watch.new({
data: DatadogAPIClient::V2::WatchData.new({
attributes: DatadogAPIClient::V2::WatchDataAttributes.new({
application_id: "aaaaaaaa-1111-2222-3333-bbbbbbbbbbbb",
event_id: "11111111-2222-3333-4444-555555555555",
timestamp: "2026-01-13T17:15:53.208340Z",
}),
type: DatadogAPIClient::V2::WatchDataType::RUM_REPLAY_WATCH,
}),
})
p api_instance.create_rum_replay_session_watch("00000000-0000-0000-0000-000000000001", body)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Delete rum replay session watch returns "No Content" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayViewershipAPI.new
api_instance.delete_rum_replay_session_watch("00000000-0000-0000-0000-000000000001")
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List rum replay session watchers returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayViewershipAPI.new
p api_instance.list_rum_replay_session_watchers("00000000-0000-0000-0000-000000000001")
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List rum replay viewership history sessions returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumReplayViewershipAPI.new
p api_instance.list_rum_replay_viewership_history_sessions()
83 changes: 83 additions & 0 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3115,6 +3115,22 @@
"agent_rule_id" => "String",
"body" => "CloudWorkloadSecurityAgentRuleUpdateRequest",
},
"v2.ListReplayHeatmapSnapshots" => {
"filter_device_type" => "String",
"filter_view_name" => "String",
"page_limit" => "Integer",
"filter_application_id" => "String",
},
"v2.CreateReplayHeatmapSnapshot" => {
"body" => "SnapshotCreateRequest",
},
"v2.DeleteReplayHeatmapSnapshot" => {
"snapshot_id" => "String",
},
"v2.UpdateReplayHeatmapSnapshot" => {
"snapshot_id" => "String",
"body" => "SnapshotUpdateRequest",
},
"v2.DeleteRestrictionPolicy" => {
"resource_id" => "String",
},
Expand Down Expand Up @@ -3190,6 +3206,73 @@
"metric_id" => "String",
"body" => "RumMetricUpdateRequest",
},
"v2.ListRumReplayPlaylists" => {
"filter_created_by_uuid" => "String",
"filter_query" => "String",
"page_number" => "Integer",
"page_size" => "Integer",
},
"v2.CreateRumReplayPlaylist" => {
"body" => "Playlist",
},
"v2.DeleteRumReplayPlaylist" => {
"playlist_id" => "Integer",
},
"v2.GetRumReplayPlaylist" => {
"playlist_id" => "Integer",
},
"v2.UpdateRumReplayPlaylist" => {
"playlist_id" => "Integer",
"body" => "Playlist",
},
"v2.BulkRemoveRumReplayPlaylistSessions" => {
"playlist_id" => "Integer",
"body" => "SessionIdArray",
},
"v2.ListRumReplayPlaylistSessions" => {
"playlist_id" => "Integer",
"page_number" => "Integer",
"page_size" => "Integer",
},
"v2.RemoveRumReplaySessionFromPlaylist" => {
"playlist_id" => "Integer",
"session_id" => "String",
},
"v2.AddRumReplaySessionToPlaylist" => {
"data_source" => "String",
"ts" => "Integer",
"playlist_id" => "Integer",
"session_id" => "String",
},
"v2.GetSegments" => {
"view_id" => "String",
"source" => "String",
"session_id" => "String",
"ts" => "Integer",
"max_list_size" => "Integer",
"paging" => "String",
},
"v2.ListRumReplaySessionWatchers" => {
"page_size" => "Integer",
"page_number" => "Integer",
"session_id" => "String",
},
"v2.DeleteRumReplaySessionWatch" => {
"session_id" => "String",
},
"v2.CreateRumReplaySessionWatch" => {
"session_id" => "String",
"body" => "Watch",
},
"v2.ListRumReplayViewershipHistorySessions" => {
"filter_watched_at_start" => "Integer",
"page_number" => "Integer",
"filter_created_by" => "String",
"filter_watched_at_end" => "Integer",
"filter_session_ids" => "String",
"page_size" => "Integer",
"filter_application_id" => "String",
},
"v2.ListScorecardOutcomes" => {
"page_size" => "Integer",
"page_offset" => "Integer",
Expand Down
38 changes: 38 additions & 0 deletions features/v2/rum_replay_heatmaps.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@endpoint(rum-replay-heatmaps) @endpoint(rum-replay-heatmaps-v2)
Feature: Rum Replay Heatmaps
Manage heatmap snapshots for RUM replay sessions. Create, update, delete,
and retrieve snapshots to visualize user interactions on specific views.

Background:
Given a valid "apiKeyAuth" key in the system
And a valid "appKeyAuth" key in the system
And an instance of "RumReplayHeatmaps" API

@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
Scenario: Create replay heatmap snapshot returns "Created" response
Given new "CreateReplayHeatmapSnapshot" request
And body with value {"data": {"attributes": {"application_id": "aaaaaaaa-1111-2222-3333-bbbbbbbbbbbb", "device_type": "desktop", "event_id": "11111111-2222-3333-4444-555555555555", "is_device_type_selected_by_user": false, "snapshot_name": "My Snapshot", "start": 0, "view_name": "/home"}, "type": "snapshots"}}
When the request is sent
Then the response status is 201 Created

@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
Scenario: Delete replay heatmap snapshot returns "No Content" response
Given new "DeleteReplayHeatmapSnapshot" request
And request contains "snapshot_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 204 No Content

@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
Scenario: List replay heatmap snapshots returns "OK" response
Given new "ListReplayHeatmapSnapshots" request
And request contains "filter[view_name]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
Scenario: Update replay heatmap snapshot returns "OK" response
Given new "UpdateReplayHeatmapSnapshot" request
And request contains "snapshot_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"event_id": "11111111-2222-3333-4444-555555555555", "is_device_type_selected_by_user": false, "start": 0}, "id": "00000000-0000-0000-0000-000000000001", "type": "snapshots"}}
When the request is sent
Then the response status is 200 OK
Loading
Loading