- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Manage your Real User Monitoring (RUM) applications, and search or aggregate your RUM events over HTTP. See the RUM & Session Replay page for more information
POST https://api.ap1.datadoghq.com/api/v2/rum/events/searchhttps://api.datadoghq.eu/api/v2/rum/events/searchhttps://api.ddog-gov.com/api/v2/rum/events/searchhttps://api.datadoghq.com/api/v2/rum/events/searchhttps://api.us3.datadoghq.com/api/v2/rum/events/searchhttps://api.us5.datadoghq.com/api/v2/rum/events/search
List endpoint returns RUM events that match a RUM search query. Results are paginated.
Use this endpoint to build complex RUM events filtering and search.
항목
유형
설명
filter
object
The search and filter query settings.
from
string
The minimum time for the requested events; supports date (in ISO 8601 format with full date, hours, minutes, and the Z
UTC indicator - seconds and fractional seconds are optional), math, and regular timestamps (in milliseconds).
default: now-15m
query
string
The search query following the RUM search syntax.
default: *
to
string
The maximum time for the requested events; supports date (in ISO 8601 format with full date, hours, minutes, and the Z
UTC indicator - seconds and fractional seconds are optional), math, and regular timestamps (in milliseconds).
default: now
options
object
Global query options that are used during the query. Note: Only supply timezone or time offset, not both. Otherwise, the query fails.
time_offset
int64
The time offset (in seconds) to apply to the query.
timezone
string
The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York).
default: UTC
page
object
Paging attributes for listing events.
cursor
string
List following results with a cursor provided in the previous query.
limit
int32
Maximum number of events in the response.
default: 10
sort
enum
Sort parameters when querying events.
Allowed enum values: timestamp,-timestamp
{
"filter": {
"from": "now-15m",
"query": "@type:session AND @session.type:user",
"to": "now"
},
"options": {
"time_offset": 0,
"timezone": "GMT"
},
"page": {
"limit": 25
},
"sort": "timestamp"
}
{
"filter": {
"from": "now-15m",
"query": "@type:session AND @session.type:user",
"to": "now"
},
"options": {
"time_offset": 0,
"timezone": "GMT"
},
"page": {
"limit": 2
},
"sort": "timestamp"
}
OK
Response object with all events matching the request and pagination information.
항목
유형
설명
data
[object]
Array of events matching the request.
attributes
object
JSON object containing all event attributes and their associated values.
attributes
object
JSON object of attributes from RUM events.
service
string
The name of the application or service generating RUM events. It is used to switch from RUM to APM, so make sure you define the same value when you use both products.
tags
[string]
Array of tags associated with your event.
timestamp
date-time
Timestamp of your event.
id
string
Unique ID of the event.
type
enum
Type of the event.
Allowed enum values: rum
default: rum
links
object
Links attributes.
next
string
Link for the next set of results. Note that the request can also be made using the POST endpoint.
meta
object
The metadata associated with a request.
elapsed
int64
The time elapsed in milliseconds.
page
object
Paging attributes.
after
string
The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of page[cursor]
.
request_id
string
The identifier of the request.
status
enum
The status of the response.
Allowed enum values: done,timeout
warnings
[object]
A list of warnings (non-fatal errors) encountered. Partial results may return if warnings are present in the response.
code
string
A unique code for this type of warning.
detail
string
A detailed explanation of this specific warning.
title
string
A short human-readable summary of the warning.
{
"data": [
{
"attributes": {
"attributes": {
"customAttribute": 123,
"duration": 2345
},
"service": "web-app",
"tags": [
"team:A"
],
"timestamp": "2019-01-02T09:42:36.320Z"
},
"id": "AAAAAWgN8Xwgr1vKDQAAAABBV2dOOFh3ZzZobm1mWXJFYTR0OA",
"type": "rum"
}
],
"links": {
"next": "https://app.datadoghq.com/api/v2/rum/event?filter[query]=foo\u0026page[cursor]=eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ=="
},
"meta": {
"elapsed": 132,
"page": {
"after": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ=="
},
"request_id": "MWlFUjVaWGZTTTZPYzM0VXp1OXU2d3xLSVpEMjZKQ0VKUTI0dEYtM3RSOFVR",
"status": "done",
"warnings": [
{
"code": "unknown_index",
"detail": "indexes: foo, bar",
"title": "One or several indexes are missing or invalid, results hold data from the other indexes"
}
]
}
}
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Not Authorized
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
// Search RUM events returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_rum::RUMAPI;
use datadog_api_client::datadogV2::model::RUMQueryFilter;
use datadog_api_client::datadogV2::model::RUMQueryOptions;
use datadog_api_client::datadogV2::model::RUMQueryPageOptions;
use datadog_api_client::datadogV2::model::RUMSearchEventsRequest;
use datadog_api_client::datadogV2::model::RUMSort;
#[tokio::main]
async fn main() {
let body = RUMSearchEventsRequest::new()
.filter(
RUMQueryFilter::new()
.from("now-15m".to_string())
.query("@type:session AND @session.type:user".to_string())
.to("now".to_string()),
)
.options(
RUMQueryOptions::new()
.time_offset(0)
.timezone("GMT".to_string()),
)
.page(RUMQueryPageOptions::new().limit(25))
.sort(RUMSort::TIMESTAMP_ASCENDING);
let configuration = datadog::Configuration::new();
let api = RUMAPI::with_config(configuration);
let resp = api.search_rum_events(body).await;
if let Ok(value) = resp {
println!("{:#?}", value);
} else {
println!("{:#?}", resp.unwrap_err());
}
}
// Search RUM events returns "OK" response with pagination
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_rum::RUMAPI;
use datadog_api_client::datadogV2::model::RUMQueryFilter;
use datadog_api_client::datadogV2::model::RUMQueryOptions;
use datadog_api_client::datadogV2::model::RUMQueryPageOptions;
use datadog_api_client::datadogV2::model::RUMSearchEventsRequest;
use datadog_api_client::datadogV2::model::RUMSort;
use futures_util::pin_mut;
use futures_util::stream::StreamExt;
#[tokio::main]
async fn main() {
let body = RUMSearchEventsRequest::new()
.filter(
RUMQueryFilter::new()
.from("now-15m".to_string())
.query("@type:session AND @session.type:user".to_string())
.to("now".to_string()),
)
.options(
RUMQueryOptions::new()
.time_offset(0)
.timezone("GMT".to_string()),
)
.page(RUMQueryPageOptions::new().limit(2))
.sort(RUMSort::TIMESTAMP_ASCENDING);
let configuration = datadog::Configuration::new();
let api = RUMAPI::with_config(configuration);
let response = api.search_rum_events_with_pagination(body);
pin_mut!(response);
while let Some(resp) = response.next().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:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<DD_API_KEY>" DD_APP_KEY="<DD_APP_KEY>" cargo run
GET https://api.ap1.datadoghq.com/api/v2/rum/eventshttps://api.datadoghq.eu/api/v2/rum/eventshttps://api.ddog-gov.com/api/v2/rum/eventshttps://api.datadoghq.com/api/v2/rum/eventshttps://api.us3.datadoghq.com/api/v2/rum/eventshttps://api.us5.datadoghq.com/api/v2/rum/events
List endpoint returns events that match a RUM search query. Results are paginated.
Use this endpoint to see your latest RUM events.
이름
유형
설명
filter[query]
string
Search query following RUM syntax.
filter[from]
string
Minimum timestamp for requested events.
filter[to]
string
Maximum timestamp for requested events.
sort
enum
Order of events in results.
Allowed enum values: timestamp, -timestamp
page[cursor]
string
List following results with a cursor provided in the previous query.
page[limit]
integer
Maximum number of events in the response.
OK
Response object with all events matching the request and pagination information.
항목
유형
설명
data
[object]
Array of events matching the request.
attributes
object
JSON object containing all event attributes and their associated values.
attributes
object
JSON object of attributes from RUM events.
service
string
The name of the application or service generating RUM events. It is used to switch from RUM to APM, so make sure you define the same value when you use both products.
tags
[string]
Array of tags associated with your event.
timestamp
date-time
Timestamp of your event.
id
string
Unique ID of the event.
type
enum
Type of the event.
Allowed enum values: rum
default: rum
links
object
Links attributes.
next
string
Link for the next set of results. Note that the request can also be made using the POST endpoint.
meta
object
The metadata associated with a request.
elapsed
int64
The time elapsed in milliseconds.
page
object
Paging attributes.
after
string
The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of page[cursor]
.
request_id
string
The identifier of the request.
status
enum
The status of the response.
Allowed enum values: done,timeout
warnings
[object]
A list of warnings (non-fatal errors) encountered. Partial results may return if warnings are present in the response.
code
string
A unique code for this type of warning.
detail
string
A detailed explanation of this specific warning.
title
string
A short human-readable summary of the warning.
{
"data": [
{
"attributes": {
"attributes": {
"customAttribute": 123,
"duration": 2345
},
"service": "web-app",
"tags": [
"team:A"
],
"timestamp": "2019-01-02T09:42:36.320Z"
},
"id": "AAAAAWgN8Xwgr1vKDQAAAABBV2dOOFh3ZzZobm1mWXJFYTR0OA",
"type": "rum"
}
],
"links": {
"next": "https://app.datadoghq.com/api/v2/rum/event?filter[query]=foo\u0026page[cursor]=eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ=="
},
"meta": {
"elapsed": 132,
"page": {
"after": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ=="
},
"request_id": "MWlFUjVaWGZTTTZPYzM0VXp1OXU2d3xLSVpEMjZKQ0VKUTI0dEYtM3RSOFVR",
"status": "done",
"warnings": [
{
"code": "unknown_index",
"detail": "indexes: foo, bar",
"title": "One or several indexes are missing or invalid, results hold data from the other indexes"
}
]
}
}
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Not Authorized
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
// Get a list of RUM events returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_rum::ListRUMEventsOptionalParams;
use datadog_api_client::datadogV2::api_rum::RUMAPI;
#[tokio::main]
async fn main() {
let configuration = datadog::Configuration::new();
let api = RUMAPI::with_config(configuration);
let resp = api
.list_rum_events(ListRUMEventsOptionalParams::default())
.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:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<DD_API_KEY>" DD_APP_KEY="<DD_APP_KEY>" cargo run
POST https://api.ap1.datadoghq.com/api/v2/rum/analytics/aggregatehttps://api.datadoghq.eu/api/v2/rum/analytics/aggregatehttps://api.ddog-gov.com/api/v2/rum/analytics/aggregatehttps://api.datadoghq.com/api/v2/rum/analytics/aggregatehttps://api.us3.datadoghq.com/api/v2/rum/analytics/aggregatehttps://api.us5.datadoghq.com/api/v2/rum/analytics/aggregate
The API endpoint to aggregate RUM events into buckets of computed metrics and timeseries.
항목
유형
설명
compute
[object]
The list of metrics or timeseries to compute for the retrieved buckets.
aggregation [required]
enum
An aggregation function.
Allowed enum values: count,cardinality,pc75,pc90,pc95,pc98,pc99,sum,min,max,avg,median
interval
string
The time buckets' size (only used for type=timeseries) Defaults to a resolution of 150 points.
metric
string
The metric to use.
type
enum
The type of compute.
Allowed enum values: timeseries,total
default: total
filter
object
The search and filter query settings.
from
string
The minimum time for the requested events; supports date (in ISO 8601 format with full date, hours, minutes, and the Z
UTC indicator - seconds and fractional seconds are optional), math, and regular timestamps (in milliseconds).
default: now-15m
query
string
The search query following the RUM search syntax.
default: *
to
string
The maximum time for the requested events; supports date (in ISO 8601 format with full date, hours, minutes, and the Z
UTC indicator - seconds and fractional seconds are optional), math, and regular timestamps (in milliseconds).
default: now
group_by
[object]
The rules for the group by.
facet [required]
string
The name of the facet to use (required).
histogram
object
Used to perform a histogram computation (only for measure facets). Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
interval [required]
double
The bin size of the histogram buckets.
max [required]
double
The maximum value for the measure used in the histogram (values greater than this one are filtered out).
min [required]
double
The minimum value for the measure used in the histogram (values smaller than this one are filtered out).
limit
int64
The maximum buckets to return for this group-by.
default: 10
missing
<oneOf>
The value to use for logs that don't have the facet used to group by.
Option 1
string
The missing value to use if there is string valued facet.
Option 2
double
The missing value to use if there is a number valued facet.
sort
object
A sort rule.
aggregation
enum
An aggregation function.
Allowed enum values: count,cardinality,pc75,pc90,pc95,pc98,pc99,sum,min,max,avg,median
metric
string
The metric to sort by (only used for type=measure
).
order
enum
The order to use, ascending or descending.
Allowed enum values: asc,desc
type
enum
The type of sorting algorithm.
Allowed enum values: alphabetical,measure
default: alphabetical
total
<oneOf>
A resulting object to put the given computes in over all the matching records.
Option 1
boolean
If set to true, creates an additional bucket labeled "$facet_total".
Option 2
string
A string to use as the key value for the total bucket.
Option 3
double
A number to use as the key value for the total bucket.
options
object
Global query options that are used during the query. Note: Only supply timezone or time offset, not both. Otherwise, the query fails.
time_offset
int64
The time offset (in seconds) to apply to the query.
timezone
string
The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York).
default: UTC
page
object
Paging attributes for listing events.
cursor
string
List following results with a cursor provided in the previous query.
limit
int32
Maximum number of events in the response.
default: 10
{
"compute": [
{
"aggregation": "pc90",
"metric": "@view.time_spent",
"type": "total"
}
],
"filter": {
"from": "now-15m",
"query": "@type:view AND @session.type:user",
"to": "now"
},
"group_by": [
{
"facet": "@view.time_spent",
"limit": 10,
"total": false
}
],
"options": {
"timezone": "GMT"
},
"page": {
"limit": 25
}
}
OK
The response object for the RUM events aggregate API endpoint.
항목
유형
설명
data
object
The query results.
buckets
[object]
The list of matching buckets, one item per bucket.
by
object
The key-value pairs for each group-by.
<any-key>
string
The values for each group-by.
computes
object
A map of the metric name to value for regular compute, or a list of values for a timeseries.
<any-key>
<oneOf>
A bucket value, can be either a timeseries or a single value.
Option 1
string
A single string value.
Option 2
double
A single number value.
Option 3
[object]
A timeseries array.
time
date-time
The time value for this point.
value
double
The value for this point.
links
object
Links attributes.
next
string
Link for the next set of results. Note that the request can also be made using the POST endpoint.
meta
object
The metadata associated with a request.
elapsed
int64
The time elapsed in milliseconds.
page
object
Paging attributes.
after
string
The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of page[cursor]
.
request_id
string
The identifier of the request.
status
enum
The status of the response.
Allowed enum values: done,timeout
warnings
[object]
A list of warnings (non-fatal errors) encountered. Partial results may return if warnings are present in the response.
code
string
A unique code for this type of warning.
detail
string
A detailed explanation of this specific warning.
title
string
A short human-readable summary of the warning.
{
"data": {
"buckets": [
{
"by": {
"<any-key>": "string"
},
"computes": {
"<any-key>": {
"description": "undefined",
"type": "undefined"
}
}
}
]
},
"links": {
"next": "https://app.datadoghq.com/api/v2/rum/event?filter[query]=foo\u0026page[cursor]=eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ=="
},
"meta": {
"elapsed": 132,
"page": {
"after": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ=="
},
"request_id": "MWlFUjVaWGZTTTZPYzM0VXp1OXU2d3xLSVpEMjZKQ0VKUTI0dEYtM3RSOFVR",
"status": "done",
"warnings": [
{
"code": "unknown_index",
"detail": "indexes: foo, bar",
"title": "One or several indexes are missing or invalid, results hold data from the other indexes"
}
]
}
}
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Not Authorized
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
// Aggregate RUM events returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_rum::RUMAPI;
use datadog_api_client::datadogV2::model::RUMAggregateRequest;
use datadog_api_client::datadogV2::model::RUMAggregationFunction;
use datadog_api_client::datadogV2::model::RUMCompute;
use datadog_api_client::datadogV2::model::RUMComputeType;
use datadog_api_client::datadogV2::model::RUMGroupBy;
use datadog_api_client::datadogV2::model::RUMGroupByTotal;
use datadog_api_client::datadogV2::model::RUMQueryFilter;
use datadog_api_client::datadogV2::model::RUMQueryOptions;
use datadog_api_client::datadogV2::model::RUMQueryPageOptions;
#[tokio::main]
async fn main() {
let body = RUMAggregateRequest::new()
.compute(vec![RUMCompute::new(RUMAggregationFunction::PERCENTILE_90)
.metric("@view.time_spent".to_string())
.type_(RUMComputeType::TOTAL)])
.filter(
RUMQueryFilter::new()
.from("now-15m".to_string())
.query("@type:view AND @session.type:user".to_string())
.to("now".to_string()),
)
.group_by(vec![RUMGroupBy::new("@view.time_spent".to_string())
.limit(10)
.total(RUMGroupByTotal::RUMGroupByTotalBoolean(false))])
.options(RUMQueryOptions::new().timezone("GMT".to_string()))
.page(RUMQueryPageOptions::new().limit(25));
let configuration = datadog::Configuration::new();
let api = RUMAPI::with_config(configuration);
let resp = api.aggregate_rum_events(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:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<DD_API_KEY>" DD_APP_KEY="<DD_APP_KEY>" cargo run
PATCH https://api.ap1.datadoghq.com/api/v2/rum/applications/{id}https://api.datadoghq.eu/api/v2/rum/applications/{id}https://api.ddog-gov.com/api/v2/rum/applications/{id}https://api.datadoghq.com/api/v2/rum/applications/{id}https://api.us3.datadoghq.com/api/v2/rum/applications/{id}https://api.us5.datadoghq.com/api/v2/rum/applications/{id}
Update the RUM application with given ID in your organization.
This endpoint requires the rum_apps_write
permission.
이름
유형
설명
id [required]
string
RUM application ID.
항목
유형
설명
data [required]
object
RUM application update.
attributes
object
RUM application update attributes.
name
string
Name of the RUM application.
type
string
Type of the RUM application. Supported values are browser
, ios
, android
, react-native
, flutter
, roku
, electron
, unity
, kotlin-multiplatform
.
id [required]
string
RUM application ID.
type [required]
enum
RUM application update type.
Allowed enum values: rum_application_update
default: rum_application_update
{
"data": {
"attributes": {
"name": "updated_name_for_my_existing_rum_application",
"type": "browser"
},
"id": "abcd1234-0000-0000-abcd-1234abcd5678",
"type": "rum_application_update"
}
}
OK
RUM application response.
항목
유형
설명
data
object
RUM application.
attributes [required]
object
RUM application attributes.
application_id [required]
string
ID of the RUM application.
client_token [required]
string
Client token of the RUM application.
created_at [required]
int64
Timestamp in ms of the creation date.
created_by_handle [required]
string
Handle of the creator user.
hash
string
Hash of the RUM application. Optional.
is_active
boolean
Indicates if the RUM application is active.
name [required]
string
Name of the RUM application.
org_id [required]
int32
Org ID of the RUM application.
type [required]
string
Type of the RUM application. Supported values are browser
, ios
, android
, react-native
, flutter
, roku
, electron
, unity
, kotlin-multiplatform
.
updated_at [required]
int64
Timestamp in ms of the last update date.
updated_by_handle [required]
string
Handle of the updater user.
id [required]
string
RUM application ID.
type [required]
enum
RUM application response type.
Allowed enum values: rum_application
default: rum_application
{
"data": {
"attributes": {
"application_id": "abcd1234-0000-0000-abcd-1234abcd5678",
"client_token": "abcd1234efgh5678ijkl90abcd1234efgh0",
"created_at": 1659479836169,
"created_by_handle": "john.doe",
"hash": "string",
"is_active": true,
"name": "my_rum_application",
"org_id": 999,
"type": "browser",
"updated_at": 1659479836169,
"updated_by_handle": "jane.doe"
},
"id": "abcd1234-0000-0000-abcd-1234abcd5678",
"type": "rum_application"
}
}
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Unprocessable Entity.
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
// Update a RUM application returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_rum::RUMAPI;
use datadog_api_client::datadogV2::model::RUMApplicationUpdate;
use datadog_api_client::datadogV2::model::RUMApplicationUpdateAttributes;
use datadog_api_client::datadogV2::model::RUMApplicationUpdateRequest;
use datadog_api_client::datadogV2::model::RUMApplicationUpdateType;
#[tokio::main]
async fn main() {
// there is a valid "rum_application" in the system
let rum_application_data_id = std::env::var("RUM_APPLICATION_DATA_ID").unwrap();
let body = RUMApplicationUpdateRequest::new(
RUMApplicationUpdate::new(
rum_application_data_id.clone(),
RUMApplicationUpdateType::RUM_APPLICATION_UPDATE,
)
.attributes(
RUMApplicationUpdateAttributes::new()
.name("updated_name_for_my_existing_rum_application".to_string())
.type_("browser".to_string()),
),
);
let configuration = datadog::Configuration::new();
let api = RUMAPI::with_config(configuration);
let resp = api
.update_rum_application(rum_application_data_id.clone(), 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:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo run
GET https://api.ap1.datadoghq.com/api/v2/rum/applications/{id}https://api.datadoghq.eu/api/v2/rum/applications/{id}https://api.ddog-gov.com/api/v2/rum/applications/{id}https://api.datadoghq.com/api/v2/rum/applications/{id}https://api.us3.datadoghq.com/api/v2/rum/applications/{id}https://api.us5.datadoghq.com/api/v2/rum/applications/{id}
Get the RUM application with given ID in your organization.
This endpoint requires the rum_apps_read
permission.
이름
유형
설명
id [required]
string
RUM application ID.
OK
RUM application response.
항목
유형
설명
data
object
RUM application.
attributes [required]
object
RUM application attributes.
application_id [required]
string
ID of the RUM application.
client_token [required]
string
Client token of the RUM application.
created_at [required]
int64
Timestamp in ms of the creation date.
created_by_handle [required]
string
Handle of the creator user.
hash
string
Hash of the RUM application. Optional.
is_active
boolean
Indicates if the RUM application is active.
name [required]
string
Name of the RUM application.
org_id [required]
int32
Org ID of the RUM application.
type [required]
string
Type of the RUM application. Supported values are browser
, ios
, android
, react-native
, flutter
, roku
, electron
, unity
, kotlin-multiplatform
.
updated_at [required]
int64
Timestamp in ms of the last update date.
updated_by_handle [required]
string
Handle of the updater user.
id [required]
string
RUM application ID.
type [required]
enum
RUM application response type.
Allowed enum values: rum_application
default: rum_application
{
"data": {
"attributes": {
"application_id": "abcd1234-0000-0000-abcd-1234abcd5678",
"client_token": "abcd1234efgh5678ijkl90abcd1234efgh0",
"created_at": 1659479836169,
"created_by_handle": "john.doe",
"hash": "string",
"is_active": true,
"name": "my_rum_application",
"org_id": 999,
"type": "browser",
"updated_at": 1659479836169,
"updated_by_handle": "jane.doe"
},
"id": "abcd1234-0000-0000-abcd-1234abcd5678",
"type": "rum_application"
}
}
Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
// Get a RUM application returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_rum::RUMAPI;
#[tokio::main]
async fn main() {
// there is a valid "rum_application" in the system
let rum_application_data_id = std::env::var("RUM_APPLICATION_DATA_ID").unwrap();
let configuration = datadog::Configuration::new();
let api = RUMAPI::with_config(configuration);
let resp = api
.get_rum_application(rum_application_data_id.clone())
.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:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo run
DELETE https://api.ap1.datadoghq.com/api/v2/rum/applications/{id}https://api.datadoghq.eu/api/v2/rum/applications/{id}https://api.ddog-gov.com/api/v2/rum/applications/{id}https://api.datadoghq.com/api/v2/rum/applications/{id}https://api.us3.datadoghq.com/api/v2/rum/applications/{id}https://api.us5.datadoghq.com/api/v2/rum/applications/{id}
Delete an existing RUM application in your organization.
This endpoint requires the rum_apps_write
permission.
이름
유형
설명
id [required]
string
RUM application ID.
No Content
Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
// Delete a RUM application returns "No Content" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_rum::RUMAPI;
#[tokio::main]
async fn main() {
// there is a valid "rum_application" in the system
let rum_application_data_id = std::env::var("RUM_APPLICATION_DATA_ID").unwrap();
let configuration = datadog::Configuration::new();
let api = RUMAPI::with_config(configuration);
let resp = api
.delete_rum_application(rum_application_data_id.clone())
.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:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo run
POST https://api.ap1.datadoghq.com/api/v2/rum/applicationshttps://api.datadoghq.eu/api/v2/rum/applicationshttps://api.ddog-gov.com/api/v2/rum/applicationshttps://api.datadoghq.com/api/v2/rum/applicationshttps://api.us3.datadoghq.com/api/v2/rum/applicationshttps://api.us5.datadoghq.com/api/v2/rum/applications
Create a new RUM application in your organization.
This endpoint requires the rum_apps_write
permission.
항목
유형
설명
data [required]
object
RUM application creation.
attributes [required]
object
RUM application creation attributes.
name [required]
string
Name of the RUM application.
type
string
Type of the RUM application. Supported values are browser
, ios
, android
, react-native
, flutter
, roku
, electron
, unity
, kotlin-multiplatform
.
type [required]
enum
RUM application creation type.
Allowed enum values: rum_application_create
default: rum_application_create
{
"data": {
"attributes": {
"name": "test-rum-5c67ebb32077e1d9",
"type": "ios"
},
"type": "rum_application_create"
}
}
OK
RUM application response.
항목
유형
설명
data
object
RUM application.
attributes [required]
object
RUM application attributes.
application_id [required]
string
ID of the RUM application.
client_token [required]
string
Client token of the RUM application.
created_at [required]
int64
Timestamp in ms of the creation date.
created_by_handle [required]
string
Handle of the creator user.
hash
string
Hash of the RUM application. Optional.
is_active
boolean
Indicates if the RUM application is active.
name [required]
string
Name of the RUM application.
org_id [required]
int32
Org ID of the RUM application.
type [required]
string
Type of the RUM application. Supported values are browser
, ios
, android
, react-native
, flutter
, roku
, electron
, unity
, kotlin-multiplatform
.
updated_at [required]
int64
Timestamp in ms of the last update date.
updated_by_handle [required]
string
Handle of the updater user.
id [required]
string
RUM application ID.
type [required]
enum
RUM application response type.
Allowed enum values: rum_application
default: rum_application
{
"data": {
"attributes": {
"application_id": "abcd1234-0000-0000-abcd-1234abcd5678",
"client_token": "abcd1234efgh5678ijkl90abcd1234efgh0",
"created_at": 1659479836169,
"created_by_handle": "john.doe",
"hash": "string",
"is_active": true,
"name": "my_rum_application",
"org_id": 999,
"type": "browser",
"updated_at": 1659479836169,
"updated_by_handle": "jane.doe"
},
"id": "abcd1234-0000-0000-abcd-1234abcd5678",
"type": "rum_application"
}
}
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
// Create a new RUM application returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_rum::RUMAPI;
use datadog_api_client::datadogV2::model::RUMApplicationCreate;
use datadog_api_client::datadogV2::model::RUMApplicationCreateAttributes;
use datadog_api_client::datadogV2::model::RUMApplicationCreateRequest;
use datadog_api_client::datadogV2::model::RUMApplicationCreateType;
#[tokio::main]
async fn main() {
let body = RUMApplicationCreateRequest::new(RUMApplicationCreate::new(
RUMApplicationCreateAttributes::new("test-rum-5c67ebb32077e1d9".to_string())
.type_("ios".to_string()),
RUMApplicationCreateType::RUM_APPLICATION_CREATE,
));
let configuration = datadog::Configuration::new();
let api = RUMAPI::with_config(configuration);
let resp = api.create_rum_application(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:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo run
GET https://api.ap1.datadoghq.com/api/v2/rum/applicationshttps://api.datadoghq.eu/api/v2/rum/applicationshttps://api.ddog-gov.com/api/v2/rum/applicationshttps://api.datadoghq.com/api/v2/rum/applicationshttps://api.us3.datadoghq.com/api/v2/rum/applicationshttps://api.us5.datadoghq.com/api/v2/rum/applications
List all the RUM applications in your organization.
This endpoint requires the rum_apps_read
permission.
OK
RUM applications response.
항목
유형
설명
data
[object]
RUM applications array response.
attributes [required]
object
RUM application list attributes.
application_id [required]
string
ID of the RUM application.
created_at [required]
int64
Timestamp in ms of the creation date.
created_by_handle [required]
string
Handle of the creator user.
hash
string
Hash of the RUM application. Optional.
is_active
boolean
Indicates if the RUM application is active.
name [required]
string
Name of the RUM application.
org_id [required]
int32
Org ID of the RUM application.
type [required]
string
Type of the RUM application. Supported values are browser
, ios
, android
, react-native
, flutter
, roku
, electron
, unity
, kotlin-multiplatform
.
updated_at [required]
int64
Timestamp in ms of the last update date.
updated_by_handle [required]
string
Handle of the updater user.
id
string
RUM application ID.
type [required]
enum
RUM application list type.
Allowed enum values: rum_application
default: rum_application
{
"data": [
{
"attributes": {
"application_id": "abcd1234-0000-0000-abcd-1234abcd5678",
"created_at": 1659479836169,
"created_by_handle": "john.doe",
"hash": "string",
"is_active": true,
"name": "my_rum_application",
"org_id": 999,
"type": "browser",
"updated_at": 1659479836169,
"updated_by_handle": "jane.doe"
},
"id": "abcd1234-0000-0000-abcd-1234abcd5678",
"type": "rum_application"
}
]
}
Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
// List all the RUM applications returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_rum::RUMAPI;
#[tokio::main]
async fn main() {
let configuration = datadog::Configuration::new();
let api = RUMAPI::with_config(configuration);
let resp = api.get_rum_applications().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:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo run