You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/v2/rum.feature
+30-2Lines changed: 30 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,19 @@ Feature: RUM
43
43
And the response "data.attributes.type" is equal to "ios"
44
44
And the response "data.attributes.name" is equal to "test-rum-{{ unique_hash }}"
45
45
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
+
46
59
@skip-validation@team:DataDog/rum-backend
47
60
Scenario: Delete a RUM application returns "No Content" response
48
61
Given there is a valid "rum_application" in the system
@@ -136,15 +149,15 @@ Feature: RUM
136
149
Scenario: Update a RUM application returns "Bad Request" response
137
150
Given new "UpdateRUMApplication" request
138
151
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"}}
140
153
When the request is sent
141
154
Then the response status is 400 Bad Request
142
155
143
156
@generated@skip@team:DataDog/rum-backend
144
157
Scenario: Update a RUM application returns "Not Found" response
145
158
Given new "UpdateRUMApplication" request
146
159
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"}}
148
161
When the request is sent
149
162
Then the response status is 404 Not Found
150
163
@@ -169,3 +182,18 @@ Feature: RUM
169
182
And body with value {"data": {"id": "this_id_will_not_match", "type": "rum_application_update"}}
170
183
When the request is sent
171
184
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"
Copy file name to clipboardExpand all lines: lib/datadog_api_client/v2/models/rum_application_attributes.rb
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,9 @@ class RUMApplicationAttributes
45
45
# Org ID of the RUM application.
46
46
attr_reader:org_id
47
47
48
+
# Product Scales configuration for the RUM application.
49
+
attr_accessor:product_scales
50
+
48
51
# Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`.
# Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`.
28
34
attr_accessor:type
29
35
@@ -34,6 +40,8 @@ class RUMApplicationCreateAttributes
0 commit comments