diff --git a/.generated-info b/.generated-info index 97d1e7124ab2..5e56f75ccf96 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "fde8b90", - "generated": "2025-08-18 20:32:20.186" + "spec_repo_commit": "4413e63", + "generated": "2025-08-19 20:28:35.046" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index cb4c1c4bb0fc..5dc52e4a2ee2 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -32160,6 +32160,8 @@ components: format: int32 maximum: 2147483647 type: integer + product_scales: + $ref: '#/components/schemas/RUMProductScales' type: description: Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, @@ -32204,6 +32206,10 @@ components: description: Name of the RUM application. example: my_new_rum_application type: string + product_analytics_retention_state: + $ref: '#/components/schemas/RUMProductAnalyticsRetentionState' + rum_event_processing_state: + $ref: '#/components/schemas/RUMEventProcessingState' type: description: Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, @@ -32278,6 +32284,8 @@ components: format: int32 maximum: 2147483647 type: integer + product_scales: + $ref: '#/components/schemas/RUMProductScales' type: description: Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, @@ -32349,6 +32357,10 @@ components: description: Name of the RUM application. example: updated_name_for_my_existing_rum_application type: string + product_analytics_retention_state: + $ref: '#/components/schemas/RUMProductAnalyticsRetentionState' + rum_event_processing_state: + $ref: '#/components/schemas/RUMEventProcessingState' type: description: Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, @@ -32477,6 +32489,33 @@ components: format: date-time type: string type: object + RUMEventProcessingScale: + description: RUM event processing scale configuration. + properties: + last_modified_at: + description: Timestamp in milliseconds when this scale was last modified. + example: 1721897494108 + format: int64 + type: integer + state: + $ref: '#/components/schemas/RUMEventProcessingState' + type: object + RUMEventProcessingState: + description: Configures which RUM events are processed and stored for the application. + enum: + - ALL + - ERROR_FOCUSED_MODE + - NONE + example: ALL + type: string + x-enum-descriptions: + - Process and store all RUM events (sessions, views, actions, resources, errors) + - Process and store only error events and related critical events + - "Disable RUM event processing\u2014no events are stored" + x-enum-varnames: + - ALL + - ERROR_FOCUSED_MODE + - NONE RUMEventType: default: rum description: Type of the event. @@ -32583,6 +32622,39 @@ components: RUMGroupByTotalString: description: A string to use as the key value for the total bucket. type: string + RUMProductAnalyticsRetentionScale: + description: Product Analytics retention scale configuration. + properties: + last_modified_at: + description: Timestamp in milliseconds when this scale was last modified. + example: 1747922145974 + format: int64 + type: integer + state: + $ref: '#/components/schemas/RUMProductAnalyticsRetentionState' + type: object + RUMProductAnalyticsRetentionState: + description: Controls the retention policy for Product Analytics data derived + from RUM events. + enum: + - MAX + - NONE + example: MAX + type: string + x-enum-descriptions: + - Store Product Analytics data for the maximum available retention period + - Do not store Product Analytics data + x-enum-varnames: + - MAX + - NONE + RUMProductScales: + description: Product Scales configuration for the RUM application. + properties: + product_analytics_retention_scale: + $ref: '#/components/schemas/RUMProductAnalyticsRetentionScale' + rum_event_processing_scale: + $ref: '#/components/schemas/RUMEventProcessingScale' + type: object RUMQueryFilter: description: The search and filter query settings. properties: diff --git a/cassettes/v2/RUM_2896677143/Create-a-new-RUM-application-returns-OK-response_2247322916/frozen.json b/cassettes/v2/RUM_2896677143/Create-a-new-RUM-application-returns-OK-response_2247322916/frozen.json index cc4bf4929128..5b5b0c336264 100644 --- a/cassettes/v2/RUM_2896677143/Create-a-new-RUM-application-returns-OK-response_2247322916/frozen.json +++ b/cassettes/v2/RUM_2896677143/Create-a-new-RUM-application-returns-OK-response_2247322916/frozen.json @@ -1 +1 @@ -"2024-12-10T15:40:39.991Z" +"2025-08-19T14:20:13.721Z" diff --git a/cassettes/v2/RUM_2896677143/Create-a-new-RUM-application-returns-OK-response_2247322916/recording.har b/cassettes/v2/RUM_2896677143/Create-a-new-RUM-application-returns-OK-response_2247322916/recording.har index 9f522d248f17..ea6d28e0a11c 100644 --- a/cassettes/v2/RUM_2896677143/Create-a-new-RUM-application-returns-OK-response_2247322916/recording.har +++ b/cassettes/v2/RUM_2896677143/Create-a-new-RUM-application-returns-OK-response_2247322916/recording.har @@ -8,7 +8,7 @@ }, "entries": [ { - "_id": "f45a54cf4611777450adc217a52ccbee", + "_id": "e41f31959d1df3403a2fa6f426da52c8", "_order": 0, "cache": {}, "request": { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"name\":\"test-rum-5be7aad200899ffd\",\"type\":\"ios\"},\"type\":\"rum_application_create\"}}" + "text": "{\"data\":{\"attributes\":{\"name\":\"test-rum-33452889744bdeee\",\"type\":\"ios\"},\"type\":\"rum_application_create\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/rum/applications" }, "response": { - "bodySize": 672, + "bodySize": 703, "content": { "mimeType": "application/json", - "size": 672, - "text": "{\"data\":{\"type\":\"rum_application\",\"attributes\":{\"hash\":\"pub53e9a8788cac8b240efc0bfd17073059\",\"type\":\"ios\",\"name\":\"test-rum-5be7aad200899ffd\",\"tags\":[],\"created_at\":1733845240406,\"updated_at\":1733845240406,\"created_by_handle\":\"frog@datadoghq.com\",\"rum_enabled_at\":1733845240406,\"org_id\":321813,\"updated_by_handle\":\"frog@datadoghq.com\",\"product_analytics_disabled_at\":1733845240406,\"rum_enabled\":true,\"application_id\":\"2ce2bdc3-efa2-4182-9bc1-b75b2ff09be4\",\"product_analytics_enabled_at\":1733845240406,\"rum_disabled_at\":0,\"product_analytics_enabled\":false,\"is_active\":false,\"client_token\":\"pub53e9a8788cac8b240efc0bfd17073059\"},\"id\":\"2ce2bdc3-efa2-4182-9bc1-b75b2ff09be4\"}}\n" + "size": 703, + "text": "{\"data\":{\"type\":\"rum_application\",\"attributes\":{\"type\":\"ios\",\"updated_at\":1755613213992,\"created_by_handle\":\"frog@datadoghq.com\",\"name\":\"test-rum-33452889744bdeee\",\"org_id\":321813,\"tags\":[],\"created_at\":1755613213992,\"product_analytics_replay_sample_rate\":100,\"product_scales\":{\"product_analytics_retention_scale\":{\"state\":\"NONE\",\"last_modified_at\":1755613213992},\"rum_event_processing_scale\":{\"state\":\"ALL\",\"last_modified_at\":1755613213992}},\"updated_by_handle\":\"frog@datadoghq.com\",\"application_id\":\"ee0b4d74-7159-4498-bec7-2b4f2b5ba642\",\"client_token\":\"pub994be67f562b7afec4436673d77927fe\",\"hash\":\"pub994be67f562b7afec4436673d77927fe\",\"is_active\":false},\"id\":\"ee0b4d74-7159-4498-bec7-2b4f2b5ba642\"}}\n" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/json" } ], - "headersSize": 662, + "headersSize": 693, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2024-12-10T15:40:39.995Z", - "time": 511 + "startedDateTime": "2025-08-19T14:20:13.725Z", + "time": 426 }, { - "_id": "efe35e68a51ec2fa836cac138538c159", + "_id": "f697a7b3cb0a2b2c234966045cf59069", "_order": 0, "cache": {}, "request": { @@ -78,7 +78,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/rum/applications/2ce2bdc3-efa2-4182-9bc1-b75b2ff09be4" + "url": "https://api.datadoghq.com/api/v2/rum/applications/ee0b4d74-7159-4498-bec7-2b4f2b5ba642" }, "response": { "bodySize": 0, @@ -88,14 +88,14 @@ }, "cookies": [], "headers": [], - "headersSize": 609, + "headersSize": 640, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2024-12-10T15:40:40.521Z", - "time": 576 + "startedDateTime": "2025-08-19T14:20:14.169Z", + "time": 288 } ], "pages": [], diff --git a/cassettes/v2/RUM_2896677143/Create-a-new-RUM-application-with-Product-Scales-returns-OK-response_2021508898/frozen.json b/cassettes/v2/RUM_2896677143/Create-a-new-RUM-application-with-Product-Scales-returns-OK-response_2021508898/frozen.json new file mode 100644 index 000000000000..830f459f5fcc --- /dev/null +++ b/cassettes/v2/RUM_2896677143/Create-a-new-RUM-application-with-Product-Scales-returns-OK-response_2021508898/frozen.json @@ -0,0 +1 @@ +"2025-08-19T14:01:52.966Z" diff --git a/cassettes/v2/RUM_2896677143/Create-a-new-RUM-application-with-Product-Scales-returns-OK-response_2021508898/recording.har b/cassettes/v2/RUM_2896677143/Create-a-new-RUM-application-with-Product-Scales-returns-OK-response_2021508898/recording.har new file mode 100644 index 000000000000..b647cf9b177a --- /dev/null +++ b/cassettes/v2/RUM_2896677143/Create-a-new-RUM-application-with-Product-Scales-returns-OK-response_2021508898/recording.har @@ -0,0 +1,104 @@ +{ + "log": { + "_recordingName": "RUM/Create a new RUM application with Product Scales returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "8985cfdea52182e0075eb82e0a29194f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 222, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 571, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"name\":\"test-rum-with-product-scales-b91c7f54876a951d\",\"product_analytics_retention_state\":\"NONE\",\"rum_event_processing_state\":\"ERROR_FOCUSED_MODE\",\"type\":\"browser\"},\"type\":\"rum_application_create\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/rum/applications" + }, + "response": { + "bodySize": 742, + "content": { + "mimeType": "application/json", + "size": 742, + "text": "{\"data\":{\"type\":\"rum_application\",\"id\":\"51419fd9-a73f-4508-9f74-ad07d6669a47\",\"attributes\":{\"hash\":\"pub6c464316cf5deccd2f56a23dbacd996e\",\"type\":\"browser\",\"org_id\":321813,\"updated_at\":1755612113258,\"name\":\"test-rum-with-product-scales-b91c7f54876a951d\",\"product_scales\":{\"product_analytics_retention_scale\":{\"state\":\"NONE\",\"last_modified_at\":1755612113258},\"rum_event_processing_scale\":{\"state\":\"ERROR_FOCUSED_MODE\",\"last_modified_at\":1755612113258}},\"created_at\":1755612113258,\"tags\":[],\"is_active\":false,\"updated_by_handle\":\"frog@datadoghq.com\",\"client_token\":\"pub6c464316cf5deccd2f56a23dbacd996e\",\"created_by_handle\":\"frog@datadoghq.com\",\"application_id\":\"51419fd9-a73f-4508-9f74-ad07d6669a47\",\"product_analytics_replay_sample_rate\":100}}}\n" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 692, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-19T14:01:52.969Z", + "time": 480 + }, + { + "_id": "abd645124f297a4c7af9c283c4e567c7", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 544, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/rum/applications/51419fd9-a73f-4508-9f74-ad07d6669a47" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 639, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-19T14:01:53.462Z", + "time": 302 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/RUM_2896677143/Get-a-RUM-application-returns-OK-response_931926360/frozen.json b/cassettes/v2/RUM_2896677143/Get-a-RUM-application-returns-OK-response_931926360/frozen.json index 01dbcfaf0166..cd4ab9193ea4 100644 --- a/cassettes/v2/RUM_2896677143/Get-a-RUM-application-returns-OK-response_931926360/frozen.json +++ b/cassettes/v2/RUM_2896677143/Get-a-RUM-application-returns-OK-response_931926360/frozen.json @@ -1 +1 @@ -"2024-12-10T15:40:43.594Z" +"2025-08-19T14:03:19.778Z" diff --git a/cassettes/v2/RUM_2896677143/Get-a-RUM-application-returns-OK-response_931926360/recording.har b/cassettes/v2/RUM_2896677143/Get-a-RUM-application-returns-OK-response_931926360/recording.har index fe94732a467d..42cb1fa1061e 100644 --- a/cassettes/v2/RUM_2896677143/Get-a-RUM-application-returns-OK-response_931926360/recording.har +++ b/cassettes/v2/RUM_2896677143/Get-a-RUM-application-returns-OK-response_931926360/recording.har @@ -8,7 +8,7 @@ }, "entries": [ { - "_id": "03b7cb9de2ad1f36f9fb692e5b986d4e", + "_id": "725c7ccc35daacdab9983e15d26365aa", "_order": 0, "cache": {}, "request": { @@ -26,23 +26,23 @@ "value": "application/json" } ], - "headersSize": 571, + "headersSize": 569, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"name\":\"test-rum-27e6a81538211560\",\"type\":\"ios\"},\"type\":\"rum_application_create\"}}" + "text": "{\"data\":{\"attributes\":{\"name\":\"test-rum-4a6d822e36907848\",\"type\":\"ios\"},\"type\":\"rum_application_create\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/rum/applications" }, "response": { - "bodySize": 672, + "bodySize": 703, "content": { "mimeType": "application/json", - "size": 672, - "text": "{\"data\":{\"type\":\"rum_application\",\"attributes\":{\"rum_disabled_at\":0,\"client_token\":\"pubabba2bf694ec513df0b434dd05fc8f4b\",\"created_at\":1733845244003,\"rum_enabled_at\":1733845244003,\"tags\":[],\"created_by_handle\":\"frog@datadoghq.com\",\"is_active\":false,\"type\":\"ios\",\"updated_by_handle\":\"frog@datadoghq.com\",\"product_analytics_enabled_at\":1733845244003,\"application_id\":\"77826c21-2a07-4b5a-a54d-8912e1802854\",\"name\":\"test-rum-27e6a81538211560\",\"updated_at\":1733845244003,\"product_analytics_disabled_at\":1733845244003,\"org_id\":321813,\"product_analytics_enabled\":false,\"hash\":\"pubabba2bf694ec513df0b434dd05fc8f4b\",\"rum_enabled\":true},\"id\":\"77826c21-2a07-4b5a-a54d-8912e1802854\"}}\n" + "size": 703, + "text": "{\"data\":{\"type\":\"rum_application\",\"id\":\"60ddadf3-d37f-4d33-bdf1-f56b674ae8ed\",\"attributes\":{\"product_analytics_replay_sample_rate\":100,\"tags\":[],\"is_active\":false,\"org_id\":321813,\"updated_by_handle\":\"frog@datadoghq.com\",\"application_id\":\"60ddadf3-d37f-4d33-bdf1-f56b674ae8ed\",\"product_scales\":{\"rum_event_processing_scale\":{\"last_modified_at\":1755612200050,\"state\":\"ALL\"},\"product_analytics_retention_scale\":{\"last_modified_at\":1755612200050,\"state\":\"NONE\"}},\"name\":\"test-rum-4a6d822e36907848\",\"created_at\":1755612200050,\"type\":\"ios\",\"created_by_handle\":\"frog@datadoghq.com\",\"client_token\":\"pubc55567bba30695d2cd7bf49190b6ccf5\",\"updated_at\":1755612200050,\"hash\":\"pubc55567bba30695d2cd7bf49190b6ccf5\"}}}\n" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/json" } ], - "headersSize": 662, + "headersSize": 693, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2024-12-10T15:40:43.599Z", - "time": 495 + "startedDateTime": "2025-08-19T14:03:19.783Z", + "time": 413 }, { - "_id": "d41cba328ac94ed8807a67cedbe1db7b", + "_id": "23abdbebd1109d7c79cd5afd1b996bbe", "_order": 0, "cache": {}, "request": { @@ -74,18 +74,18 @@ "value": "application/json" } ], - "headersSize": 551, + "headersSize": 549, "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/rum/applications/77826c21-2a07-4b5a-a54d-8912e1802854" + "url": "https://api.datadoghq.com/api/v2/rum/applications/60ddadf3-d37f-4d33-bdf1-f56b674ae8ed" }, "response": { - "bodySize": 672, + "bodySize": 703, "content": { "mimeType": "application/json", - "size": 672, - "text": "{\"data\":{\"type\":\"rum_application\",\"attributes\":{\"product_analytics_disabled_at\":1733845244003,\"rum_disabled_at\":0,\"is_active\":false,\"application_id\":\"77826c21-2a07-4b5a-a54d-8912e1802854\",\"name\":\"test-rum-27e6a81538211560\",\"updated_at\":1733845244003,\"updated_by_handle\":\"frog@datadoghq.com\",\"org_id\":321813,\"rum_enabled_at\":1733845244003,\"hash\":\"pubabba2bf694ec513df0b434dd05fc8f4b\",\"tags\":[],\"created_by_handle\":\"frog@datadoghq.com\",\"type\":\"ios\",\"rum_enabled\":true,\"product_analytics_enabled\":false,\"product_analytics_enabled_at\":1733845244003,\"created_at\":1733845244003,\"client_token\":\"pubabba2bf694ec513df0b434dd05fc8f4b\"},\"id\":\"77826c21-2a07-4b5a-a54d-8912e1802854\"}}\n" + "size": 703, + "text": "{\"data\":{\"type\":\"rum_application\",\"attributes\":{\"updated_at\":1755612200050,\"org_id\":321813,\"product_analytics_replay_sample_rate\":100,\"updated_by_handle\":\"frog@datadoghq.com\",\"type\":\"ios\",\"application_id\":\"60ddadf3-d37f-4d33-bdf1-f56b674ae8ed\",\"hash\":\"pubc55567bba30695d2cd7bf49190b6ccf5\",\"created_by_handle\":\"frog@datadoghq.com\",\"product_scales\":{\"rum_event_processing_scale\":{\"state\":\"ALL\",\"last_modified_at\":1755612200050},\"product_analytics_retention_scale\":{\"state\":\"NONE\",\"last_modified_at\":1755612200050}},\"is_active\":false,\"tags\":[],\"name\":\"test-rum-4a6d822e36907848\",\"client_token\":\"pubc55567bba30695d2cd7bf49190b6ccf5\",\"created_at\":1755612200050},\"id\":\"60ddadf3-d37f-4d33-bdf1-f56b674ae8ed\"}}\n" }, "cookies": [], "headers": [ @@ -94,17 +94,17 @@ "value": "application/json" } ], - "headersSize": 662, + "headersSize": 693, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2024-12-10T15:40:44.103Z", - "time": 422 + "startedDateTime": "2025-08-19T14:03:20.205Z", + "time": 125 }, { - "_id": "3178d1d6c3e146f0dc07940cd20d3b5c", + "_id": "01dd3db5a9c2c85da49af10c2a3bd6c5", "_order": 0, "cache": {}, "request": { @@ -117,11 +117,11 @@ "value": "*/*" } ], - "headersSize": 544, + "headersSize": 542, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/rum/applications/77826c21-2a07-4b5a-a54d-8912e1802854" + "url": "https://api.datadoghq.com/api/v2/rum/applications/60ddadf3-d37f-4d33-bdf1-f56b674ae8ed" }, "response": { "bodySize": 0, @@ -131,14 +131,14 @@ }, "cookies": [], "headers": [], - "headersSize": 609, + "headersSize": 640, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2024-12-10T15:40:44.543Z", - "time": 504 + "startedDateTime": "2025-08-19T14:03:20.342Z", + "time": 270 } ], "pages": [], diff --git a/cassettes/v2/RUM_2896677143/List-all-the-RUM-applications-returns-OK-response_4258298866/frozen.json b/cassettes/v2/RUM_2896677143/List-all-the-RUM-applications-returns-OK-response_4258298866/frozen.json index 1c6db225940b..26b851327f05 100644 --- a/cassettes/v2/RUM_2896677143/List-all-the-RUM-applications-returns-OK-response_4258298866/frozen.json +++ b/cassettes/v2/RUM_2896677143/List-all-the-RUM-applications-returns-OK-response_4258298866/frozen.json @@ -1 +1 @@ -"2024-12-10T15:40:45.445Z" +"2025-08-19T14:03:34.020Z" diff --git a/cassettes/v2/RUM_2896677143/List-all-the-RUM-applications-returns-OK-response_4258298866/recording.har b/cassettes/v2/RUM_2896677143/List-all-the-RUM-applications-returns-OK-response_4258298866/recording.har index d78f0f64c675..b8b4028e834d 100644 --- a/cassettes/v2/RUM_2896677143/List-all-the-RUM-applications-returns-OK-response_4258298866/recording.har +++ b/cassettes/v2/RUM_2896677143/List-all-the-RUM-applications-returns-OK-response_4258298866/recording.har @@ -8,7 +8,7 @@ }, "entries": [ { - "_id": "dac3d20230f0266c33a813906a0d7038", + "_id": "76bddd51b63f51349692eaf331f5a48c", "_order": 0, "cache": {}, "request": { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"name\":\"test-rum-688346277e8afe02\",\"type\":\"ios\"},\"type\":\"rum_application_create\"}}" + "text": "{\"data\":{\"attributes\":{\"name\":\"test-rum-a630eb80b3e09124\",\"type\":\"ios\"},\"type\":\"rum_application_create\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/rum/applications" }, "response": { - "bodySize": 672, + "bodySize": 703, "content": { "mimeType": "application/json", - "size": 672, - "text": "{\"data\":{\"type\":\"rum_application\",\"attributes\":{\"is_active\":false,\"rum_disabled_at\":0,\"created_at\":1733845245930,\"type\":\"ios\",\"name\":\"test-rum-688346277e8afe02\",\"updated_at\":1733845245930,\"org_id\":321813,\"hash\":\"pub49b6e409919401d6f57c613443277c5f\",\"product_analytics_enabled_at\":1733845245930,\"application_id\":\"9b00e648-de1e-4d5f-af81-3d465b925b0d\",\"client_token\":\"pub49b6e409919401d6f57c613443277c5f\",\"product_analytics_enabled\":false,\"tags\":[],\"created_by_handle\":\"frog@datadoghq.com\",\"updated_by_handle\":\"frog@datadoghq.com\",\"rum_enabled\":true,\"rum_enabled_at\":1733845245930,\"product_analytics_disabled_at\":1733845245930},\"id\":\"9b00e648-de1e-4d5f-af81-3d465b925b0d\"}}\n" + "size": 703, + "text": "{\"data\":{\"type\":\"rum_application\",\"id\":\"cfc4270c-7df3-4a8b-a24a-20f2a25e15b2\",\"attributes\":{\"created_by_handle\":\"frog@datadoghq.com\",\"name\":\"test-rum-a630eb80b3e09124\",\"product_analytics_replay_sample_rate\":100,\"tags\":[],\"type\":\"ios\",\"updated_at\":1755612214266,\"updated_by_handle\":\"frog@datadoghq.com\",\"hash\":\"pub8da0c745dc9ed0616e72239bf54c23ff\",\"product_scales\":{\"rum_event_processing_scale\":{\"state\":\"ALL\",\"last_modified_at\":1755612214266},\"product_analytics_retention_scale\":{\"state\":\"NONE\",\"last_modified_at\":1755612214266}},\"created_at\":1755612214266,\"client_token\":\"pub8da0c745dc9ed0616e72239bf54c23ff\",\"org_id\":321813,\"application_id\":\"cfc4270c-7df3-4a8b-a24a-20f2a25e15b2\",\"is_active\":false}}}\n" }, "cookies": [], "headers": [ @@ -51,14 +51,14 @@ "value": "application/json" } ], - "headersSize": 662, + "headersSize": 693, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2024-12-10T15:40:45.461Z", - "time": 572 + "startedDateTime": "2025-08-19T14:03:34.023Z", + "time": 528 }, { "_id": "cb719827ecc7915dd93aa3930b843457", @@ -81,11 +81,11 @@ "url": "https://api.datadoghq.com/api/v2/rum/applications" }, "response": { - "bodySize": 5636, + "bodySize": 4815, "content": { "mimeType": "application/json", - "size": 5636, - "text": "{\"data\":[{\"type\":\"rum_application\",\"attributes\":{\"updated_at\":1646148434414,\"product_analytics_disabled_at\":1646148352095,\"rum_enabled_at\":1646148352095,\"rum_disabled_at\":0,\"application_id\":\"6ae18142-192f-4582-9633-95121c2a01d7\",\"created_by_handle\":\"frog@datadoghq.com\",\"product_analytics_enabled\":false,\"org_id\":321813,\"type\":\"browser\",\"is_active\":true,\"updated_by_handle\":\"frog@datadoghq.com\",\"rum_enabled\":true,\"tags\":[],\"product_analytics_enabled_at\":1646148352095,\"name\":\"S8-integration-tests\",\"created_at\":1646148352095},\"id\":\"6ae18142-192f-4582-9633-95121c2a01d7\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_at\":1648568515456,\"product_analytics_disabled_at\":1648568515456,\"rum_enabled_at\":1648568515456,\"rum_disabled_at\":0,\"application_id\":\"ce9843b0-7a45-453c-a831-55dd15f85141\",\"created_by_handle\":\"frog@datadoghq.com\",\"product_analytics_enabled\":false,\"org_id\":321813,\"type\":\"browser\",\"is_active\":true,\"updated_by_handle\":\"frog@datadoghq.com\",\"rum_enabled\":true,\"tags\":[],\"product_analytics_enabled_at\":1648568515456,\"name\":\"Synthetic Tests Default Application\",\"created_at\":1648568515456},\"id\":\"ce9843b0-7a45-453c-a831-55dd15f85141\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_at\":1670608490405,\"product_analytics_disabled_at\":1670608490405,\"rum_enabled_at\":1670608490405,\"rum_disabled_at\":0,\"application_id\":\"88e86bcc-6d0a-4a3c-942f-55314a6f03bd\",\"created_by_handle\":\"frog@datadoghq.com\",\"product_analytics_enabled\":false,\"org_id\":321813,\"type\":\"browser\",\"is_active\":false,\"updated_by_handle\":\"frog@datadoghq.com\",\"rum_enabled\":true,\"tags\":[],\"product_analytics_enabled_at\":1670608490405,\"name\":\"awoooooooo\",\"created_at\":1670608490405},\"id\":\"88e86bcc-6d0a-4a3c-942f-55314a6f03bd\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_at\":1721327950211,\"product_analytics_disabled_at\":1721327950211,\"rum_enabled_at\":1721327950211,\"rum_disabled_at\":0,\"application_id\":\"aaf8455b-23c6-4ec8-9bd8-9bc45fe90aa5\",\"created_by_handle\":\"anika.maskara@datadoghq.com\",\"product_analytics_enabled\":false,\"org_id\":321813,\"type\":\"browser\",\"is_active\":false,\"updated_by_handle\":\"anika.maskara@datadoghq.com\",\"rum_enabled\":true,\"tags\":[],\"product_analytics_enabled_at\":1721327950211,\"name\":\"%s2\",\"created_at\":1721327950211},\"id\":\"aaf8455b-23c6-4ec8-9bd8-9bc45fe90aa5\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_at\":1733845067600,\"product_analytics_disabled_at\":1733845067600,\"rum_enabled_at\":1733845067600,\"rum_disabled_at\":0,\"application_id\":\"56ea0200-2ff2-4aba-8b68-c2519f958d92\",\"created_by_handle\":\"frog@datadoghq.com\",\"product_analytics_enabled\":false,\"org_id\":321813,\"type\":\"browser\",\"is_active\":false,\"updated_by_handle\":\"frog@datadoghq.com\",\"rum_enabled\":true,\"tags\":[],\"product_analytics_enabled_at\":1733845067600,\"name\":\"test-name-create\",\"created_at\":1733845067600},\"id\":\"56ea0200-2ff2-4aba-8b68-c2519f958d92\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_at\":1733845070746,\"product_analytics_disabled_at\":1733845070746,\"rum_enabled_at\":1733845070746,\"rum_disabled_at\":0,\"application_id\":\"ee5565ee-8853-4aa5-b996-95ed92723275\",\"created_by_handle\":\"frog@datadoghq.com\",\"product_analytics_enabled\":false,\"org_id\":321813,\"type\":\"browser\",\"is_active\":false,\"updated_by_handle\":\"frog@datadoghq.com\",\"rum_enabled\":true,\"tags\":[],\"product_analytics_enabled_at\":1733845070746,\"name\":\"test-name-create\",\"created_at\":1733845070746},\"id\":\"ee5565ee-8853-4aa5-b996-95ed92723275\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_at\":1733845073568,\"product_analytics_disabled_at\":1733845073568,\"rum_enabled_at\":1733845073568,\"rum_disabled_at\":0,\"application_id\":\"9b86706d-31fb-401f-aa12-4483512eebfc\",\"created_by_handle\":\"frog@datadoghq.com\",\"product_analytics_enabled\":false,\"org_id\":321813,\"type\":\"browser\",\"is_active\":false,\"updated_by_handle\":\"frog@datadoghq.com\",\"rum_enabled\":true,\"tags\":[],\"product_analytics_enabled_at\":1733845073568,\"name\":\"test-name-create\",\"created_at\":1733845073568},\"id\":\"9b86706d-31fb-401f-aa12-4483512eebfc\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_at\":1733845076778,\"product_analytics_disabled_at\":1733845076778,\"rum_enabled_at\":1733845076778,\"rum_disabled_at\":0,\"application_id\":\"c0ebd9ba-093e-4f43-bb7a-a11b59dcbc5f\",\"created_by_handle\":\"frog@datadoghq.com\",\"product_analytics_enabled\":false,\"org_id\":321813,\"type\":\"browser\",\"is_active\":false,\"updated_by_handle\":\"frog@datadoghq.com\",\"rum_enabled\":true,\"tags\":[],\"product_analytics_enabled_at\":1733845076778,\"name\":\"test-name-create\",\"created_at\":1733845076778},\"id\":\"c0ebd9ba-093e-4f43-bb7a-a11b59dcbc5f\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_at\":1733845079233,\"product_analytics_disabled_at\":1733845079233,\"rum_enabled_at\":1733845079233,\"rum_disabled_at\":0,\"application_id\":\"86e85ed3-b529-4e1c-9499-8c7a58cd781a\",\"created_by_handle\":\"frog@datadoghq.com\",\"product_analytics_enabled\":false,\"org_id\":321813,\"type\":\"browser\",\"is_active\":false,\"updated_by_handle\":\"frog@datadoghq.com\",\"rum_enabled\":true,\"tags\":[],\"product_analytics_enabled_at\":1733845079233,\"name\":\"test-name-create\",\"created_at\":1733845079233},\"id\":\"86e85ed3-b529-4e1c-9499-8c7a58cd781a\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_at\":1733845245930,\"product_analytics_disabled_at\":1733845245930,\"rum_enabled_at\":1733845245930,\"rum_disabled_at\":0,\"application_id\":\"9b00e648-de1e-4d5f-af81-3d465b925b0d\",\"created_by_handle\":\"frog@datadoghq.com\",\"product_analytics_enabled\":false,\"org_id\":321813,\"type\":\"ios\",\"is_active\":false,\"updated_by_handle\":\"frog@datadoghq.com\",\"rum_enabled\":true,\"tags\":[],\"product_analytics_enabled_at\":1733845245930,\"name\":\"test-rum-688346277e8afe02\",\"created_at\":1733845245930},\"id\":\"9b00e648-de1e-4d5f-af81-3d465b925b0d\"}]}\n" + "size": 4815, + "text": "{\"data\":[{\"type\":\"rum_application\",\"attributes\":{\"updated_by_handle\":\"Datadog\",\"is_active\":true,\"created_at\":1646148352095,\"product_analytics_replay_sample_rate\":100,\"product_scales\":{\"rum_event_processing_scale\":{\"state\":\"ALL\",\"last_modified_at\":1646148352095},\"product_analytics_retention_scale\":{\"state\":\"NONE\",\"last_modified_at\":1646148352095}},\"tags\":[],\"updated_at\":1753109253427,\"type\":\"browser\",\"created_by_handle\":\"frog@datadoghq.com\",\"name\":\"S8-integration-tests\",\"org_id\":321813,\"application_id\":\"6ae18142-192f-4582-9633-95121c2a01d7\"},\"id\":\"6ae18142-192f-4582-9633-95121c2a01d7\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_by_handle\":\"Datadog\",\"is_active\":true,\"created_at\":1648568515456,\"product_analytics_replay_sample_rate\":100,\"product_scales\":{\"rum_event_processing_scale\":{\"state\":\"ALL\",\"last_modified_at\":1648568515456},\"product_analytics_retention_scale\":{\"state\":\"NONE\",\"last_modified_at\":1648568515456}},\"tags\":[],\"updated_at\":1753109253438,\"type\":\"browser\",\"created_by_handle\":\"frog@datadoghq.com\",\"name\":\"Synthetic Tests Default Application\",\"org_id\":321813,\"application_id\":\"ce9843b0-7a45-453c-a831-55dd15f85141\"},\"id\":\"ce9843b0-7a45-453c-a831-55dd15f85141\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_by_handle\":\"Datadog\",\"is_active\":false,\"created_at\":1670608490405,\"product_analytics_replay_sample_rate\":100,\"product_scales\":{\"rum_event_processing_scale\":{\"state\":\"ALL\",\"last_modified_at\":1670608490405},\"product_analytics_retention_scale\":{\"state\":\"NONE\",\"last_modified_at\":1670608490405}},\"tags\":[],\"updated_at\":1753109253448,\"type\":\"browser\",\"created_by_handle\":\"frog@datadoghq.com\",\"name\":\"awoooooooo\",\"org_id\":321813,\"application_id\":\"88e86bcc-6d0a-4a3c-942f-55314a6f03bd\"},\"id\":\"88e86bcc-6d0a-4a3c-942f-55314a6f03bd\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_by_handle\":\"Datadog\",\"is_active\":false,\"created_at\":1721327950211,\"product_analytics_replay_sample_rate\":100,\"product_scales\":{\"rum_event_processing_scale\":{\"state\":\"ALL\",\"last_modified_at\":1721327950211},\"product_analytics_retention_scale\":{\"state\":\"NONE\",\"last_modified_at\":1721327950211}},\"tags\":[],\"updated_at\":1753109253459,\"type\":\"browser\",\"created_by_handle\":\"anika.maskara@datadoghq.com\",\"name\":\"%s2\",\"org_id\":321813,\"application_id\":\"aaf8455b-23c6-4ec8-9bd8-9bc45fe90aa5\"},\"id\":\"aaf8455b-23c6-4ec8-9bd8-9bc45fe90aa5\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_by_handle\":\"Datadog\",\"is_active\":false,\"created_at\":1743185866075,\"product_analytics_replay_sample_rate\":100,\"product_scales\":{\"rum_event_processing_scale\":{\"state\":\"ALL\",\"last_modified_at\":1743185866075},\"product_analytics_retention_scale\":{\"state\":\"NONE\",\"last_modified_at\":1743185866075}},\"tags\":[],\"updated_at\":1753109253472,\"type\":\"browser\",\"created_by_handle\":\"frog@datadoghq.com\",\"name\":\"my-rum-application-test\",\"org_id\":321813,\"application_id\":\"414e5c84-a376-43ec-b3d7-35049deea225\"},\"id\":\"414e5c84-a376-43ec-b3d7-35049deea225\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_by_handle\":\"Datadog\",\"is_active\":false,\"created_at\":1750736321451,\"product_analytics_replay_sample_rate\":100,\"product_scales\":{\"rum_event_processing_scale\":{\"state\":\"ALL\",\"last_modified_at\":1750736321451},\"product_analytics_retention_scale\":{\"state\":\"NONE\",\"last_modified_at\":1750736321451}},\"tags\":[],\"updated_at\":1753109253483,\"type\":\"browser\",\"created_by_handle\":\"frog@datadoghq.com\",\"name\":\"updated_name_for_my_existing_rum_application\",\"org_id\":321813,\"application_id\":\"47e19fb5-6c6a-4bd1-aee8-25f6709833e0\"},\"id\":\"47e19fb5-6c6a-4bd1-aee8-25f6709833e0\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_by_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"is_active\":false,\"created_at\":1755519831419,\"product_analytics_replay_sample_rate\":100,\"product_scales\":{\"rum_event_processing_scale\":{\"state\":\"ALL\",\"last_modified_at\":1755519831419},\"product_analytics_retention_scale\":{\"state\":\"NONE\",\"last_modified_at\":1755519831419}},\"tags\":[],\"updated_at\":1755519831419,\"type\":\"android\",\"created_by_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"tf-TestAccDatadogRUMApplicationDatasourceErrorMultiple-local-1755519829\",\"org_id\":321813,\"application_id\":\"e75f227f-a40f-49df-bd2c-e1997b1da53a\"},\"id\":\"e75f227f-a40f-49df-bd2c-e1997b1da53a\"},{\"type\":\"rum_application\",\"attributes\":{\"updated_by_handle\":\"frog@datadoghq.com\",\"is_active\":false,\"created_at\":1755612214266,\"product_analytics_replay_sample_rate\":100,\"product_scales\":{\"rum_event_processing_scale\":{\"state\":\"ALL\",\"last_modified_at\":1755612214266},\"product_analytics_retention_scale\":{\"state\":\"NONE\",\"last_modified_at\":1755612214266}},\"tags\":[],\"updated_at\":1755612214266,\"type\":\"ios\",\"created_by_handle\":\"frog@datadoghq.com\",\"name\":\"test-rum-a630eb80b3e09124\",\"org_id\":321813,\"application_id\":\"cfc4270c-7df3-4a8b-a24a-20f2a25e15b2\"},\"id\":\"cfc4270c-7df3-4a8b-a24a-20f2a25e15b2\"}]}\n" }, "cookies": [], "headers": [ @@ -94,17 +94,17 @@ "value": "application/json" } ], - "headersSize": 663, + "headersSize": 694, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2024-12-10T15:40:46.041Z", - "time": 505 + "startedDateTime": "2025-08-19T14:03:34.562Z", + "time": 205 }, { - "_id": "09a1cf5ef1e8da643057fbe756b6eba3", + "_id": "947ccee28ca06ad3fa327fedebc33225", "_order": 0, "cache": {}, "request": { @@ -121,7 +121,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/rum/applications/9b00e648-de1e-4d5f-af81-3d465b925b0d" + "url": "https://api.datadoghq.com/api/v2/rum/applications/cfc4270c-7df3-4a8b-a24a-20f2a25e15b2" }, "response": { "bodySize": 0, @@ -131,14 +131,14 @@ }, "cookies": [], "headers": [], - "headersSize": 609, + "headersSize": 640, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2024-12-10T15:40:46.561Z", - "time": 589 + "startedDateTime": "2025-08-19T14:03:34.782Z", + "time": 318 } ], "pages": [], diff --git a/cassettes/v2/RUM_2896677143/Update-a-RUM-application-returns-OK-response_306189195/frozen.json b/cassettes/v2/RUM_2896677143/Update-a-RUM-application-returns-OK-response_306189195/frozen.json index 97e8e33838ce..90977d78e913 100644 --- a/cassettes/v2/RUM_2896677143/Update-a-RUM-application-returns-OK-response_306189195/frozen.json +++ b/cassettes/v2/RUM_2896677143/Update-a-RUM-application-returns-OK-response_306189195/frozen.json @@ -1 +1 @@ -"2024-12-10T15:40:47.532Z" +"2025-08-19T14:26:24.242Z" diff --git a/cassettes/v2/RUM_2896677143/Update-a-RUM-application-returns-OK-response_306189195/recording.har b/cassettes/v2/RUM_2896677143/Update-a-RUM-application-returns-OK-response_306189195/recording.har index 0dc3efef8ea6..048575ca3304 100644 --- a/cassettes/v2/RUM_2896677143/Update-a-RUM-application-returns-OK-response_306189195/recording.har +++ b/cassettes/v2/RUM_2896677143/Update-a-RUM-application-returns-OK-response_306189195/recording.har @@ -8,7 +8,7 @@ }, "entries": [ { - "_id": "640e8d1571eb544ed896bae1e2fe9ce5", + "_id": "0f6ab4d317711a1f90d7575223543ead", "_order": 0, "cache": {}, "request": { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"name\":\"test-rum-08f8f866ac73a2f6\",\"type\":\"ios\"},\"type\":\"rum_application_create\"}}" + "text": "{\"data\":{\"attributes\":{\"name\":\"test-rum-2befac64eeb0a1b0\",\"type\":\"ios\"},\"type\":\"rum_application_create\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/rum/applications" }, "response": { - "bodySize": 672, + "bodySize": 703, "content": { "mimeType": "application/json", - "size": 672, - "text": "{\"data\":{\"type\":\"rum_application\",\"attributes\":{\"tags\":[],\"type\":\"ios\",\"client_token\":\"pub89c189272956845c68f39e57d34d23f6\",\"hash\":\"pub89c189272956845c68f39e57d34d23f6\",\"updated_at\":1733845247961,\"org_id\":321813,\"product_analytics_disabled_at\":1733845247961,\"product_analytics_enabled_at\":1733845247961,\"rum_enabled_at\":1733845247961,\"application_id\":\"04898090-77be-4047-a2cb-654f5e050929\",\"is_active\":false,\"rum_disabled_at\":0,\"product_analytics_enabled\":false,\"created_at\":1733845247961,\"created_by_handle\":\"frog@datadoghq.com\",\"name\":\"test-rum-08f8f866ac73a2f6\",\"rum_enabled\":true,\"updated_by_handle\":\"frog@datadoghq.com\"},\"id\":\"04898090-77be-4047-a2cb-654f5e050929\"}}\n" + "size": 703, + "text": "{\"data\":{\"type\":\"rum_application\",\"attributes\":{\"type\":\"ios\",\"is_active\":false,\"name\":\"test-rum-2befac64eeb0a1b0\",\"org_id\":321813,\"client_token\":\"pub5771f25e4c8f41666ac4a61cf7fc9d0d\",\"created_by_handle\":\"frog@datadoghq.com\",\"updated_at\":1755613584581,\"application_id\":\"94f76d3a-a8b2-4d1a-9938-771568a36f50\",\"created_at\":1755613584581,\"updated_by_handle\":\"frog@datadoghq.com\",\"product_scales\":{\"rum_event_processing_scale\":{\"state\":\"ALL\",\"last_modified_at\":1755613584581},\"product_analytics_retention_scale\":{\"state\":\"NONE\",\"last_modified_at\":1755613584581}},\"hash\":\"pub5771f25e4c8f41666ac4a61cf7fc9d0d\",\"tags\":[],\"product_analytics_replay_sample_rate\":100},\"id\":\"94f76d3a-a8b2-4d1a-9938-771568a36f50\"}}\n" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/json" } ], - "headersSize": 662, + "headersSize": 692, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2024-12-10T15:40:47.541Z", - "time": 527 + "startedDateTime": "2025-08-19T14:26:24.246Z", + "time": 430 }, { - "_id": "6f4ccf67eb5265020fa46590503b7d4f", + "_id": "a2ddb16e262ab4bfaf2c22da1a9804f5", "_order": 0, "cache": {}, "request": { @@ -85,17 +85,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"name\":\"updated_name_for_my_existing_rum_application\",\"type\":\"browser\"},\"id\":\"04898090-77be-4047-a2cb-654f5e050929\",\"type\":\"rum_application_update\"}}" + "text": "{\"data\":{\"attributes\":{\"name\":\"updated_name_for_my_existing_rum_application\",\"type\":\"browser\"},\"id\":\"94f76d3a-a8b2-4d1a-9938-771568a36f50\",\"type\":\"rum_application_update\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/rum/applications/04898090-77be-4047-a2cb-654f5e050929" + "url": "https://api.datadoghq.com/api/v2/rum/applications/94f76d3a-a8b2-4d1a-9938-771568a36f50" }, "response": { - "bodySize": 695, + "bodySize": 726, "content": { "mimeType": "application/json", - "size": 695, - "text": "{\"data\":{\"type\":\"rum_application\",\"attributes\":{\"product_analytics_enabled\":false,\"tags\":[],\"updated_at\":1733845248476,\"rum_enabled\":true,\"type\":\"browser\",\"product_analytics_enabled_at\":1733845247961,\"rum_enabled_at\":1733845247961,\"rum_disabled_at\":0,\"name\":\"updated_name_for_my_existing_rum_application\",\"is_active\":false,\"client_token\":\"pub89c189272956845c68f39e57d34d23f6\",\"created_at\":1733845247961,\"product_analytics_disabled_at\":1733845247961,\"hash\":\"pub89c189272956845c68f39e57d34d23f6\",\"org_id\":321813,\"created_by_handle\":\"frog@datadoghq.com\",\"updated_by_handle\":\"frog@datadoghq.com\",\"application_id\":\"04898090-77be-4047-a2cb-654f5e050929\"},\"id\":\"04898090-77be-4047-a2cb-654f5e050929\"}}\n" + "size": 726, + "text": "{\"data\":{\"type\":\"rum_application\",\"attributes\":{\"product_scales\":{\"rum_event_processing_scale\":{\"state\":\"ALL\",\"last_modified_at\":1755613584581},\"product_analytics_retention_scale\":{\"state\":\"NONE\",\"last_modified_at\":1755613584581}},\"hash\":\"pub5771f25e4c8f41666ac4a61cf7fc9d0d\",\"name\":\"updated_name_for_my_existing_rum_application\",\"type\":\"browser\",\"created_at\":1755613584581,\"org_id\":321813,\"updated_at\":1755613584847,\"tags\":[],\"is_active\":false,\"client_token\":\"pub5771f25e4c8f41666ac4a61cf7fc9d0d\",\"created_by_handle\":\"frog@datadoghq.com\",\"application_id\":\"94f76d3a-a8b2-4d1a-9938-771568a36f50\",\"updated_by_handle\":\"frog@datadoghq.com\",\"product_analytics_replay_sample_rate\":100},\"id\":\"94f76d3a-a8b2-4d1a-9938-771568a36f50\"}}\n" }, "cookies": [], "headers": [ @@ -104,17 +104,17 @@ "value": "application/json" } ], - "headersSize": 662, + "headersSize": 692, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2024-12-10T15:40:48.082Z", - "time": 578 + "startedDateTime": "2025-08-19T14:26:24.696Z", + "time": 168 }, { - "_id": "59a558c08dd137e341ae62fe80acd400", + "_id": "6355e0aaa0975d80953761fef6cb7e82", "_order": 0, "cache": {}, "request": { @@ -131,7 +131,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/rum/applications/04898090-77be-4047-a2cb-654f5e050929" + "url": "https://api.datadoghq.com/api/v2/rum/applications/94f76d3a-a8b2-4d1a-9938-771568a36f50" }, "response": { "bodySize": 0, @@ -141,14 +141,14 @@ }, "cookies": [], "headers": [], - "headersSize": 609, + "headersSize": 639, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2024-12-10T15:40:48.673Z", - "time": 487 + "startedDateTime": "2025-08-19T14:26:24.875Z", + "time": 327 } ], "pages": [], diff --git a/cassettes/v2/RUM_2896677143/Update-a-RUM-application-with-Product-Scales-returns-OK-response_1068338449/frozen.json b/cassettes/v2/RUM_2896677143/Update-a-RUM-application-with-Product-Scales-returns-OK-response_1068338449/frozen.json new file mode 100644 index 000000000000..fbced7897190 --- /dev/null +++ b/cassettes/v2/RUM_2896677143/Update-a-RUM-application-with-Product-Scales-returns-OK-response_1068338449/frozen.json @@ -0,0 +1 @@ +"2025-08-19T14:03:03.148Z" diff --git a/cassettes/v2/RUM_2896677143/Update-a-RUM-application-with-Product-Scales-returns-OK-response_1068338449/recording.har b/cassettes/v2/RUM_2896677143/Update-a-RUM-application-with-Product-Scales-returns-OK-response_1068338449/recording.har new file mode 100644 index 000000000000..bde2ae5a8716 --- /dev/null +++ b/cassettes/v2/RUM_2896677143/Update-a-RUM-application-with-Product-Scales-returns-OK-response_1068338449/recording.har @@ -0,0 +1,157 @@ +{ + "log": { + "_recordingName": "RUM/Update a RUM application with Product Scales returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "633d050950f89a73a17747d4c18f92b9", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 105, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 571, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"name\":\"test-rum-437f87a61b37ca7e\",\"type\":\"ios\"},\"type\":\"rum_application_create\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/rum/applications" + }, + "response": { + "bodySize": 703, + "content": { + "mimeType": "application/json", + "size": 703, + "text": "{\"data\":{\"type\":\"rum_application\",\"attributes\":{\"updated_by_handle\":\"frog@datadoghq.com\",\"product_scales\":{\"rum_event_processing_scale\":{\"state\":\"ALL\",\"last_modified_at\":1755612183425},\"product_analytics_retention_scale\":{\"state\":\"NONE\",\"last_modified_at\":1755612183425}},\"client_token\":\"pub601ee82f2a03f18ee4750e75918179a9\",\"is_active\":false,\"created_by_handle\":\"frog@datadoghq.com\",\"tags\":[],\"org_id\":321813,\"type\":\"ios\",\"product_analytics_replay_sample_rate\":100,\"name\":\"test-rum-437f87a61b37ca7e\",\"application_id\":\"c82755b7-9938-4241-ae5a-24dd5760402b\",\"hash\":\"pub601ee82f2a03f18ee4750e75918179a9\",\"updated_at\":1755612183425,\"created_at\":1755612183425},\"id\":\"c82755b7-9938-4241-ae5a-24dd5760402b\"}}\n" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 693, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-19T14:03:03.151Z", + "time": 415 + }, + { + "_id": "443556ca4b72c3009e76c8568d828604", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 219, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 609, + "httpVersion": "HTTP/1.1", + "method": "PATCH", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"name\":\"updated_rum_with_product_scales\",\"product_analytics_retention_state\":\"MAX\",\"rum_event_processing_state\":\"ALL\"},\"id\":\"c82755b7-9938-4241-ae5a-24dd5760402b\",\"type\":\"rum_application_update\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/rum/applications/c82755b7-9938-4241-ae5a-24dd5760402b" + }, + "response": { + "bodySize": 708, + "content": { + "mimeType": "application/json", + "size": 708, + "text": "{\"data\":{\"type\":\"rum_application\",\"attributes\":{\"tags\":[],\"application_id\":\"c82755b7-9938-4241-ae5a-24dd5760402b\",\"is_active\":false,\"hash\":\"pub601ee82f2a03f18ee4750e75918179a9\",\"product_analytics_replay_sample_rate\":100,\"product_scales\":{\"product_analytics_retention_scale\":{\"state\":\"MAX\",\"last_modified_at\":1755612183687},\"rum_event_processing_scale\":{\"state\":\"ALL\",\"last_modified_at\":1755612183425}},\"updated_by_handle\":\"frog@datadoghq.com\",\"org_id\":321813,\"created_by_handle\":\"frog@datadoghq.com\",\"type\":\"ios\",\"name\":\"updated_rum_with_product_scales\",\"client_token\":\"pub601ee82f2a03f18ee4750e75918179a9\",\"created_at\":1755612183425,\"updated_at\":1755612183687},\"id\":\"c82755b7-9938-4241-ae5a-24dd5760402b\"}}\n" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 693, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-19T14:03:03.574Z", + "time": 233 + }, + { + "_id": "7d72e7e993c767196f3bc72319beaab2", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 544, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/rum/applications/c82755b7-9938-4241-ae5a-24dd5760402b" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 640, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-19T14:03:03.816Z", + "time": 293 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/features/v2/rum.feature b/features/v2/rum.feature index f86e1ee618f2..e25922fb48cd 100644 --- a/features/v2/rum.feature +++ b/features/v2/rum.feature @@ -42,6 +42,23 @@ Feature: RUM And the response "data.type" is equal to "rum_application" And the response "data.attributes.type" is equal to "ios" And the response "data.attributes.name" is equal to "test-rum-{{ unique_hash }}" + And the response "data.attributes.product_scales.rum_event_processing_scale.state" is equal to "ALL" + And the response "data.attributes.product_scales.product_analytics_retention_scale.state" is equal to "NONE" + And the response "data.attributes.product_scales.rum_event_processing_scale" has field "last_modified_at" + And the response "data.attributes.product_scales.product_analytics_retention_scale" has field "last_modified_at" + + @skip-validation @team:DataDog/rum-backend + Scenario: Create a new RUM application with Product Scales returns "OK" response + Given new "CreateRUMApplication" request + 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"}} + When the request is sent + Then the response status is 200 OK + And the response "data.type" is equal to "rum_application" + And the response "data.attributes.name" is equal to "test-rum-with-product-scales-{{ unique_hash }}" + And the response "data.attributes.product_scales.rum_event_processing_scale.state" is equal to "ERROR_FOCUSED_MODE" + And the response "data.attributes.product_scales.product_analytics_retention_scale.state" is equal to "NONE" + And the response "data.attributes.product_scales.rum_event_processing_scale" has field "last_modified_at" + And the response "data.attributes.product_scales.product_analytics_retention_scale" has field "last_modified_at" @skip-validation @team:DataDog/rum-backend Scenario: Delete a RUM application returns "No Content" response @@ -75,6 +92,7 @@ Feature: RUM And the response "data.type" is equal to "rum_application" And the response "data.attributes.type" is equal to "ios" And the response "data.attributes.name" is equal to "test-rum-{{ unique_hash }}" + And the response "data.attributes" has field "product_scales" @generated @skip @team:DataDog/rum-backend Scenario: Get a list of RUM events returns "Bad Request" response @@ -109,6 +127,8 @@ Feature: RUM When the request is sent Then the response status is 200 OK And the response "data" has item with field "attributes.application_id" with value "{{ rum_application.data.id }}" + And the response "data" has item with field "attributes.product_scales.rum_event_processing_scale.state" with value "ALL" + And the response "data" has item with field "attributes.product_scales.product_analytics_retention_scale.state" with value "NONE" @generated @skip @team:DataDog/rum-backend Scenario: Search RUM events returns "Bad Request" response @@ -136,7 +156,7 @@ Feature: RUM Scenario: Update a RUM application returns "Bad Request" response Given new "UpdateRUMApplication" request And request contains "id" parameter from "REPLACE.ME" - 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"}} + 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"}} When the request is sent Then the response status is 400 Bad Request @@ -144,7 +164,7 @@ Feature: RUM Scenario: Update a RUM application returns "Not Found" response Given new "UpdateRUMApplication" request And request contains "id" parameter from "REPLACE.ME" - 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"}} + 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"}} When the request is sent Then the response status is 404 Not Found @@ -160,6 +180,10 @@ Feature: RUM And the response "data.attributes.application_id" is equal to "{{ rum_application.data.id }}" And the response "data.attributes.type" is equal to "browser" And the response "data.attributes.name" is equal to "updated_name_for_my_existing_rum_application" + And the response "data.attributes.product_scales.rum_event_processing_scale.state" is equal to "ALL" + And the response "data.attributes.product_scales.product_analytics_retention_scale.state" is equal to "NONE" + And the response "data.attributes.product_scales.rum_event_processing_scale" has field "last_modified_at" + And the response "data.attributes.product_scales.product_analytics_retention_scale" has field "last_modified_at" @skip-validation @team:DataDog/rum-backend Scenario: Update a RUM application returns "Unprocessable Entity." response @@ -169,3 +193,18 @@ Feature: RUM And body with value {"data": {"id": "this_id_will_not_match", "type": "rum_application_update"}} When the request is sent Then the response status is 422 Unprocessable Entity. + + @skip-validation @team:DataDog/rum-backend + Scenario: Update a RUM application with Product Scales returns "OK" response + Given there is a valid "rum_application" in the system + And new "UpdateRUMApplication" request + And request contains "id" parameter from "rum_application.data.id" + 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"}} + When the request is sent + Then the response status is 200 OK + And the response "data.type" is equal to "rum_application" + And the response "data.attributes.name" is equal to "updated_rum_with_product_scales" + And the response "data.attributes.product_scales.rum_event_processing_scale.state" is equal to "ALL" + And the response "data.attributes.product_scales.product_analytics_retention_scale.state" is equal to "MAX" + And the response "data.attributes.product_scales.rum_event_processing_scale" has field "last_modified_at" + And the response "data.attributes.product_scales.product_analytics_retention_scale" has field "last_modified_at" diff --git a/services/rum/src/v2/index.ts b/services/rum/src/v2/index.ts index cd652bd04f33..5b7e0e5596ce 100644 --- a/services/rum/src/v2/index.ts +++ b/services/rum/src/v2/index.ts @@ -39,12 +39,17 @@ export { RUMCompute } from "./models/RUMCompute"; export { RUMComputeType } from "./models/RUMComputeType"; export { RUMEvent } from "./models/RUMEvent"; export { RUMEventAttributes } from "./models/RUMEventAttributes"; +export { RUMEventProcessingScale } from "./models/RUMEventProcessingScale"; +export { RUMEventProcessingState } from "./models/RUMEventProcessingState"; export { RUMEventsResponse } from "./models/RUMEventsResponse"; export { RUMEventType } from "./models/RUMEventType"; export { RUMGroupBy } from "./models/RUMGroupBy"; export { RUMGroupByHistogram } from "./models/RUMGroupByHistogram"; export { RUMGroupByMissing } from "./models/RUMGroupByMissing"; export { RUMGroupByTotal } from "./models/RUMGroupByTotal"; +export { RUMProductAnalyticsRetentionScale } from "./models/RUMProductAnalyticsRetentionScale"; +export { RUMProductAnalyticsRetentionState } from "./models/RUMProductAnalyticsRetentionState"; +export { RUMProductScales } from "./models/RUMProductScales"; export { RUMQueryFilter } from "./models/RUMQueryFilter"; export { RUMQueryOptions } from "./models/RUMQueryOptions"; export { RUMQueryPageOptions } from "./models/RUMQueryPageOptions"; diff --git a/services/rum/src/v2/models/RUMApplicationAttributes.ts b/services/rum/src/v2/models/RUMApplicationAttributes.ts index b0e66a060652..278288418ef5 100644 --- a/services/rum/src/v2/models/RUMApplicationAttributes.ts +++ b/services/rum/src/v2/models/RUMApplicationAttributes.ts @@ -1,5 +1,7 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client"; +import { RUMProductScales } from "./RUMProductScales"; + /** * RUM application attributes. */ @@ -36,6 +38,10 @@ export class RUMApplicationAttributes { * Org ID of the RUM application. */ "orgId": number; + /** + * Product Scales configuration for the RUM application. + */ + "productScales"?: RUMProductScales; /** * Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`. */ @@ -103,6 +109,10 @@ export class RUMApplicationAttributes { required: true, format: "int32", }, + productScales: { + baseName: "product_scales", + type: "RUMProductScales", + }, type: { baseName: "type", type: "string", diff --git a/services/rum/src/v2/models/RUMApplicationCreateAttributes.ts b/services/rum/src/v2/models/RUMApplicationCreateAttributes.ts index c6358587c0de..65d4e7397dc2 100644 --- a/services/rum/src/v2/models/RUMApplicationCreateAttributes.ts +++ b/services/rum/src/v2/models/RUMApplicationCreateAttributes.ts @@ -1,5 +1,8 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client"; +import { RUMEventProcessingState } from "./RUMEventProcessingState"; +import { RUMProductAnalyticsRetentionState } from "./RUMProductAnalyticsRetentionState"; + /** * RUM application creation attributes. */ @@ -8,6 +11,14 @@ export class RUMApplicationCreateAttributes { * Name of the RUM application. */ "name": string; + /** + * Controls the retention policy for Product Analytics data derived from RUM events. + */ + "productAnalyticsRetentionState"?: RUMProductAnalyticsRetentionState; + /** + * Configures which RUM events are processed and stored for the application. + */ + "rumEventProcessingState"?: RUMEventProcessingState; /** * Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`. */ @@ -32,6 +43,14 @@ export class RUMApplicationCreateAttributes { type: "string", required: true, }, + productAnalyticsRetentionState: { + baseName: "product_analytics_retention_state", + type: "RUMProductAnalyticsRetentionState", + }, + rumEventProcessingState: { + baseName: "rum_event_processing_state", + type: "RUMEventProcessingState", + }, type: { baseName: "type", type: "string", diff --git a/services/rum/src/v2/models/RUMApplicationListAttributes.ts b/services/rum/src/v2/models/RUMApplicationListAttributes.ts index 54b3ebd54292..990cf84b2a65 100644 --- a/services/rum/src/v2/models/RUMApplicationListAttributes.ts +++ b/services/rum/src/v2/models/RUMApplicationListAttributes.ts @@ -1,5 +1,7 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client"; +import { RUMProductScales } from "./RUMProductScales"; + /** * RUM application list attributes. */ @@ -32,6 +34,10 @@ export class RUMApplicationListAttributes { * Org ID of the RUM application. */ "orgId": number; + /** + * Product Scales configuration for the RUM application. + */ + "productScales"?: RUMProductScales; /** * Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`. */ @@ -94,6 +100,10 @@ export class RUMApplicationListAttributes { required: true, format: "int32", }, + productScales: { + baseName: "product_scales", + type: "RUMProductScales", + }, type: { baseName: "type", type: "string", diff --git a/services/rum/src/v2/models/RUMApplicationUpdateAttributes.ts b/services/rum/src/v2/models/RUMApplicationUpdateAttributes.ts index 98ddf7fb0560..375f4ad8bc4b 100644 --- a/services/rum/src/v2/models/RUMApplicationUpdateAttributes.ts +++ b/services/rum/src/v2/models/RUMApplicationUpdateAttributes.ts @@ -1,5 +1,8 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client"; +import { RUMEventProcessingState } from "./RUMEventProcessingState"; +import { RUMProductAnalyticsRetentionState } from "./RUMProductAnalyticsRetentionState"; + /** * RUM application update attributes. */ @@ -8,6 +11,14 @@ export class RUMApplicationUpdateAttributes { * Name of the RUM application. */ "name"?: string; + /** + * Controls the retention policy for Product Analytics data derived from RUM events. + */ + "productAnalyticsRetentionState"?: RUMProductAnalyticsRetentionState; + /** + * Configures which RUM events are processed and stored for the application. + */ + "rumEventProcessingState"?: RUMEventProcessingState; /** * Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`, `roku`, `electron`, `unity`, `kotlin-multiplatform`. */ @@ -31,6 +42,14 @@ export class RUMApplicationUpdateAttributes { baseName: "name", type: "string", }, + productAnalyticsRetentionState: { + baseName: "product_analytics_retention_state", + type: "RUMProductAnalyticsRetentionState", + }, + rumEventProcessingState: { + baseName: "rum_event_processing_state", + type: "RUMEventProcessingState", + }, type: { baseName: "type", type: "string", diff --git a/services/rum/src/v2/models/RUMEventProcessingScale.ts b/services/rum/src/v2/models/RUMEventProcessingScale.ts new file mode 100644 index 000000000000..5f23ce3f49f5 --- /dev/null +++ b/services/rum/src/v2/models/RUMEventProcessingScale.ts @@ -0,0 +1,55 @@ +import { AttributeTypeMap } from "@datadog/datadog-api-client"; + +import { RUMEventProcessingState } from "./RUMEventProcessingState"; + +/** + * RUM event processing scale configuration. + */ +export class RUMEventProcessingScale { + /** + * Timestamp in milliseconds when this scale was last modified. + */ + "lastModifiedAt"?: number; + /** + * Configures which RUM events are processed and stored for the application. + */ + "state"?: RUMEventProcessingState; + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + lastModifiedAt: { + baseName: "last_modified_at", + type: "number", + format: "int64", + }, + state: { + baseName: "state", + type: "RUMEventProcessingState", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return RUMEventProcessingScale.attributeTypeMap; + } + + public constructor() {} +} diff --git a/services/rum/src/v2/models/RUMEventProcessingState.ts b/services/rum/src/v2/models/RUMEventProcessingState.ts new file mode 100644 index 000000000000..2504aee3a210 --- /dev/null +++ b/services/rum/src/v2/models/RUMEventProcessingState.ts @@ -0,0 +1,13 @@ +import { UnparsedObject } from "@datadog/datadog-api-client"; + +/** + * Configures which RUM events are processed and stored for the application. + */ +export type RUMEventProcessingState = + | typeof ALL + | typeof ERROR_FOCUSED_MODE + | typeof NONE + | UnparsedObject; +export const ALL = "ALL"; +export const ERROR_FOCUSED_MODE = "ERROR_FOCUSED_MODE"; +export const NONE = "NONE"; diff --git a/services/rum/src/v2/models/RUMProductAnalyticsRetentionScale.ts b/services/rum/src/v2/models/RUMProductAnalyticsRetentionScale.ts new file mode 100644 index 000000000000..8d294fb3f53f --- /dev/null +++ b/services/rum/src/v2/models/RUMProductAnalyticsRetentionScale.ts @@ -0,0 +1,55 @@ +import { AttributeTypeMap } from "@datadog/datadog-api-client"; + +import { RUMProductAnalyticsRetentionState } from "./RUMProductAnalyticsRetentionState"; + +/** + * Product Analytics retention scale configuration. + */ +export class RUMProductAnalyticsRetentionScale { + /** + * Timestamp in milliseconds when this scale was last modified. + */ + "lastModifiedAt"?: number; + /** + * Controls the retention policy for Product Analytics data derived from RUM events. + */ + "state"?: RUMProductAnalyticsRetentionState; + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + lastModifiedAt: { + baseName: "last_modified_at", + type: "number", + format: "int64", + }, + state: { + baseName: "state", + type: "RUMProductAnalyticsRetentionState", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return RUMProductAnalyticsRetentionScale.attributeTypeMap; + } + + public constructor() {} +} diff --git a/services/rum/src/v2/models/RUMProductAnalyticsRetentionState.ts b/services/rum/src/v2/models/RUMProductAnalyticsRetentionState.ts new file mode 100644 index 000000000000..11b7d49b9764 --- /dev/null +++ b/services/rum/src/v2/models/RUMProductAnalyticsRetentionState.ts @@ -0,0 +1,11 @@ +import { UnparsedObject } from "@datadog/datadog-api-client"; + +/** + * Controls the retention policy for Product Analytics data derived from RUM events. + */ +export type RUMProductAnalyticsRetentionState = + | typeof MAX + | typeof NONE + | UnparsedObject; +export const MAX = "MAX"; +export const NONE = "NONE"; diff --git a/services/rum/src/v2/models/RUMProductScales.ts b/services/rum/src/v2/models/RUMProductScales.ts new file mode 100644 index 000000000000..e0ab215389ab --- /dev/null +++ b/services/rum/src/v2/models/RUMProductScales.ts @@ -0,0 +1,55 @@ +import { AttributeTypeMap } from "@datadog/datadog-api-client"; + +import { RUMEventProcessingScale } from "./RUMEventProcessingScale"; +import { RUMProductAnalyticsRetentionScale } from "./RUMProductAnalyticsRetentionScale"; + +/** + * Product Scales configuration for the RUM application. + */ +export class RUMProductScales { + /** + * Product Analytics retention scale configuration. + */ + "productAnalyticsRetentionScale"?: RUMProductAnalyticsRetentionScale; + /** + * RUM event processing scale configuration. + */ + "rumEventProcessingScale"?: RUMEventProcessingScale; + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + productAnalyticsRetentionScale: { + baseName: "product_analytics_retention_scale", + type: "RUMProductAnalyticsRetentionScale", + }, + rumEventProcessingScale: { + baseName: "rum_event_processing_scale", + type: "RUMEventProcessingScale", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return RUMProductScales.attributeTypeMap; + } + + public constructor() {} +} diff --git a/services/rum/src/v2/models/TypingInfo.ts b/services/rum/src/v2/models/TypingInfo.ts index b35b0ab60eb5..a36dc47f63f2 100644 --- a/services/rum/src/v2/models/TypingInfo.ts +++ b/services/rum/src/v2/models/TypingInfo.ts @@ -22,9 +22,12 @@ import { RUMBucketResponse } from "./RUMBucketResponse"; import { RUMCompute } from "./RUMCompute"; import { RUMEvent } from "./RUMEvent"; import { RUMEventAttributes } from "./RUMEventAttributes"; +import { RUMEventProcessingScale } from "./RUMEventProcessingScale"; import { RUMEventsResponse } from "./RUMEventsResponse"; import { RUMGroupBy } from "./RUMGroupBy"; import { RUMGroupByHistogram } from "./RUMGroupByHistogram"; +import { RUMProductAnalyticsRetentionScale } from "./RUMProductAnalyticsRetentionScale"; +import { RUMProductScales } from "./RUMProductScales"; import { RUMQueryFilter } from "./RUMQueryFilter"; import { RUMQueryOptions } from "./RUMQueryOptions"; import { RUMQueryPageOptions } from "./RUMQueryPageOptions"; @@ -56,7 +59,9 @@ export const TypingInfo: ModelTypingInfo = { RUMApplicationType: ["rum_application"], RUMApplicationUpdateType: ["rum_application_update"], RUMComputeType: ["timeseries", "total"], + RUMEventProcessingState: ["ALL", "ERROR_FOCUSED_MODE", "NONE"], RUMEventType: ["rum"], + RUMProductAnalyticsRetentionState: ["MAX", "NONE"], RUMResponseStatus: ["done", "timeout"], RUMSort: ["timestamp", "-timestamp"], RUMSortOrder: ["asc", "desc"], @@ -94,9 +99,12 @@ export const TypingInfo: ModelTypingInfo = { RUMCompute: RUMCompute, RUMEvent: RUMEvent, RUMEventAttributes: RUMEventAttributes, + RUMEventProcessingScale: RUMEventProcessingScale, RUMEventsResponse: RUMEventsResponse, RUMGroupBy: RUMGroupBy, RUMGroupByHistogram: RUMGroupByHistogram, + RUMProductAnalyticsRetentionScale: RUMProductAnalyticsRetentionScale, + RUMProductScales: RUMProductScales, RUMQueryFilter: RUMQueryFilter, RUMQueryOptions: RUMQueryOptions, RUMQueryPageOptions: RUMQueryPageOptions,