Skip to content

Commit 07f82a0

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

23 files changed

+53
-53
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:44.277382",
8-
"spec_repo_commit": "2b956c71"
7+
"regenerated": "2024-12-05 14:55:59.677376",
8+
"spec_repo_commit": "cfc6b497"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-04 19:20:44.295528",
13-
"spec_repo_commit": "2b956c71"
12+
"regenerated": "2024-12-05 14:55:59.695460",
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

tests/v2/cassettes/test_scenarios/test_create_a_rumbased_metric_returns_conflict_response.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"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"}}'
3+
body: '{"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"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,15 +10,15 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/rum/config/metrics
1111
response:
1212
body:
13-
string: '{"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"}}}}'
13+
string: '{"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"}}}}'
1414
headers:
1515
content-type:
1616
- application/vnd.api+json
1717
status:
1818
code: 201
1919
message: Created
2020
- request:
21-
body: '{"data":{"attributes":{"compute":{"aggregation_type":"count"},"event_type":"action"},"id":"Test_Create_a_rum_based_metric_returns_Conflict_response_1730203160","type":"rum_metrics"}}'
21+
body: '{"data":{"attributes":{"compute":{"aggregation_type":"count"},"event_type":"action"},"id":"testcreatearumbasedmetricreturnsconflictresponse1732807878","type":"rum_metrics"}}'
2222
headers:
2323
accept:
2424
- application/json
@@ -29,7 +29,7 @@ interactions:
2929
response:
3030
body:
3131
string: '{"errors":[{"status":"409","title":"Conflict","detail":"conflict(Field
32-
''data.id'' is invalid: ''Test_Create_a_rum_based_metric_returns_Conflict_response_1730203160''
32+
''data.id'' is invalid: ''testcreatearumbasedmetricreturnsconflictresponse1732807878''
3333
cannot be used as metric name, a metric already exists with that name)"}]}'
3434
headers:
3535
content-type:
@@ -43,7 +43,7 @@ interactions:
4343
accept:
4444
- '*/*'
4545
method: DELETE
46-
uri: https://api.datadoghq.com/api/v2/rum/config/metrics/Test_Create_a_rum_based_metric_returns_Conflict_response_1730203160
46+
uri: https://api.datadoghq.com/api/v2/rum/config/metrics/testcreatearumbasedmetricreturnsconflictresponse1732807878
4747
response:
4848
body:
4949
string: ''
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

tests/v2/cassettes/test_scenarios/test_delete_a_rumbased_metric_returns_no_content_response.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"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"}}'
3+
body: '{"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"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,7 +10,7 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/rum/config/metrics
1111
response:
1212
body:
13-
string: '{"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"}}}}'
13+
string: '{"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"}}}}'
1414
headers:
1515
content-type:
1616
- application/vnd.api+json
@@ -23,7 +23,7 @@ interactions:
2323
accept:
2424
- '*/*'
2525
method: DELETE
26-
uri: https://api.datadoghq.com/api/v2/rum/config/metrics/Test_Delete_a_rum_based_metric_returns_No_Content_response_1730203162
26+
uri: https://api.datadoghq.com/api/v2/rum/config/metrics/testdeletearumbasedmetricreturnsnocontentresponse1732807880
2727
response:
2828
body:
2929
string: ''
@@ -37,11 +37,11 @@ interactions:
3737
accept:
3838
- '*/*'
3939
method: DELETE
40-
uri: https://api.datadoghq.com/api/v2/rum/config/metrics/Test_Delete_a_rum_based_metric_returns_No_Content_response_1730203162
40+
uri: https://api.datadoghq.com/api/v2/rum/config/metrics/testdeletearumbasedmetricreturnsnocontentresponse1732807880
4141
response:
4242
body:
4343
string: '{"errors":[{"status":"404","title":"Not Found","detail":"not_found(Metric
44-
with name ''Test_Delete_a_rum_based_metric_returns_No_Content_response_1730203162''
44+
with name ''testdeletearumbasedmetricreturnsnocontentresponse1732807880''
4545
not found)"}]}'
4646
headers:
4747
content-type:
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

tests/v2/cassettes/test_scenarios/test_delete_a_rumbased_metric_returns_not_found_response.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ interactions:
55
accept:
66
- '*/*'
77
method: DELETE
8-
uri: https://api.datadoghq.com/api/v2/rum/config/metrics/Test-Delete_a_rum_based_metric_returns_Not_Found_response-1730203163
8+
uri: https://api.datadoghq.com/api/v2/rum/config/metrics/Test-Delete_a_rum_based_metric_returns_Not_Found_response-1732807881
99
response:
1010
body:
1111
string: '{"errors":[{"status":"404","title":"Not Found","detail":"not_found(Metric
12-
with name ''Test-Delete_a_rum_based_metric_returns_Not_Found_response-1730203163''
12+
with name ''Test-Delete_a_rum_based_metric_returns_Not_Found_response-1732807881''
1313
not found)"}]}'
1414
headers:
1515
content-type:
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)