모니터링 & 보안을 위한 통합 플랫폼
옵저버빌리티
스택의 상태와 성능을 한눈에 볼 수 있는 엔드투엔드 가시성
인프라
애플리케이션
데이터
로그
보안
Outpace AI-powered attacks with unified security and observability
Code Security
Cloud Security
Threat Management
Security Labs
Digital Experience
프런트엔드 성능을 최적화하고 사용자 경험을 향상
관련 제품
Software Delivery
고품질 코드를 빠르게 빌드, 테스트, 보안 강화
Service Management
간소화된 통합 워크플로로 빠른 문제 해결
작업
에이전틱 & 임베디드
AI
모델 성능 모니터링 & 개선 근본 원인을 정확히 파악 & 이상 징후 탐지
AI Observability
플랫폼 기능
Datadog 플랫폼을 완성하는 핵심 기능 & 통합
기본 기능
워크플로 & 협업
확장성
산업
기술
사용 사례
Looking for Datadog logos?
You can find the logo assets on our press page.
Language
Datadog Site
POST https://api.ap1.datadoghq.com/api/v2/replay/heatmap/snapshotshttps://api.ap2.datadoghq.com/api/v2/replay/heatmap/snapshotshttps://api.datadoghq.eu/api/v2/replay/heatmap/snapshotshttps://api.ddog-gov.com/api/v2/replay/heatmap/snapshotshttps://api.us2.ddog-gov.com/api/v2/replay/heatmap/snapshotshttps://api.uk1.datadoghq.com/api/v2/replay/heatmap/snapshotshttps://api.datadoghq.com/api/v2/replay/heatmap/snapshotshttps://api.us3.datadoghq.com/api/v2/replay/heatmap/snapshotshttps://api.us5.datadoghq.com/api/v2/replay/heatmap/snapshots
Create a heatmap snapshot.
Expand All
항목
유형
설명
data [required]
object
Data object for a heatmap snapshot creation request, containing the resource type and attributes.
attributes
Attributes for creating a heatmap snapshot, including the view, session, event, and device context.
application_id [required]
string
Unique identifier of the RUM application.
device_type [required]
Device type used when capturing the snapshot (e.g., desktop, mobile, tablet).
event_id [required]
Unique identifier of the RUM event associated with the snapshot.
is_device_type_selected_by_user [required]
boolean
Indicates whether the device type was explicitly selected by the user rather than auto-detected.
session_id
Unique identifier of the RUM session associated with the snapshot.
snapshot_name [required]
Human-readable name for the snapshot.
start [required]
int64
Offset in milliseconds from the start of the session at which the snapshot was captured.
view_id
Unique identifier of the RUM view associated with the snapshot.
view_name [required]
URL path or name of the view where the snapshot was captured.
type [required]
enum
Snapshots resource type. Allowed enum values: snapshots
snapshots
default: snapshots
{ "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, "session_id": "string", "snapshot_name": "My Snapshot", "start": 0, "view_id": "string", "view_name": "/home" }, "type": "snapshots" } }
Created
A single heatmap snapshot resource returned by create or update operations.
data
Data object representing a heatmap snapshot, including its identifier, type, and attributes.
Attributes of a heatmap snapshot, including view context, device information, and audit metadata.
application_id
created_at
date-time
Timestamp when the snapshot was created.
created_by
Display name of the user who created the snapshot.
created_by_handle
Email handle of the user who created the snapshot.
created_by_user_id
Numeric identifier of the user who created the snapshot.
device_type
event_id
is_device_type_selected_by_user
modified_at
Timestamp when the snapshot was last modified.
org_id
Numeric identifier of the organization that owns the snapshot.
snapshot_name
start
view_name
id
Unique identifier of the heatmap snapshot.
{ "data": { "attributes": { "application_id": "string", "created_at": "2019-09-19T10:00:00.000Z", "created_by": "string", "created_by_handle": "string", "created_by_user_id": "integer", "device_type": "string", "event_id": "string", "is_device_type_selected_by_user": false, "modified_at": "2019-09-19T10:00:00.000Z", "org_id": "integer", "session_id": "string", "snapshot_name": "string", "start": "integer", "view_id": "string", "view_name": "string" }, "id": "string", "type": "snapshots" } }
Too many requests
API error response.
errors [required]
[string]
A list of errors.
{ "errors": [ "Bad Request" ] }
## default # # Curl commandcurl -X POST "https://api.ap1.datadoghq.com"https://api.ap2.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.us2.ddog-gov.com"https://api.uk1.datadoghq.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/replay/heatmap/snapshots" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "DD-API-KEY: ${DD_API_KEY}" \ -H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \ -d @- << EOF { "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" } } EOF
""" Create replay heatmap snapshot returns "Created" response """ from datadog_api_client import ApiClient, Configuration from datadog_api_client.v2.api.rum_replay_heatmaps_api import RumReplayHeatmapsApi from datadog_api_client.v2.model.snapshot_create_request import SnapshotCreateRequest from datadog_api_client.v2.model.snapshot_create_request_data import SnapshotCreateRequestData from datadog_api_client.v2.model.snapshot_create_request_data_attributes import SnapshotCreateRequestDataAttributes from datadog_api_client.v2.model.snapshot_update_request_data_type import SnapshotUpdateRequestDataType body = SnapshotCreateRequest( data=SnapshotCreateRequestData( attributes=SnapshotCreateRequestDataAttributes( 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=SnapshotUpdateRequestDataType.SNAPSHOTS, ), ) configuration = Configuration() with ApiClient(configuration) as api_client: api_instance = RumReplayHeatmapsApi(api_client) response = api_instance.create_replay_heatmap_snapshot(body=body) print(response)
First install the library and its dependencies and then save the example to example.py and run following commands:
example.py
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com" DD_API_KEY="<DD_API_KEY>" DD_APP_KEY="<DD_APP_KEY>" python3 "example.py"
# 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)
First install the library and its dependencies and then save the example to example.rb and run following commands:
example.rb
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com" DD_API_KEY="<DD_API_KEY>" DD_APP_KEY="<DD_APP_KEY>" rb "example.rb"
// Create replay heatmap snapshot returns "Created" response package main import ( "context" "encoding/json" "fmt" "os" "github.com/DataDog/datadog-api-client-go/v2/api/datadog" "github.com/DataDog/datadog-api-client-go/v2/api/datadogV2" ) func main() { body := datadogV2.SnapshotCreateRequest{ Data: datadogV2.SnapshotCreateRequestData{ Attributes: &datadogV2.SnapshotCreateRequestDataAttributes{ ApplicationId: "aaaaaaaa-1111-2222-3333-bbbbbbbbbbbb", DeviceType: "desktop", EventId: "11111111-2222-3333-4444-555555555555", IsDeviceTypeSelectedByUser: false, SnapshotName: "My Snapshot", Start: 0, ViewName: "/home", }, Type: datadogV2.SNAPSHOTUPDATEREQUESTDATATYPE_SNAPSHOTS, }, } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewRumReplayHeatmapsApi(apiClient) resp, r, err := api.CreateReplayHeatmapSnapshot(ctx, body) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RumReplayHeatmapsApi.CreateReplayHeatmapSnapshot`: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } responseContent, _ := json.MarshalIndent(resp, "", " ") fmt.Fprintf(os.Stdout, "Response from `RumReplayHeatmapsApi.CreateReplayHeatmapSnapshot`:\n%s\n", responseContent) }
First install the library and its dependencies and then save the example to main.go and run following commands:
main.go
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com" DD_API_KEY="<DD_API_KEY>" DD_APP_KEY="<DD_APP_KEY>" go run "main.go"
// Create replay heatmap snapshot returns "Created" response import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.RumReplayHeatmapsApi; import com.datadog.api.client.v2.model.Snapshot; import com.datadog.api.client.v2.model.SnapshotCreateRequest; import com.datadog.api.client.v2.model.SnapshotCreateRequestData; import com.datadog.api.client.v2.model.SnapshotCreateRequestDataAttributes; import com.datadog.api.client.v2.model.SnapshotUpdateRequestDataType; public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); RumReplayHeatmapsApi apiInstance = new RumReplayHeatmapsApi(defaultClient); SnapshotCreateRequest body = new SnapshotCreateRequest() .data( new SnapshotCreateRequestData() .attributes( new SnapshotCreateRequestDataAttributes() .applicationId("aaaaaaaa-1111-2222-3333-bbbbbbbbbbbb") .deviceType("desktop") .eventId("11111111-2222-3333-4444-555555555555") .isDeviceTypeSelectedByUser(false) .snapshotName("My Snapshot") .start(0L) .viewName("/home")) .type(SnapshotUpdateRequestDataType.SNAPSHOTS)); try { Snapshot result = apiInstance.createReplayHeatmapSnapshot(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RumReplayHeatmapsApi#createReplayHeatmapSnapshot"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } }
First install the library and its dependencies and then save the example to Example.java and run following commands:
Example.java
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com" DD_API_KEY="<DD_API_KEY>" DD_APP_KEY="<DD_APP_KEY>" java "Example.java"
// Create replay heatmap snapshot returns "Created" response use datadog_api_client::datadog; use datadog_api_client::datadogV2::api_rum_replay_heatmaps::RumReplayHeatmapsAPI; use datadog_api_client::datadogV2::model::SnapshotCreateRequest; use datadog_api_client::datadogV2::model::SnapshotCreateRequestData; use datadog_api_client::datadogV2::model::SnapshotCreateRequestDataAttributes; use datadog_api_client::datadogV2::model::SnapshotUpdateRequestDataType; #[tokio::main] async fn main() { let body = SnapshotCreateRequest::new( SnapshotCreateRequestData::new(SnapshotUpdateRequestDataType::SNAPSHOTS).attributes( SnapshotCreateRequestDataAttributes::new( "aaaaaaaa-1111-2222-3333-bbbbbbbbbbbb".to_string(), "desktop".to_string(), "11111111-2222-3333-4444-555555555555".to_string(), false, "My Snapshot".to_string(), 0, "/home".to_string(), ), ), ); let configuration = datadog::Configuration::new(); let api = RumReplayHeatmapsAPI::with_config(configuration); let resp = api.create_replay_heatmap_snapshot(body).await; if let Ok(value) = resp { println!("{:#?}", value); } else { println!("{:#?}", resp.unwrap_err()); } }
First install the library and its dependencies and then save the example to src/main.rs and run following commands:
src/main.rs
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com" DD_API_KEY="<DD_API_KEY>" DD_APP_KEY="<DD_APP_KEY>" cargo run
/** * Create replay heatmap snapshot returns "Created" response */ import { client, v2 } from "@datadog/datadog-api-client"; const configuration = client.createConfiguration(); const apiInstance = new v2.RumReplayHeatmapsApi(configuration); const params: v2.RumReplayHeatmapsApiCreateReplayHeatmapSnapshotRequest = { body: { data: { attributes: { applicationId: "aaaaaaaa-1111-2222-3333-bbbbbbbbbbbb", deviceType: "desktop", eventId: "11111111-2222-3333-4444-555555555555", isDeviceTypeSelectedByUser: false, snapshotName: "My Snapshot", start: 0, viewName: "/home", }, type: "snapshots", }, }, }; apiInstance .createReplayHeatmapSnapshot(params) .then((data: v2.Snapshot) => { console.log( "API called successfully. Returned data: " + JSON.stringify(data) ); }) .catch((error: any) => console.error(error));
First install the library and its dependencies and then save the example to example.ts and run following commands:
example.ts
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com" DD_API_KEY="<DD_API_KEY>" DD_APP_KEY="<DD_APP_KEY>" tsc "example.ts"
Ask me anything about Datadog documentation