Skip to content

Commit 3274ad9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6865fd7 of spec repo
1 parent a7b2134 commit 3274ad9

16 files changed

+464
-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": "7851858",
3-
"generated": "2025-08-18 14:48:45.228"
2+
"spec_repo_commit": "6865fd7",
3+
"generated": "2025-08-18 17:02:19.570"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32160,6 +32160,8 @@ components:
3216032160
format: int32
3216132161
maximum: 2147483647
3216232162
type: integer
32163+
product_scales:
32164+
$ref: '#/components/schemas/RUMProductScales'
3216332165
type:
3216432166
description: Type of the RUM application. Supported values are `browser`,
3216532167
`ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`,
@@ -32204,6 +32206,10 @@ components:
3220432206
description: Name of the RUM application.
3220532207
example: my_new_rum_application
3220632208
type: string
32209+
product_analytics_retention_state:
32210+
$ref: '#/components/schemas/RUMProductAnalyticsRetentionState'
32211+
rum_event_processing_state:
32212+
$ref: '#/components/schemas/RUMEventProcessingState'
3220732213
type:
3220832214
description: Type of the RUM application. Supported values are `browser`,
3220932215
`ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`,
@@ -32278,6 +32284,8 @@ components:
3227832284
format: int32
3227932285
maximum: 2147483647
3228032286
type: integer
32287+
product_scales:
32288+
$ref: '#/components/schemas/RUMProductScales'
3228132289
type:
3228232290
description: Type of the RUM application. Supported values are `browser`,
3228332291
`ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`,
@@ -32349,6 +32357,10 @@ components:
3234932357
description: Name of the RUM application.
3235032358
example: updated_name_for_my_existing_rum_application
3235132359
type: string
32360+
product_analytics_retention_state:
32361+
$ref: '#/components/schemas/RUMProductAnalyticsRetentionState'
32362+
rum_event_processing_state:
32363+
$ref: '#/components/schemas/RUMEventProcessingState'
3235232364
type:
3235332365
description: Type of the RUM application. Supported values are `browser`,
3235432366
`ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`,
@@ -32477,6 +32489,33 @@ components:
3247732489
format: date-time
3247832490
type: string
3247932491
type: object
32492+
RUMEventProcessingScale:
32493+
description: RUM event processing scale configuration.
32494+
properties:
32495+
last_modified_at:
32496+
description: Timestamp in milliseconds when this scale was last modified.
32497+
example: 1721897494108
32498+
format: int64
32499+
type: integer
32500+
state:
32501+
$ref: '#/components/schemas/RUMEventProcessingState'
32502+
type: object
32503+
RUMEventProcessingState:
32504+
description: Configures which RUM events are processed and stored for the application.
32505+
enum:
32506+
- ALL
32507+
- ERROR_FOCUSED_MODE
32508+
- NONE
32509+
example: ALL
32510+
type: string
32511+
x-enum-descriptions:
32512+
- Process and store all RUM events (sessions, views, actions, resources, errors)
32513+
- Process and store only error events and related critical events
32514+
- "Disable RUM event processing\u2014no events are stored"
32515+
x-enum-varnames:
32516+
- ALL
32517+
- ERROR_FOCUSED_MODE
32518+
- NONE
3248032519
RUMEventType:
3248132520
default: rum
3248232521
description: Type of the event.
@@ -32583,6 +32622,39 @@ components:
3258332622
RUMGroupByTotalString:
3258432623
description: A string to use as the key value for the total bucket.
3258532624
type: string
32625+
RUMProductAnalyticsRetentionScale:
32626+
description: Product Analytics retention scale configuration.
32627+
properties:
32628+
last_modified_at:
32629+
description: Timestamp in milliseconds when this scale was last modified.
32630+
example: 1747922145974
32631+
format: int64
32632+
type: integer
32633+
state:
32634+
$ref: '#/components/schemas/RUMProductAnalyticsRetentionState'
32635+
type: object
32636+
RUMProductAnalyticsRetentionState:
32637+
description: Controls the retention policy for Product Analytics data derived
32638+
from RUM events.
32639+
enum:
32640+
- MAX
32641+
- NONE
32642+
example: MAX
32643+
type: string
32644+
x-enum-descriptions:
32645+
- Store Product Analytics data for the maximum available retention period
32646+
- Do not store Product Analytics data
32647+
x-enum-varnames:
32648+
- MAX
32649+
- NONE
32650+
RUMProductScales:
32651+
description: Product Scales configuration for the RUM application.
32652+
properties:
32653+
product_analytics_retention_scale:
32654+
$ref: '#/components/schemas/RUMProductAnalyticsRetentionScale'
32655+
rum_event_processing_scale:
32656+
$ref: '#/components/schemas/RUMEventProcessingScale'
32657+
type: object
3258632658
RUMQueryFilter:
3258732659
description: The search and filter query settings.
3258832660
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+
productAnalyticsRetentionState: "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+
productAnalyticsRetentionState: "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: 33 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", "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
@@ -75,6 +88,7 @@ Feature: RUM
7588
And the response "data.type" is equal to "rum_application"
7689
And the response "data.attributes.type" is equal to "ios"
7790
And the response "data.attributes.name" is equal to "test-rum-{{ unique_hash }}"
91+
And the response "data.attributes" has field "product_scales"
7892

7993
@generated @skip @team:DataDog/rum-backend
8094
Scenario: Get a list of RUM events returns "Bad Request" response
@@ -109,6 +123,8 @@ Feature: RUM
109123
When the request is sent
110124
Then the response status is 200 OK
111125
And the response "data" has item with field "attributes.application_id" with value "{{ rum_application.data.id }}"
126+
And the response "data" has item with field "attributes.product_scales.rum_event_processing_scale.state" with value "ALL"
127+
And the response "data" has item with field "attributes.product_scales.product_analytics_retention_scale.state" with value "NONE"
112128

113129
@generated @skip @team:DataDog/rum-backend
114130
Scenario: Search RUM events returns "Bad Request" response
@@ -136,15 +152,15 @@ Feature: RUM
136152
Scenario: Update a RUM application returns "Bad Request" response
137153
Given new "UpdateRUMApplication" request
138154
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"}}
155+
And body with value {"data": {"attributes": {"name": "updated_name_for_my_existing_rum_application", "product_analytics_retention_state": "MAX", "rum_event_processing_state": "ALL", "type": "browser"}, "id": "abcd1234-0000-0000-abcd-1234abcd5678", "type": "rum_application_update"}}
140156
When the request is sent
141157
Then the response status is 400 Bad Request
142158

143159
@generated @skip @team:DataDog/rum-backend
144160
Scenario: Update a RUM application returns "Not Found" response
145161
Given new "UpdateRUMApplication" request
146162
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"}}
163+
And body with value {"data": {"attributes": {"name": "updated_name_for_my_existing_rum_application", "product_analytics_retention_state": "MAX", "rum_event_processing_state": "ALL", "type": "browser"}, "id": "abcd1234-0000-0000-abcd-1234abcd5678", "type": "rum_application_update"}}
148164
When the request is sent
149165
Then the response status is 404 Not Found
150166

@@ -169,3 +185,18 @@ Feature: RUM
169185
And body with value {"data": {"id": "this_id_will_not_match", "type": "rum_application_update"}}
170186
When the request is sent
171187
Then the response status is 422 Unprocessable Entity.
188+
189+
@skip-validation @team:DataDog/rum-backend
190+
Scenario: Update a RUM application with Product Scales returns "OK" response
191+
Given there is a valid "rum_application" in the system
192+
And new "UpdateRUMApplication" request
193+
And request contains "id" parameter from "rum_application.data.id"
194+
And body with value {"data": {"attributes": {"name": "updated_rum_with_product_scales", "rum_event_processing_state": "ALL", "product_analytics_retention_state": "MAX"}, "id": "{{ rum_application.data.id }}", "type": "rum_application_update"}}
195+
When the request is sent
196+
Then the response status is 200 OK
197+
And the response "data.type" is equal to "rum_application"
198+
And the response "data.attributes.name" is equal to "updated_rum_with_product_scales"
199+
And the response "data.attributes.product_scales.rum_event_processing_scale.state" is equal to "ALL"
200+
And the response "data.attributes.product_scales.product_analytics_retention_scale.state" is equal to "MAX"
201+
And the response "data.attributes.product_scales.rum_event_processing_scale" has field "last_modified_at"
202+
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
@@ -2928,6 +2928,8 @@ export { RUMCompute } from "./models/RUMCompute";
29282928
export { RUMComputeType } from "./models/RUMComputeType";
29292929
export { RUMEvent } from "./models/RUMEvent";
29302930
export { RUMEventAttributes } from "./models/RUMEventAttributes";
2931+
export { RUMEventProcessingScale } from "./models/RUMEventProcessingScale";
2932+
export { RUMEventProcessingState } from "./models/RUMEventProcessingState";
29312933
export { RUMEventsResponse } from "./models/RUMEventsResponse";
29322934
export { RUMEventType } from "./models/RUMEventType";
29332935
export { RUMGroupBy } from "./models/RUMGroupBy";
@@ -2957,6 +2959,9 @@ export { RumMetricUpdateAttributes } from "./models/RumMetricUpdateAttributes";
29572959
export { RumMetricUpdateCompute } from "./models/RumMetricUpdateCompute";
29582960
export { RumMetricUpdateData } from "./models/RumMetricUpdateData";
29592961
export { RumMetricUpdateRequest } from "./models/RumMetricUpdateRequest";
2962+
export { RUMProductAnalyticsRetentionScale } from "./models/RUMProductAnalyticsRetentionScale";
2963+
export { RUMProductAnalyticsRetentionState } from "./models/RUMProductAnalyticsRetentionState";
2964+
export { RUMProductScales } from "./models/RUMProductScales";
29602965
export { RUMQueryFilter } from "./models/RUMQueryFilter";
29612966
export { RUMQueryOptions } from "./models/RUMQueryOptions";
29622967
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";
@@ -3037,7 +3040,9 @@ const enumsMap: { [key: string]: any[] } = {
30373040
RUMApplicationType: ["rum_application"],
30383041
RUMApplicationUpdateType: ["rum_application_update"],
30393042
RUMComputeType: ["timeseries", "total"],
3043+
RUMEventProcessingState: ["ALL", "ERROR_FOCUSED_MODE", "NONE"],
30403044
RUMEventType: ["rum"],
3045+
RUMProductAnalyticsRetentionState: ["MAX", "NONE"],
30413046
RUMResponseStatus: ["done", "timeout"],
30423047
RUMSort: ["timestamp", "-timestamp"],
30433048
RUMSortOrder: ["asc", "desc"],
@@ -5251,9 +5256,12 @@ const typeMap: { [index: string]: any } = {
52515256
RUMCompute: RUMCompute,
52525257
RUMEvent: RUMEvent,
52535258
RUMEventAttributes: RUMEventAttributes,
5259+
RUMEventProcessingScale: RUMEventProcessingScale,
52545260
RUMEventsResponse: RUMEventsResponse,
52555261
RUMGroupBy: RUMGroupBy,
52565262
RUMGroupByHistogram: RUMGroupByHistogram,
5263+
RUMProductAnalyticsRetentionScale: RUMProductAnalyticsRetentionScale,
5264+
RUMProductScales: RUMProductScales,
52575265
RUMQueryFilter: RUMQueryFilter,
52585266
RUMQueryOptions: RUMQueryOptions,
52595267
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+
* Controls the retention policy for Product Analytics data derived from RUM events.
21+
*/
22+
"productAnalyticsRetentionState"?: RUMProductAnalyticsRetentionState;
23+
/**
24+
* Configures which RUM events are processed and stored for the application.
25+
*/
26+
"rumEventProcessingState"?: RUMEventProcessingState;
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+
productAnalyticsRetentionState: {
54+
baseName: "product_analytics_retention_state",
55+
type: "RUMProductAnalyticsRetentionState",
56+
},
57+
rumEventProcessingState: {
58+
baseName: "rum_event_processing_state",
59+
type: "RUMEventProcessingState",
60+
},
4361
type: {
4462
baseName: "type",
4563
type: "string",

0 commit comments

Comments
 (0)