Skip to content

Commit 13ab264

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6865fd7 of spec repo
1 parent 5d5b414 commit 13ab264

14 files changed

+367
-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:47:25.993"
2+
"spec_repo_commit": "6865fd7",
3+
"generated": "2025-08-18 17:00:49.998"
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:

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"

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+
* Controls the retention policy for Product Analytics data derived from RUM events.
16+
*/
17+
"productAnalyticsRetentionState"?: RUMProductAnalyticsRetentionState;
18+
/**
19+
* Configures which RUM events are processed and stored for the application.
20+
*/
21+
"rumEventProcessingState"?: RUMEventProcessingState;
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+
productAnalyticsRetentionState: {
47+
baseName: "product_analytics_retention_state",
48+
type: "RUMProductAnalyticsRetentionState",
49+
},
50+
rumEventProcessingState: {
51+
baseName: "rum_event_processing_state",
52+
type: "RUMEventProcessingState",
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+
* Controls the retention policy for Product Analytics data derived from RUM events.
16+
*/
17+
"productAnalyticsRetentionState"?: RUMProductAnalyticsRetentionState;
18+
/**
19+
* Configures which RUM events are processed and stored for the application.
20+
*/
21+
"rumEventProcessingState"?: RUMEventProcessingState;
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+
productAnalyticsRetentionState: {
46+
baseName: "product_analytics_retention_state",
47+
type: "RUMProductAnalyticsRetentionState",
48+
},
49+
rumEventProcessingState: {
50+
baseName: "rum_event_processing_state",
51+
type: "RUMEventProcessingState",
52+
},
3453
type: {
3554
baseName: "type",
3655
type: "string",

0 commit comments

Comments
 (0)