Skip to content

Commit ef4ed24

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Sync rum-replay endpoints with backend for public documentation (#2969)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent d2a6011 commit ef4ed24

65 files changed

Lines changed: 7625 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generator/schemas/v2/openapi.yaml

Lines changed: 1113 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Create replay heatmap snapshot returns "Created" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::RumReplayHeatmapsAPI.new
5+
6+
body = DatadogAPIClient::V2::SnapshotCreateRequest.new({
7+
data: DatadogAPIClient::V2::SnapshotCreateRequestData.new({
8+
attributes: DatadogAPIClient::V2::SnapshotCreateRequestDataAttributes.new({
9+
application_id: "aaaaaaaa-1111-2222-3333-bbbbbbbbbbbb",
10+
device_type: "desktop",
11+
event_id: "11111111-2222-3333-4444-555555555555",
12+
is_device_type_selected_by_user: false,
13+
snapshot_name: "My Snapshot",
14+
start: 0,
15+
view_name: "/home",
16+
}),
17+
type: DatadogAPIClient::V2::SnapshotUpdateRequestDataType::SNAPSHOTS,
18+
}),
19+
})
20+
p api_instance.create_replay_heatmap_snapshot(body)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Delete replay heatmap snapshot returns "No Content" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::RumReplayHeatmapsAPI.new
5+
api_instance.delete_replay_heatmap_snapshot("00000000-0000-0000-0000-000000000001")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# List replay heatmap snapshots returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::RumReplayHeatmapsAPI.new
5+
p api_instance.list_replay_heatmap_snapshots("/home")
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Update replay heatmap snapshot returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::RumReplayHeatmapsAPI.new
5+
6+
body = DatadogAPIClient::V2::SnapshotUpdateRequest.new({
7+
data: DatadogAPIClient::V2::SnapshotUpdateRequestData.new({
8+
attributes: DatadogAPIClient::V2::SnapshotUpdateRequestDataAttributes.new({
9+
event_id: "11111111-2222-3333-4444-555555555555",
10+
is_device_type_selected_by_user: false,
11+
start: 0,
12+
}),
13+
id: "00000000-0000-0000-0000-000000000001",
14+
type: DatadogAPIClient::V2::SnapshotUpdateRequestDataType::SNAPSHOTS,
15+
}),
16+
})
17+
p api_instance.update_replay_heatmap_snapshot("00000000-0000-0000-0000-000000000001", body)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Add rum replay session to playlist returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new
5+
p api_instance.add_rum_replay_session_to_playlist(1704067200000, 1234567, "00000000-0000-0000-0000-000000000001")
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Bulk remove rum replay playlist sessions returns "No Content" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new
5+
6+
body = DatadogAPIClient::V2::SessionIdArray.new({
7+
data: [
8+
DatadogAPIClient::V2::SessionIdData.new({
9+
id: "00000000-0000-0000-0000-000000000001",
10+
type: DatadogAPIClient::V2::ViewershipHistorySessionDataType::RUM_REPLAY_SESSION,
11+
}),
12+
],
13+
})
14+
api_instance.bulk_remove_rum_replay_playlist_sessions(1234567, body)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Create rum replay playlist returns "Created" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new
5+
6+
body = DatadogAPIClient::V2::Playlist.new({
7+
data: DatadogAPIClient::V2::PlaylistData.new({
8+
attributes: DatadogAPIClient::V2::PlaylistDataAttributes.new({
9+
created_by: DatadogAPIClient::V2::PlaylistDataAttributesCreatedBy.new({
10+
handle: "john.doe@example.com",
11+
id: "00000000-0000-0000-0000-000000000001",
12+
uuid: "00000000-0000-0000-0000-000000000001",
13+
}),
14+
name: "My Playlist",
15+
}),
16+
type: DatadogAPIClient::V2::PlaylistDataType::RUM_REPLAY_PLAYLIST,
17+
}),
18+
})
19+
p api_instance.create_rum_replay_playlist(body)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Delete rum replay playlist returns "No Content" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new
5+
api_instance.delete_rum_replay_playlist(1234567)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get rum replay playlist returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new
5+
p api_instance.get_rum_replay_playlist(1234567)

0 commit comments

Comments
 (0)