Skip to content

Commit 3072502

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Use correct metric name for rum based metric tests (#1930)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 9d1f921 commit 3072502

File tree

26 files changed

+172
-172
lines changed

26 files changed

+172
-172
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-12-04 19:20:49.803898",
8-
"spec_repo_commit": "2b956c71"
7+
"regenerated": "2024-12-05 14:55:55.221483",
8+
"spec_repo_commit": "cfc6b497"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-04 19:20:49.822705",
13-
"spec_repo_commit": "2b956c71"
12+
"regenerated": "2024-12-05 14:55:55.240720",
13+
"spec_repo_commit": "cfc6b497"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-10-29T11:59:19.714Z"
1+
"2024-11-28T15:31:17.723Z"

cassettes/v2/Rum-Metrics_1429235046/Create-a-rum-based-metric-returns-Bad-Request-response_3078620488/recording.har

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
"status": 400,
5858
"statusText": "Bad Request"
5959
},
60-
"startedDateTime": "2024-10-29T11:59:19.722Z",
61-
"time": 427
60+
"startedDateTime": "2024-11-28T15:31:17.734Z",
61+
"time": 420
6262
}
6363
],
6464
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-10-29T11:59:20.162Z"
1+
"2024-11-28T15:31:18.166Z"

cassettes/v2/Rum-Metrics_1429235046/Create-a-rum-based-metric-returns-Conflict-response_700800582/recording.har

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "2a6602f7aa7e35beefd354decce6d54a",
11+
"_id": "ce744ac5145eeb81ed26b24d00a1d475",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 426,
15+
"bodySize": 417,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"compute\":{\"aggregation_type\":\"distribution\",\"include_percentiles\":true,\"path\":\"@duration\"},\"event_type\":\"session\",\"filter\":{\"query\":\"source:Test-Create_a_rum_based_metric_returns_Conflict_response-1730203160\"},\"group_by\":[{\"path\":\"@browser.name\",\"tag_name\":\"browser_name\"}],\"uniqueness\":{\"when\":\"match\"}},\"id\":\"Test-Create_a_rum_based_metric_returns_Conflict_response-1730203160\",\"type\":\"rum_metrics\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"compute\":{\"aggregation_type\":\"distribution\",\"include_percentiles\":true,\"path\":\"@duration\"},\"event_type\":\"session\",\"filter\":{\"query\":\"source:Test-Create_a_rum_based_metric_returns_Conflict_response-1732807878\"},\"group_by\":[{\"path\":\"@browser.name\",\"tag_name\":\"browser_name\"}],\"uniqueness\":{\"when\":\"match\"}},\"id\":\"testcreatearumbasedmetricreturnsconflictresponse1732807878\",\"type\":\"rum_metrics\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/rum/config/metrics"
3939
},
4040
"response": {
41-
"bodySize": 426,
41+
"bodySize": 417,
4242
"content": {
4343
"mimeType": "application/vnd.api+json",
44-
"size": 426,
45-
"text": "{\"data\":{\"id\":\"Test_Create_a_rum_based_metric_returns_Conflict_response_1730203160\",\"type\":\"rum_metrics\",\"attributes\":{\"compute\":{\"aggregation_type\":\"distribution\",\"include_percentiles\":true,\"path\":\"@duration\"},\"event_type\":\"session\",\"filter\":{\"query\":\"source:Test-Create_a_rum_based_metric_returns_Conflict_response-1730203160\"},\"group_by\":[{\"path\":\"@browser.name\",\"tag_name\":\"browser_name\"}],\"uniqueness\":{\"when\":\"match\"}}}}"
44+
"size": 417,
45+
"text": "{\"data\":{\"id\":\"testcreatearumbasedmetricreturnsconflictresponse1732807878\",\"type\":\"rum_metrics\",\"attributes\":{\"compute\":{\"aggregation_type\":\"distribution\",\"include_percentiles\":true,\"path\":\"@duration\"},\"event_type\":\"session\",\"filter\":{\"query\":\"source:Test-Create_a_rum_based_metric_returns_Conflict_response-1732807878\"},\"group_by\":[{\"path\":\"@browser.name\",\"tag_name\":\"browser_name\"}],\"uniqueness\":{\"when\":\"match\"}}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,15 +57,15 @@
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2024-10-29T11:59:20.167Z",
61-
"time": 563
60+
"startedDateTime": "2024-11-28T15:31:18.171Z",
61+
"time": 483
6262
},
6363
{
64-
"_id": "0b463238da04e25162927c2144cefd67",
64+
"_id": "c3a3e4c1d20ae3f22aaf0bcc6df34957",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
68-
"bodySize": 182,
68+
"bodySize": 173,
6969
"cookies": [],
7070
"headers": [
7171
{
@@ -85,17 +85,17 @@
8585
"postData": {
8686
"mimeType": "application/json",
8787
"params": [],
88-
"text": "{\"data\":{\"attributes\":{\"compute\":{\"aggregation_type\":\"count\"},\"event_type\":\"action\"},\"id\":\"Test_Create_a_rum_based_metric_returns_Conflict_response_1730203160\",\"type\":\"rum_metrics\"}}"
88+
"text": "{\"data\":{\"attributes\":{\"compute\":{\"aggregation_type\":\"count\"},\"event_type\":\"action\"},\"id\":\"testcreatearumbasedmetricreturnsconflictresponse1732807878\",\"type\":\"rum_metrics\"}}"
8989
},
9090
"queryString": [],
9191
"url": "https://api.datadoghq.com/api/v2/rum/config/metrics"
9292
},
9393
"response": {
94-
"bodySize": 237,
94+
"bodySize": 228,
9595
"content": {
9696
"mimeType": "application/vnd.api+json",
97-
"size": 237,
98-
"text": "{\"errors\":[{\"status\":\"409\",\"title\":\"Conflict\",\"detail\":\"conflict(Field 'data.id' is invalid: 'Test_Create_a_rum_based_metric_returns_Conflict_response_1730203160' cannot be used as metric name, a metric already exists with that name)\"}]}"
97+
"size": 228,
98+
"text": "{\"errors\":[{\"status\":\"409\",\"title\":\"Conflict\",\"detail\":\"conflict(Field 'data.id' is invalid: 'testcreatearumbasedmetricreturnsconflictresponse1732807878' cannot be used as metric name, a metric already exists with that name)\"}]}"
9999
},
100100
"cookies": [],
101101
"headers": [
@@ -110,11 +110,11 @@
110110
"status": 409,
111111
"statusText": "Conflict"
112112
},
113-
"startedDateTime": "2024-10-29T11:59:20.738Z",
114-
"time": 301
113+
"startedDateTime": "2024-11-28T15:31:18.663Z",
114+
"time": 305
115115
},
116116
{
117-
"_id": "dd0c47ded3cdda09899a1b5c9bde3ddf",
117+
"_id": "6e3a0d4bb63e9dc89da8cf0af190715a",
118118
"_order": 0,
119119
"cache": {},
120120
"request": {
@@ -127,11 +127,11 @@
127127
"value": "*/*"
128128
}
129129
],
130-
"headersSize": 572,
130+
"headersSize": 563,
131131
"httpVersion": "HTTP/1.1",
132132
"method": "DELETE",
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v2/rum/config/metrics/Test_Create_a_rum_based_metric_returns_Conflict_response_1730203160"
134+
"url": "https://api.datadoghq.com/api/v2/rum/config/metrics/testcreatearumbasedmetricreturnsconflictresponse1732807878"
135135
},
136136
"response": {
137137
"bodySize": 0,
@@ -147,8 +147,8 @@
147147
"status": 204,
148148
"statusText": "No Content"
149149
},
150-
"startedDateTime": "2024-10-29T11:59:21.045Z",
151-
"time": 398
150+
"startedDateTime": "2024-11-28T15:31:18.977Z",
151+
"time": 401
152152
}
153153
],
154154
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-10-29T11:59:21.453Z"
1+
"2024-11-28T15:31:19.388Z"

cassettes/v2/Rum-Metrics_1429235046/Create-a-rum-based-metric-returns-Created-response_2855752018/recording.har

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2024-10-29T11:59:21.457Z",
61-
"time": 513
60+
"startedDateTime": "2024-11-28T15:31:19.392Z",
61+
"time": 428
6262
},
6363
{
6464
"_id": "f43cd3bd54eab63671dcc9e06bea290c",
@@ -94,8 +94,8 @@
9494
"status": 204,
9595
"statusText": "No Content"
9696
},
97-
"startedDateTime": "2024-10-29T11:59:21.979Z",
98-
"time": 305
97+
"startedDateTime": "2024-11-28T15:31:19.829Z",
98+
"time": 317
9999
}
100100
],
101101
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-10-29T11:59:22.291Z"
1+
"2024-11-28T15:31:20.155Z"

cassettes/v2/Rum-Metrics_1429235046/Delete-a-rum-based-metric-returns-No-Content-response_1434409847/recording.har

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "6f9c59289dbded8d9596d137c94d59c1",
11+
"_id": "b88bbfdef035ba1bfc776825569e72e6",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 430,
15+
"bodySize": 420,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"compute\":{\"aggregation_type\":\"distribution\",\"include_percentiles\":true,\"path\":\"@duration\"},\"event_type\":\"session\",\"filter\":{\"query\":\"source:Test-Delete_a_rum_based_metric_returns_No_Content_response-1730203162\"},\"group_by\":[{\"path\":\"@browser.name\",\"tag_name\":\"browser_name\"}],\"uniqueness\":{\"when\":\"match\"}},\"id\":\"Test-Delete_a_rum_based_metric_returns_No_Content_response-1730203162\",\"type\":\"rum_metrics\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"compute\":{\"aggregation_type\":\"distribution\",\"include_percentiles\":true,\"path\":\"@duration\"},\"event_type\":\"session\",\"filter\":{\"query\":\"source:Test-Delete_a_rum_based_metric_returns_No_Content_response-1732807880\"},\"group_by\":[{\"path\":\"@browser.name\",\"tag_name\":\"browser_name\"}],\"uniqueness\":{\"when\":\"match\"}},\"id\":\"testdeletearumbasedmetricreturnsnocontentresponse1732807880\",\"type\":\"rum_metrics\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/rum/config/metrics"
3939
},
4040
"response": {
41-
"bodySize": 430,
41+
"bodySize": 420,
4242
"content": {
4343
"mimeType": "application/vnd.api+json",
44-
"size": 430,
45-
"text": "{\"data\":{\"id\":\"Test_Delete_a_rum_based_metric_returns_No_Content_response_1730203162\",\"type\":\"rum_metrics\",\"attributes\":{\"compute\":{\"aggregation_type\":\"distribution\",\"include_percentiles\":true,\"path\":\"@duration\"},\"event_type\":\"session\",\"filter\":{\"query\":\"source:Test-Delete_a_rum_based_metric_returns_No_Content_response-1730203162\"},\"group_by\":[{\"path\":\"@browser.name\",\"tag_name\":\"browser_name\"}],\"uniqueness\":{\"when\":\"match\"}}}}"
44+
"size": 420,
45+
"text": "{\"data\":{\"id\":\"testdeletearumbasedmetricreturnsnocontentresponse1732807880\",\"type\":\"rum_metrics\",\"attributes\":{\"compute\":{\"aggregation_type\":\"distribution\",\"include_percentiles\":true,\"path\":\"@duration\"},\"event_type\":\"session\",\"filter\":{\"query\":\"source:Test-Delete_a_rum_based_metric_returns_No_Content_response-1732807880\"},\"group_by\":[{\"path\":\"@browser.name\",\"tag_name\":\"browser_name\"}],\"uniqueness\":{\"when\":\"match\"}}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2024-10-29T11:59:22.295Z",
61-
"time": 521
60+
"startedDateTime": "2024-11-28T15:31:20.162Z",
61+
"time": 616
6262
},
6363
{
64-
"_id": "8d4567a422c035bfe51b749fa0eb0b4b",
64+
"_id": "d52b4c53297e4084c6b2aa19f4e45e38",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -74,11 +74,11 @@
7474
"value": "*/*"
7575
}
7676
],
77-
"headersSize": 574,
77+
"headersSize": 564,
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/rum/config/metrics/Test_Delete_a_rum_based_metric_returns_No_Content_response_1730203162"
81+
"url": "https://api.datadoghq.com/api/v2/rum/config/metrics/testdeletearumbasedmetricreturnsnocontentresponse1732807880"
8282
},
8383
"response": {
8484
"bodySize": 0,
@@ -94,11 +94,11 @@
9494
"status": 204,
9595
"statusText": "No Content"
9696
},
97-
"startedDateTime": "2024-10-29T11:59:22.823Z",
98-
"time": 297
97+
"startedDateTime": "2024-11-28T15:31:20.786Z",
98+
"time": 315
9999
},
100100
{
101-
"_id": "8d4567a422c035bfe51b749fa0eb0b4b",
101+
"_id": "d52b4c53297e4084c6b2aa19f4e45e38",
102102
"_order": 1,
103103
"cache": {},
104104
"request": {
@@ -111,18 +111,18 @@
111111
"value": "*/*"
112112
}
113113
],
114-
"headersSize": 574,
114+
"headersSize": 564,
115115
"httpVersion": "HTTP/1.1",
116116
"method": "DELETE",
117117
"queryString": [],
118-
"url": "https://api.datadoghq.com/api/v2/rum/config/metrics/Test_Delete_a_rum_based_metric_returns_No_Content_response_1730203162"
118+
"url": "https://api.datadoghq.com/api/v2/rum/config/metrics/testdeletearumbasedmetricreturnsnocontentresponse1732807880"
119119
},
120120
"response": {
121-
"bodySize": 170,
121+
"bodySize": 160,
122122
"content": {
123123
"mimeType": "application/vnd.api+json",
124-
"size": 170,
125-
"text": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\",\"detail\":\"not_found(Metric with name 'Test_Delete_a_rum_based_metric_returns_No_Content_response_1730203162' not found)\"}]}"
124+
"size": 160,
125+
"text": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\",\"detail\":\"not_found(Metric with name 'testdeletearumbasedmetricreturnsnocontentresponse1732807880' not found)\"}]}"
126126
},
127127
"cookies": [],
128128
"headers": [
@@ -137,8 +137,8 @@
137137
"status": 404,
138138
"statusText": "Not Found"
139139
},
140-
"startedDateTime": "2024-10-29T11:59:23.128Z",
141-
"time": 306
140+
"startedDateTime": "2024-11-28T15:31:21.108Z",
141+
"time": 308
142142
}
143143
],
144144
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-10-29T11:59:23.441Z"
1+
"2024-11-28T15:31:21.433Z"

0 commit comments

Comments
 (0)