Skip to content

Commit 8ab6109

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Use correct metric name for rum based metric tests (#2591)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent ce272a3 commit 8ab6109

23 files changed

+75
-75
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:40.349936",
8-
"spec_repo_commit": "2b956c71"
7+
"regenerated": "2024-12-05 14:56:06.302730",
8+
"spec_repo_commit": "cfc6b497"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-04 19:20:40.369067",
13-
"spec_repo_commit": "2b956c71"
12+
"regenerated": "2024-12-05 14:56:06.322740",
13+
"spec_repo_commit": "cfc6b497"
1414
}
1515
}
1616
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-10-29T11:59:19.714Z
1+
2024-11-28T15:31:17.723Z
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-10-29T11:59:20.162Z
1+
2024-11-28T15:31:18.166Z

src/test/resources/cassettes/features/v2/Create_a_rum_based_metric_returns_Conflict_response.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"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\"}}"
6+
"json": "{\"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\"}}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"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\"}}}}",
15+
"body": "{\"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\"}}}}",
1616
"headers": {
1717
"Content-Type": [
1818
"application/vnd.api+json"
@@ -27,13 +27,13 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "2a6602f7-aa7e-35be-efd3-54decce6d54a"
30+
"id": "ce744ac5-145e-eb81-ed26-b24d00a1d475"
3131
},
3232
{
3333
"httpRequest": {
3434
"body": {
3535
"type": "JSON",
36-
"json": "{\"data\":{\"attributes\":{\"compute\":{\"aggregation_type\":\"count\"},\"event_type\":\"action\"},\"id\":\"Test_Create_a_rum_based_metric_returns_Conflict_response_1730203160\",\"type\":\"rum_metrics\"}}"
36+
"json": "{\"data\":{\"attributes\":{\"compute\":{\"aggregation_type\":\"count\"},\"event_type\":\"action\"},\"id\":\"testcreatearumbasedmetricreturnsconflictresponse1732807878\",\"type\":\"rum_metrics\"}}"
3737
},
3838
"headers": {},
3939
"method": "POST",
@@ -42,7 +42,7 @@
4242
"secure": true
4343
},
4444
"httpResponse": {
45-
"body": "{\"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)\"}]}",
45+
"body": "{\"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)\"}]}",
4646
"headers": {
4747
"Content-Type": [
4848
"application/vnd.api+json"
@@ -57,13 +57,13 @@
5757
"timeToLive": {
5858
"unlimited": true
5959
},
60-
"id": "0b463238-da04-e251-6292-7c2144cefd67"
60+
"id": "c3a3e4c1-d20a-e3f2-2aaf-0bcc6df34957"
6161
},
6262
{
6363
"httpRequest": {
6464
"headers": {},
6565
"method": "DELETE",
66-
"path": "/api/v2/rum/config/metrics/Test_Create_a_rum_based_metric_returns_Conflict_response_1730203160",
66+
"path": "/api/v2/rum/config/metrics/testcreatearumbasedmetricreturnsconflictresponse1732807878",
6767
"keepAlive": false,
6868
"secure": true
6969
},
@@ -78,6 +78,6 @@
7878
"timeToLive": {
7979
"unlimited": true
8080
},
81-
"id": "dd0c47de-d3cd-da09-899a-1b5c9bde3ddf"
81+
"id": "6e3a0d4b-b63e-9dc8-9da8-cf0af190715a"
8282
}
8383
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-10-29T11:59:21.453Z
1+
2024-11-28T15:31:19.388Z
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-10-29T11:59:22.291Z
1+
2024-11-28T15:31:20.155Z

src/test/resources/cassettes/features/v2/Delete_a_rum_based_metric_returns_No_Content_response.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"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\"}}"
6+
"json": "{\"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\"}}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"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\"}}}}",
15+
"body": "{\"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\"}}}}",
1616
"headers": {
1717
"Content-Type": [
1818
"application/vnd.api+json"
@@ -27,13 +27,13 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "6f9c5928-9dbd-ed8d-9596-d137c94d59c1"
30+
"id": "b88bbfde-f035-ba1b-fc77-6825569e72e6"
3131
},
3232
{
3333
"httpRequest": {
3434
"headers": {},
3535
"method": "DELETE",
36-
"path": "/api/v2/rum/config/metrics/Test_Delete_a_rum_based_metric_returns_No_Content_response_1730203162",
36+
"path": "/api/v2/rum/config/metrics/testdeletearumbasedmetricreturnsnocontentresponse1732807880",
3737
"keepAlive": false,
3838
"secure": true
3939
},
@@ -48,18 +48,18 @@
4848
"timeToLive": {
4949
"unlimited": true
5050
},
51-
"id": "8d4567a4-22c0-35bf-e51b-749fa0eb0b4b"
51+
"id": "d52b4c53-297e-4084-c6b2-aa19f4e45e38"
5252
},
5353
{
5454
"httpRequest": {
5555
"headers": {},
5656
"method": "DELETE",
57-
"path": "/api/v2/rum/config/metrics/Test_Delete_a_rum_based_metric_returns_No_Content_response_1730203162",
57+
"path": "/api/v2/rum/config/metrics/testdeletearumbasedmetricreturnsnocontentresponse1732807880",
5858
"keepAlive": false,
5959
"secure": true
6060
},
6161
"httpResponse": {
62-
"body": "{\"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)\"}]}",
62+
"body": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\",\"detail\":\"not_found(Metric with name 'testdeletearumbasedmetricreturnsnocontentresponse1732807880' not found)\"}]}",
6363
"headers": {
6464
"Content-Type": [
6565
"application/vnd.api+json"
@@ -74,6 +74,6 @@
7474
"timeToLive": {
7575
"unlimited": true
7676
},
77-
"id": "8d4567a4-22c0-35bf-e51b-749fa0eb0b4c"
77+
"id": "d52b4c53-297e-4084-c6b2-aa19f4e45e39"
7878
}
7979
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-10-29T11:59:23.441Z
1+
2024-11-28T15:31:21.433Z

src/test/resources/cassettes/features/v2/Delete_a_rum_based_metric_returns_Not_Found_response.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"httpRequest": {
44
"headers": {},
55
"method": "DELETE",
6-
"path": "/api/v2/rum/config/metrics/Test-Delete_a_rum_based_metric_returns_Not_Found_response-1730203163",
6+
"path": "/api/v2/rum/config/metrics/Test-Delete_a_rum_based_metric_returns_Not_Found_response-1732807881",
77
"keepAlive": false,
88
"secure": true
99
},
1010
"httpResponse": {
11-
"body": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\",\"detail\":\"not_found(Metric with name 'Test-Delete_a_rum_based_metric_returns_Not_Found_response-1730203163' not found)\"}]}",
11+
"body": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\",\"detail\":\"not_found(Metric with name 'Test-Delete_a_rum_based_metric_returns_Not_Found_response-1732807881' not found)\"}]}",
1212
"headers": {
1313
"Content-Type": [
1414
"application/vnd.api+json"
@@ -23,6 +23,6 @@
2323
"timeToLive": {
2424
"unlimited": true
2525
},
26-
"id": "11da52f4-7492-c7a8-b294-e1779c412d9f"
26+
"id": "36b2b882-82c2-8774-699a-69cbd7103455"
2727
}
2828
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-10-29T11:59:23.838Z
1+
2024-11-28T15:31:21.847Z

0 commit comments

Comments
 (0)