Skip to content

Commit ebd1184

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

14 files changed

+364
-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:27:09.207"
2+
"spec_repo_commit": "0e9a488",
3+
"generated": "2025-08-15 17:29:11.637"
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:

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"

services/rum/src/v2/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,17 @@ export { RUMCompute } from "./models/RUMCompute";
3939
export { RUMComputeType } from "./models/RUMComputeType";
4040
export { RUMEvent } from "./models/RUMEvent";
4141
export { RUMEventAttributes } from "./models/RUMEventAttributes";
42+
export { RUMEventProcessingScale } from "./models/RUMEventProcessingScale";
43+
export { RUMEventProcessingState } from "./models/RUMEventProcessingState";
4244
export { RUMEventsResponse } from "./models/RUMEventsResponse";
4345
export { RUMEventType } from "./models/RUMEventType";
4446
export { RUMGroupBy } from "./models/RUMGroupBy";
4547
export { RUMGroupByHistogram } from "./models/RUMGroupByHistogram";
4648
export { RUMGroupByMissing } from "./models/RUMGroupByMissing";
4749
export { RUMGroupByTotal } from "./models/RUMGroupByTotal";
50+
export { RUMProductAnalyticsRetentionScale } from "./models/RUMProductAnalyticsRetentionScale";
51+
export { RUMProductAnalyticsRetentionState } from "./models/RUMProductAnalyticsRetentionState";
52+
export { RUMProductScales } from "./models/RUMProductScales";
4853
export { RUMQueryFilter } from "./models/RUMQueryFilter";
4954
export { RUMQueryOptions } from "./models/RUMQueryOptions";
5055
export { RUMQueryPageOptions } from "./models/RUMQueryPageOptions";

services/rum/src/v2/models/RUMApplicationAttributes.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { AttributeTypeMap } from "@datadog/datadog-api-client";
22

3+
import { RUMProductScales } from "./RUMProductScales";
4+
35
/**
46
* RUM application attributes.
57
*/
@@ -36,6 +38,10 @@ export class RUMApplicationAttributes {
3638
* Org ID of the RUM application.
3739
*/
3840
"orgId": number;
41+
/**
42+
* Product Scales configuration for the RUM application.
43+
*/
44+
"productScales"?: RUMProductScales;
3945
/**
4046
* Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`.
4147
*/
@@ -103,6 +109,10 @@ export class RUMApplicationAttributes {
103109
required: true,
104110
format: "int32",
105111
},
112+
productScales: {
113+
baseName: "product_scales",
114+
type: "RUMProductScales",
115+
},
106116
type: {
107117
baseName: "type",
108118
type: "string",

services/rum/src/v2/models/RUMApplicationCreateAttributes.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { AttributeTypeMap } from "@datadog/datadog-api-client";
22

3+
import { RUMEventProcessingState } from "./RUMEventProcessingState";
4+
import { RUMProductAnalyticsRetentionState } from "./RUMProductAnalyticsRetentionState";
5+
36
/**
47
* RUM application creation attributes.
58
*/
@@ -8,6 +11,14 @@ export class RUMApplicationCreateAttributes {
811
* Name of the RUM application.
912
*/
1013
"name": string;
14+
/**
15+
* Configures which RUM events are processed and stored for the application.
16+
*/
17+
"rumEventProcessingState"?: RUMEventProcessingState;
18+
/**
19+
* Controls the retention policy for product analytics data derived from RUM events.
20+
*/
21+
"rumProductAnalyticsRetentionState"?: RUMProductAnalyticsRetentionState;
1122
/**
1223
* Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`.
1324
*/
@@ -32,6 +43,14 @@ export class RUMApplicationCreateAttributes {
3243
type: "string",
3344
required: true,
3445
},
46+
rumEventProcessingState: {
47+
baseName: "rum_event_processing_state",
48+
type: "RUMEventProcessingState",
49+
},
50+
rumProductAnalyticsRetentionState: {
51+
baseName: "rum_product_analytics_retention_state",
52+
type: "RUMProductAnalyticsRetentionState",
53+
},
3554
type: {
3655
baseName: "type",
3756
type: "string",

services/rum/src/v2/models/RUMApplicationListAttributes.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { AttributeTypeMap } from "@datadog/datadog-api-client";
22

3+
import { RUMProductScales } from "./RUMProductScales";
4+
35
/**
46
* RUM application list attributes.
57
*/
@@ -32,6 +34,10 @@ export class RUMApplicationListAttributes {
3234
* Org ID of the RUM application.
3335
*/
3436
"orgId": number;
37+
/**
38+
* Product Scales configuration for the RUM application.
39+
*/
40+
"productScales"?: RUMProductScales;
3541
/**
3642
* Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`.
3743
*/
@@ -94,6 +100,10 @@ export class RUMApplicationListAttributes {
94100
required: true,
95101
format: "int32",
96102
},
103+
productScales: {
104+
baseName: "product_scales",
105+
type: "RUMProductScales",
106+
},
97107
type: {
98108
baseName: "type",
99109
type: "string",

services/rum/src/v2/models/RUMApplicationUpdateAttributes.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { AttributeTypeMap } from "@datadog/datadog-api-client";
22

3+
import { RUMEventProcessingState } from "./RUMEventProcessingState";
4+
import { RUMProductAnalyticsRetentionState } from "./RUMProductAnalyticsRetentionState";
5+
36
/**
47
* RUM application update attributes.
58
*/
@@ -8,6 +11,14 @@ export class RUMApplicationUpdateAttributes {
811
* Name of the RUM application.
912
*/
1013
"name"?: string;
14+
/**
15+
* Configures which RUM events are processed and stored for the application.
16+
*/
17+
"rumEventProcessingState"?: RUMEventProcessingState;
18+
/**
19+
* Controls the retention policy for product analytics data derived from RUM events.
20+
*/
21+
"rumProductAnalyticsRetentionState"?: RUMProductAnalyticsRetentionState;
1122
/**
1223
* Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`.
1324
*/
@@ -31,6 +42,14 @@ export class RUMApplicationUpdateAttributes {
3142
baseName: "name",
3243
type: "string",
3344
},
45+
rumEventProcessingState: {
46+
baseName: "rum_event_processing_state",
47+
type: "RUMEventProcessingState",
48+
},
49+
rumProductAnalyticsRetentionState: {
50+
baseName: "rum_product_analytics_retention_state",
51+
type: "RUMProductAnalyticsRetentionState",
52+
},
3453
type: {
3554
baseName: "type",
3655
type: "string",
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import { AttributeTypeMap } from "@datadog/datadog-api-client";
2+
3+
import { RUMEventProcessingState } from "./RUMEventProcessingState";
4+
5+
/**
6+
* RUM event processing scale configuration.
7+
*/
8+
export class RUMEventProcessingScale {
9+
/**
10+
* Timestamp in milliseconds when this scale was last modified.
11+
*/
12+
"lastModifiedAt"?: number;
13+
/**
14+
* Configures which RUM events are processed and stored for the application.
15+
*/
16+
"state"?: RUMEventProcessingState;
17+
/**
18+
* A container for additional, undeclared properties.
19+
* This is a holder for any undeclared properties as specified with
20+
* the 'additionalProperties' keyword in the OAS document.
21+
*/
22+
"additionalProperties"?: { [key: string]: any };
23+
/**
24+
* @ignore
25+
*/
26+
"_unparsed"?: boolean;
27+
28+
/**
29+
* @ignore
30+
*/
31+
static readonly attributeTypeMap: AttributeTypeMap = {
32+
lastModifiedAt: {
33+
baseName: "last_modified_at",
34+
type: "number",
35+
format: "int64",
36+
},
37+
state: {
38+
baseName: "state",
39+
type: "RUMEventProcessingState",
40+
},
41+
additionalProperties: {
42+
baseName: "additionalProperties",
43+
type: "{ [key: string]: any; }",
44+
},
45+
};
46+
47+
/**
48+
* @ignore
49+
*/
50+
static getAttributeTypeMap(): AttributeTypeMap {
51+
return RUMEventProcessingScale.attributeTypeMap;
52+
}
53+
54+
public constructor() {}
55+
}

0 commit comments

Comments
 (0)