Skip to content

Commit e8af017

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0e9a488 of spec repo
1 parent 3e94288 commit e8af017

16 files changed

+461
-4
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "8001cbb",
3-
"generated": "2025-08-13 20:28:25.331"
2+
"spec_repo_commit": "0e9a488",
3+
"generated": "2025-08-15 17:30:44.376"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32161,6 +32161,8 @@ components:
3216132161
format: int32
3216232162
maximum: 2147483647
3216332163
type: integer
32164+
product_scales:
32165+
$ref: '#/components/schemas/RUMProductScales'
3216432166
type:
3216532167
description: Type of the RUM application. Supported values are `browser`,
3216632168
`ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`,
@@ -32205,6 +32207,10 @@ components:
3220532207
description: Name of the RUM application.
3220632208
example: my_new_rum_application
3220732209
type: string
32210+
rum_event_processing_state:
32211+
$ref: '#/components/schemas/RUMEventProcessingState'
32212+
rum_product_analytics_retention_state:
32213+
$ref: '#/components/schemas/RUMProductAnalyticsRetentionState'
3220832214
type:
3220932215
description: Type of the RUM application. Supported values are `browser`,
3221032216
`ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`,
@@ -32279,6 +32285,8 @@ components:
3227932285
format: int32
3228032286
maximum: 2147483647
3228132287
type: integer
32288+
product_scales:
32289+
$ref: '#/components/schemas/RUMProductScales'
3228232290
type:
3228332291
description: Type of the RUM application. Supported values are `browser`,
3228432292
`ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`,
@@ -32350,6 +32358,10 @@ components:
3235032358
description: Name of the RUM application.
3235132359
example: updated_name_for_my_existing_rum_application
3235232360
type: string
32361+
rum_event_processing_state:
32362+
$ref: '#/components/schemas/RUMEventProcessingState'
32363+
rum_product_analytics_retention_state:
32364+
$ref: '#/components/schemas/RUMProductAnalyticsRetentionState'
3235332365
type:
3235432366
description: Type of the RUM application. Supported values are `browser`,
3235532367
`ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`,
@@ -32478,6 +32490,33 @@ components:
3247832490
format: date-time
3247932491
type: string
3248032492
type: object
32493+
RUMEventProcessingScale:
32494+
description: RUM event processing scale configuration.
32495+
properties:
32496+
last_modified_at:
32497+
description: Timestamp in milliseconds when this scale was last modified.
32498+
example: 1721897494108
32499+
format: int64
32500+
type: integer
32501+
state:
32502+
$ref: '#/components/schemas/RUMEventProcessingState'
32503+
type: object
32504+
RUMEventProcessingState:
32505+
description: Configures which RUM events are processed and stored for the application.
32506+
enum:
32507+
- ALL
32508+
- ERROR_FOCUSED_MODE
32509+
- NONE
32510+
example: ALL
32511+
type: string
32512+
x-enum-descriptions:
32513+
- Process and store all RUM events (sessions, views, actions, resources, errors)
32514+
- Process and store only error events and related critical events
32515+
- Disable RUM event processing - no events will be stored
32516+
x-enum-varnames:
32517+
- ALL
32518+
- ERROR_FOCUSED_MODE
32519+
- NONE
3248132520
RUMEventType:
3248232521
default: rum
3248332522
description: Type of the event.
@@ -32584,6 +32623,39 @@ components:
3258432623
RUMGroupByTotalString:
3258532624
description: A string to use as the key value for the total bucket.
3258632625
type: string
32626+
RUMProductAnalyticsRetentionScale:
32627+
description: Product analytics retention scale configuration.
32628+
properties:
32629+
last_modified_at:
32630+
description: Timestamp in milliseconds when this scale was last modified.
32631+
example: 1747922145974
32632+
format: int64
32633+
type: integer
32634+
state:
32635+
$ref: '#/components/schemas/RUMProductAnalyticsRetentionState'
32636+
type: object
32637+
RUMProductAnalyticsRetentionState:
32638+
description: Controls the retention policy for product analytics data derived
32639+
from RUM events.
32640+
enum:
32641+
- MAX
32642+
- NONE
32643+
example: MAX
32644+
type: string
32645+
x-enum-descriptions:
32646+
- Store product analytics data for the maximum available retention period
32647+
- Do not store product analytics data
32648+
x-enum-varnames:
32649+
- MAX
32650+
- NONE
32651+
RUMProductScales:
32652+
description: Product Scales configuration for the RUM application.
32653+
properties:
32654+
product_analytics_retention_scale:
32655+
$ref: '#/components/schemas/RUMProductAnalyticsRetentionScale'
32656+
rum_event_processing_scale:
32657+
$ref: '#/components/schemas/RUMEventProcessingScale'
32658+
type: object
3258732659
RUMQueryFilter:
3258832660
description: The search and filter query settings.
3258932661
properties:
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* Create a new RUM application with Product Scales returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.RUMApi(configuration);
9+
10+
const params: v2.RUMApiCreateRUMApplicationRequest = {
11+
body: {
12+
data: {
13+
attributes: {
14+
name: "test-rum-with-product-scales-5c67ebb32077e1d9",
15+
type: "browser",
16+
rumEventProcessingState: "ERROR_FOCUSED_MODE",
17+
rumProductAnalyticsRetentionState: "NONE",
18+
},
19+
type: "rum_application_create",
20+
},
21+
},
22+
};
23+
24+
apiInstance
25+
.createRUMApplication(params)
26+
.then((data: v2.RUMApplicationResponse) => {
27+
console.log(
28+
"API called successfully. Returned data: " + JSON.stringify(data)
29+
);
30+
})
31+
.catch((error: any) => console.error(error));
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* Update a RUM application with Product Scales returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.RUMApi(configuration);
9+
10+
// there is a valid "rum_application" in the system
11+
const RUM_APPLICATION_DATA_ID = process.env.RUM_APPLICATION_DATA_ID as string;
12+
13+
const params: v2.RUMApiUpdateRUMApplicationRequest = {
14+
body: {
15+
data: {
16+
attributes: {
17+
name: "updated_rum_with_product_scales",
18+
rumEventProcessingState: "ALL",
19+
rumProductAnalyticsRetentionState: "MAX",
20+
},
21+
id: RUM_APPLICATION_DATA_ID,
22+
type: "rum_application_update",
23+
},
24+
},
25+
id: RUM_APPLICATION_DATA_ID,
26+
};
27+
28+
apiInstance
29+
.updateRUMApplication(params)
30+
.then((data: v2.RUMApplicationResponse) => {
31+
console.log(
32+
"API called successfully. Returned data: " + JSON.stringify(data)
33+
);
34+
})
35+
.catch((error: any) => console.error(error));

features/v2/rum.feature

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,19 @@ Feature: RUM
4343
And the response "data.attributes.type" is equal to "ios"
4444
And the response "data.attributes.name" is equal to "test-rum-{{ unique_hash }}"
4545

46+
@skip-validation @team:DataDog/rum-backend
47+
Scenario: Create a new RUM application with Product Scales returns "OK" response
48+
Given new "CreateRUMApplication" request
49+
And body with value {"data": {"attributes": {"name": "test-rum-with-product-scales-{{ unique_hash }}", "type": "browser", "rum_event_processing_state": "ERROR_FOCUSED_MODE", "rum_product_analytics_retention_state": "NONE"}, "type": "rum_application_create"}}
50+
When the request is sent
51+
Then the response status is 200 OK
52+
And the response "data.type" is equal to "rum_application"
53+
And the response "data.attributes.name" is equal to "test-rum-with-product-scales-{{ unique_hash }}"
54+
And the response "data.attributes.product_scales.rum_event_processing_scale.state" is equal to "ERROR_FOCUSED_MODE"
55+
And the response "data.attributes.product_scales.product_analytics_retention_scale.state" is equal to "NONE"
56+
And the response "data.attributes.product_scales.rum_event_processing_scale" has field "last_modified_at"
57+
And the response "data.attributes.product_scales.product_analytics_retention_scale" has field "last_modified_at"
58+
4659
@skip-validation @team:DataDog/rum-backend
4760
Scenario: Delete a RUM application returns "No Content" response
4861
Given there is a valid "rum_application" in the system
@@ -136,15 +149,15 @@ Feature: RUM
136149
Scenario: Update a RUM application returns "Bad Request" response
137150
Given new "UpdateRUMApplication" request
138151
And request contains "id" parameter from "REPLACE.ME"
139-
And body with value {"data": {"attributes": {"name": "updated_name_for_my_existing_rum_application", "type": "browser"}, "id": "abcd1234-0000-0000-abcd-1234abcd5678", "type": "rum_application_update"}}
152+
And body with value {"data": {"attributes": {"name": "updated_name_for_my_existing_rum_application", "rum_event_processing_state": "ALL", "rum_product_analytics_retention_state": "MAX", "type": "browser"}, "id": "abcd1234-0000-0000-abcd-1234abcd5678", "type": "rum_application_update"}}
140153
When the request is sent
141154
Then the response status is 400 Bad Request
142155

143156
@generated @skip @team:DataDog/rum-backend
144157
Scenario: Update a RUM application returns "Not Found" response
145158
Given new "UpdateRUMApplication" request
146159
And request contains "id" parameter from "REPLACE.ME"
147-
And body with value {"data": {"attributes": {"name": "updated_name_for_my_existing_rum_application", "type": "browser"}, "id": "abcd1234-0000-0000-abcd-1234abcd5678", "type": "rum_application_update"}}
160+
And body with value {"data": {"attributes": {"name": "updated_name_for_my_existing_rum_application", "rum_event_processing_state": "ALL", "rum_product_analytics_retention_state": "MAX", "type": "browser"}, "id": "abcd1234-0000-0000-abcd-1234abcd5678", "type": "rum_application_update"}}
148161
When the request is sent
149162
Then the response status is 404 Not Found
150163

@@ -169,3 +182,18 @@ Feature: RUM
169182
And body with value {"data": {"id": "this_id_will_not_match", "type": "rum_application_update"}}
170183
When the request is sent
171184
Then the response status is 422 Unprocessable Entity.
185+
186+
@skip-validation @team:DataDog/rum-backend
187+
Scenario: Update a RUM application with Product Scales returns "OK" response
188+
Given there is a valid "rum_application" in the system
189+
And new "UpdateRUMApplication" request
190+
And request contains "id" parameter from "rum_application.data.id"
191+
And body with value {"data": {"attributes": {"name": "updated_rum_with_product_scales", "rum_event_processing_state": "ALL", "rum_product_analytics_retention_state": "MAX"}, "id": "{{ rum_application.data.id }}", "type": "rum_application_update"}}
192+
When the request is sent
193+
Then the response status is 200 OK
194+
And the response "data.type" is equal to "rum_application"
195+
And the response "data.attributes.name" is equal to "updated_rum_with_product_scales"
196+
And the response "data.attributes.product_scales.rum_event_processing_scale.state" is equal to "ALL"
197+
And the response "data.attributes.product_scales.product_analytics_retention_scale.state" is equal to "MAX"
198+
And the response "data.attributes.product_scales.rum_event_processing_scale" has field "last_modified_at"
199+
And the response "data.attributes.product_scales.product_analytics_retention_scale" has field "last_modified_at"

packages/datadog-api-client-v2/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2925,6 +2925,8 @@ export { RUMCompute } from "./models/RUMCompute";
29252925
export { RUMComputeType } from "./models/RUMComputeType";
29262926
export { RUMEvent } from "./models/RUMEvent";
29272927
export { RUMEventAttributes } from "./models/RUMEventAttributes";
2928+
export { RUMEventProcessingScale } from "./models/RUMEventProcessingScale";
2929+
export { RUMEventProcessingState } from "./models/RUMEventProcessingState";
29282930
export { RUMEventsResponse } from "./models/RUMEventsResponse";
29292931
export { RUMEventType } from "./models/RUMEventType";
29302932
export { RUMGroupBy } from "./models/RUMGroupBy";
@@ -2954,6 +2956,9 @@ export { RumMetricUpdateAttributes } from "./models/RumMetricUpdateAttributes";
29542956
export { RumMetricUpdateCompute } from "./models/RumMetricUpdateCompute";
29552957
export { RumMetricUpdateData } from "./models/RumMetricUpdateData";
29562958
export { RumMetricUpdateRequest } from "./models/RumMetricUpdateRequest";
2959+
export { RUMProductAnalyticsRetentionScale } from "./models/RUMProductAnalyticsRetentionScale";
2960+
export { RUMProductAnalyticsRetentionState } from "./models/RUMProductAnalyticsRetentionState";
2961+
export { RUMProductScales } from "./models/RUMProductScales";
29572962
export { RUMQueryFilter } from "./models/RUMQueryFilter";
29582963
export { RUMQueryOptions } from "./models/RUMQueryOptions";
29592964
export { RUMQueryPageOptions } from "./models/RUMQueryPageOptions";

packages/datadog-api-client-v2/models/ObjectSerializer.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,9 +1478,12 @@ import { RUMBucketResponse } from "./RUMBucketResponse";
14781478
import { RUMCompute } from "./RUMCompute";
14791479
import { RUMEvent } from "./RUMEvent";
14801480
import { RUMEventAttributes } from "./RUMEventAttributes";
1481+
import { RUMEventProcessingScale } from "./RUMEventProcessingScale";
14811482
import { RUMEventsResponse } from "./RUMEventsResponse";
14821483
import { RUMGroupBy } from "./RUMGroupBy";
14831484
import { RUMGroupByHistogram } from "./RUMGroupByHistogram";
1485+
import { RUMProductAnalyticsRetentionScale } from "./RUMProductAnalyticsRetentionScale";
1486+
import { RUMProductScales } from "./RUMProductScales";
14841487
import { RUMQueryFilter } from "./RUMQueryFilter";
14851488
import { RUMQueryOptions } from "./RUMQueryOptions";
14861489
import { RUMQueryPageOptions } from "./RUMQueryPageOptions";
@@ -3033,7 +3036,9 @@ const enumsMap: { [key: string]: any[] } = {
30333036
RUMApplicationType: ["rum_application"],
30343037
RUMApplicationUpdateType: ["rum_application_update"],
30353038
RUMComputeType: ["timeseries", "total"],
3039+
RUMEventProcessingState: ["ALL", "ERROR_FOCUSED_MODE", "NONE"],
30363040
RUMEventType: ["rum"],
3041+
RUMProductAnalyticsRetentionState: ["MAX", "NONE"],
30373042
RUMResponseStatus: ["done", "timeout"],
30383043
RUMSort: ["timestamp", "-timestamp"],
30393044
RUMSortOrder: ["asc", "desc"],
@@ -5244,9 +5249,12 @@ const typeMap: { [index: string]: any } = {
52445249
RUMCompute: RUMCompute,
52455250
RUMEvent: RUMEvent,
52465251
RUMEventAttributes: RUMEventAttributes,
5252+
RUMEventProcessingScale: RUMEventProcessingScale,
52475253
RUMEventsResponse: RUMEventsResponse,
52485254
RUMGroupBy: RUMGroupBy,
52495255
RUMGroupByHistogram: RUMGroupByHistogram,
5256+
RUMProductAnalyticsRetentionScale: RUMProductAnalyticsRetentionScale,
5257+
RUMProductScales: RUMProductScales,
52505258
RUMQueryFilter: RUMQueryFilter,
52515259
RUMQueryOptions: RUMQueryOptions,
52525260
RUMQueryPageOptions: RUMQueryPageOptions,

packages/datadog-api-client-v2/models/RUMApplicationAttributes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6+
import { RUMProductScales } from "./RUMProductScales";
67

78
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
89

@@ -42,6 +43,10 @@ export class RUMApplicationAttributes {
4243
* Org ID of the RUM application.
4344
*/
4445
"orgId": number;
46+
/**
47+
* Product Scales configuration for the RUM application.
48+
*/
49+
"productScales"?: RUMProductScales;
4550
/**
4651
* Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`.
4752
*/
@@ -111,6 +116,10 @@ export class RUMApplicationAttributes {
111116
required: true,
112117
format: "int32",
113118
},
119+
productScales: {
120+
baseName: "product_scales",
121+
type: "RUMProductScales",
122+
},
114123
type: {
115124
baseName: "type",
116125
type: "string",

packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6+
import { RUMEventProcessingState } from "./RUMEventProcessingState";
7+
import { RUMProductAnalyticsRetentionState } from "./RUMProductAnalyticsRetentionState";
68

79
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
810

@@ -14,6 +16,14 @@ export class RUMApplicationCreateAttributes {
1416
* Name of the RUM application.
1517
*/
1618
"name": string;
19+
/**
20+
* Configures which RUM events are processed and stored for the application.
21+
*/
22+
"rumEventProcessingState"?: RUMEventProcessingState;
23+
/**
24+
* Controls the retention policy for product analytics data derived from RUM events.
25+
*/
26+
"rumProductAnalyticsRetentionState"?: RUMProductAnalyticsRetentionState;
1727
/**
1828
* Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`.
1929
*/
@@ -40,6 +50,14 @@ export class RUMApplicationCreateAttributes {
4050
type: "string",
4151
required: true,
4252
},
53+
rumEventProcessingState: {
54+
baseName: "rum_event_processing_state",
55+
type: "RUMEventProcessingState",
56+
},
57+
rumProductAnalyticsRetentionState: {
58+
baseName: "rum_product_analytics_retention_state",
59+
type: "RUMProductAnalyticsRetentionState",
60+
},
4361
type: {
4462
baseName: "type",
4563
type: "string",

packages/datadog-api-client-v2/models/RUMApplicationListAttributes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6+
import { RUMProductScales } from "./RUMProductScales";
67

78
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
89

@@ -38,6 +39,10 @@ export class RUMApplicationListAttributes {
3839
* Org ID of the RUM application.
3940
*/
4041
"orgId": number;
42+
/**
43+
* Product Scales configuration for the RUM application.
44+
*/
45+
"productScales"?: RUMProductScales;
4146
/**
4247
* Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`.
4348
*/
@@ -102,6 +107,10 @@ export class RUMApplicationListAttributes {
102107
required: true,
103108
format: "int32",
104109
},
110+
productScales: {
111+
baseName: "product_scales",
112+
type: "RUMProductScales",
113+
},
105114
type: {
106115
baseName: "type",
107116
type: "string",

0 commit comments

Comments
 (0)