Skip to content

Commit f9f7feb

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix logs metrics cassettes (#1510)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 39aac1b commit f9f7feb

File tree

25 files changed

+103
-180
lines changed

25 files changed

+103
-180
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.4",
7-
"regenerated": "2023-06-06 18:38:45.076485",
8-
"spec_repo_commit": "26e48ac5"
7+
"regenerated": "2023-06-07 12:15:32.988435",
8+
"spec_repo_commit": "a80d1dae"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-06-06 18:38:45.094631",
13-
"spec_repo_commit": "26e48ac5"
12+
"regenerated": "2023-06-07 12:15:33.004364",
13+
"spec_repo_commit": "a80d1dae"
1414
}
1515
}
1616
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-02-24T19:02:01.538Z
1+
2023-06-07T11:54:15.336Z
Lines changed: 7 additions & 9 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"}},"id":"TestCreatealogbasedmetricreturnsOKresponse1677265321","type":"logs_metrics"}}'
3+
body: '{"data":{"attributes":{"compute":{"aggregation_type":"distribution","include_percentiles":true,"path":"@duration"}},"id":"TestCreatealogbasedmetricreturnsOKresponse1686138855","type":"logs_metrics"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,7 +10,7 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/logs/config/metrics
1111
response:
1212
body:
13-
string: '{"data":{"id":"TestCreatealogbasedmetricreturnsOKresponse1677265321","attributes":{"filter":{"query":"*"},"group_by":[],"compute":{"aggregation_type":"distribution","path":"@duration","include_percentiles":true}},"type":"logs_metrics"}}
13+
string: '{"data":{"id":"TestCreatealogbasedmetricreturnsOKresponse1686138855","attributes":{"filter":{"query":"*"},"group_by":[],"compute":{"aggregation_type":"distribution","path":"@duration","include_percentiles":true}},"type":"logs_metrics"}}
1414
1515
'
1616
headers:
@@ -25,16 +25,14 @@ interactions:
2525
accept:
2626
- '*/*'
2727
method: DELETE
28-
uri: https://api.datadoghq.com/api/v2/logs/config/metrics/TestCreatealogbasedmetricreturnsOKresponse1677265321
28+
uri: https://api.datadoghq.com/api/v2/logs/config/metrics/TestCreatealogbasedmetricreturnsOKresponse1686138855
2929
response:
3030
body:
31-
string: '{}
32-
33-
'
31+
string: ''
3432
headers:
3533
content-type:
36-
- application/json
34+
- text/html; charset=utf-8
3735
status:
38-
code: 200
39-
message: OK
36+
code: 204
37+
message: No Content
4038
version: 1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-03-28T14:55:24.186Z
1+
2023-06-07T12:04:58.134Z

tests/v2/cassettes/test_scenarios/test_create_a_spanbased_metric_returns_ok_response.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: '{"data":{"attributes":{"compute":{"aggregation_type":"distribution","include_percentiles":false,"path":"@duration"},"filter":{"query":"@http.status_code:200
4-
service:my-service"},"group_by":[{"path":"resource_name","tag_name":"resource_name"}]},"id":"TestCreateaspanbasedmetricreturnsOKresponse1680015324","type":"spans_metrics"}}'
4+
service:my-service"},"group_by":[{"path":"resource_name","tag_name":"resource_name"}]},"id":"TestCreateaspanbasedmetricreturnsOKresponse1686139498","type":"spans_metrics"}}'
55
headers:
66
accept:
77
- application/json
@@ -11,7 +11,7 @@ interactions:
1111
uri: https://api.datadoghq.com/api/v2/apm/config/metrics
1212
response:
1313
body:
14-
string: '{"data":{"id":"TestCreateaspanbasedmetricreturnsOKresponse1680015324","attributes":{"filter":{"query":"@http.status_code:200
14+
string: '{"data":{"id":"TestCreateaspanbasedmetricreturnsOKresponse1686139498","attributes":{"filter":{"query":"@http.status_code:200
1515
service:my-service"},"group_by":[{"path":"resource_name","tag_name":"resource_name"}],"compute":{"aggregation_type":"distribution","path":"@duration","include_percentiles":false}},"type":"spans_metrics"}}
1616
1717
'
@@ -27,16 +27,14 @@ interactions:
2727
accept:
2828
- '*/*'
2929
method: DELETE
30-
uri: https://api.datadoghq.com/api/v2/apm/config/metrics/TestCreateaspanbasedmetricreturnsOKresponse1680015324
30+
uri: https://api.datadoghq.com/api/v2/apm/config/metrics/TestCreateaspanbasedmetricreturnsOKresponse1686139498
3131
response:
3232
body:
33-
string: '{}
34-
35-
'
33+
string: ''
3634
headers:
3735
content-type:
38-
- application/json
36+
- text/html; charset=utf-8
3937
status:
40-
code: 200
41-
message: OK
38+
code: 204
39+
message: No Content
4240
version: 1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-05-12T09:52:25.260Z
1+
2023-06-07T11:58:04.048Z

tests/v2/cassettes/test_scenarios/test_get_a_logbased_metric_returns_ok_response.yaml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"compute":{"aggregation_type":"count"},"filter":{"query":"source:Test-Get_a_log_based_metric_returns_OK_response-1652349145"}},"id":"Test-Get_a_log_based_metric_returns_OK_response-1652349145","type":"logs_metrics"}}'
3+
body: '{"data":{"attributes":{"compute":{"aggregation_type":"count"},"filter":{"query":"source:Test-Get_a_log_based_metric_returns_OK_response-1686139084"}},"id":"Test-Get_a_log_based_metric_returns_OK_response-1686139084","type":"logs_metrics"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,7 +10,9 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/logs/config/metrics
1111
response:
1212
body:
13-
string: '{"data":{"attributes":{"filter":{"query":"source:Test-Get_a_log_based_metric_returns_OK_response-1652349145"},"group_by":[],"compute":{"aggregation_type":"count"}},"type":"logs_metrics","id":"Test_Get_a_log_based_metric_returns_OK_response_1652349145"}}'
13+
string: '{"data":{"id":"Test_Get_a_log_based_metric_returns_OK_response_1686139084","attributes":{"filter":{"query":"source:Test-Get_a_log_based_metric_returns_OK_response-1686139084"},"group_by":[],"compute":{"aggregation_type":"count"}},"type":"logs_metrics"}}
14+
15+
'
1416
headers:
1517
content-type:
1618
- application/json
@@ -23,10 +25,12 @@ interactions:
2325
accept:
2426
- application/json
2527
method: GET
26-
uri: https://api.datadoghq.com/api/v2/logs/config/metrics/Test_Get_a_log_based_metric_returns_OK_response_1652349145
28+
uri: https://api.datadoghq.com/api/v2/logs/config/metrics/Test_Get_a_log_based_metric_returns_OK_response_1686139084
2729
response:
2830
body:
29-
string: '{"data":{"attributes":{"filter":{"query":"source:Test-Get_a_log_based_metric_returns_OK_response-1652349145"},"group_by":[],"compute":{"aggregation_type":"count"}},"type":"logs_metrics","id":"Test_Get_a_log_based_metric_returns_OK_response_1652349145"}}'
31+
string: '{"data":{"id":"Test_Get_a_log_based_metric_returns_OK_response_1686139084","attributes":{"filter":{"query":"source:Test-Get_a_log_based_metric_returns_OK_response-1686139084"},"group_by":[],"compute":{"aggregation_type":"count"}},"type":"logs_metrics"}}
32+
33+
'
3034
headers:
3135
content-type:
3236
- application/json
@@ -39,14 +43,14 @@ interactions:
3943
accept:
4044
- '*/*'
4145
method: DELETE
42-
uri: https://api.datadoghq.com/api/v2/logs/config/metrics/Test_Get_a_log_based_metric_returns_OK_response_1652349145
46+
uri: https://api.datadoghq.com/api/v2/logs/config/metrics/Test_Get_a_log_based_metric_returns_OK_response_1686139084
4347
response:
4448
body:
45-
string: '{}'
49+
string: ''
4650
headers:
4751
content-type:
48-
- application/json
52+
- text/html; charset=utf-8
4953
status:
50-
code: 200
51-
message: OK
54+
code: 204
55+
message: No Content
5256
version: 1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-03-28T14:55:26.853Z
1+
2023-06-07T12:05:41.045Z

tests/v2/cassettes/test_scenarios/test_get_a_spanbased_metric_returns_ok_response.yaml

Lines changed: 9 additions & 11 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":false,"path":"@duration"},"filter":{"query":"source:Test-Get_a_span_based_metric_returns_OK_response-1680015326"},"group_by":[{"path":"resource_name","tag_name":"resource_name"}]},"id":"Test-Get_a_span_based_metric_returns_OK_response-1680015326","type":"spans_metrics"}}'
3+
body: '{"data":{"attributes":{"compute":{"aggregation_type":"distribution","include_percentiles":false,"path":"@duration"},"filter":{"query":"source:Test-Get_a_span_based_metric_returns_OK_response-1686139541"},"group_by":[{"path":"resource_name","tag_name":"resource_name"}]},"id":"Test-Get_a_span_based_metric_returns_OK_response-1686139541","type":"spans_metrics"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,7 +10,7 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/apm/config/metrics
1111
response:
1212
body:
13-
string: '{"data":{"id":"Test_Get_a_span_based_metric_returns_OK_response_1680015326","attributes":{"filter":{"query":"source:Test-Get_a_span_based_metric_returns_OK_response-1680015326"},"group_by":[{"path":"resource_name","tag_name":"resource_name"}],"compute":{"aggregation_type":"distribution","path":"@duration","include_percentiles":false}},"type":"spans_metrics"}}
13+
string: '{"data":{"id":"Test_Get_a_span_based_metric_returns_OK_response_1686139541","attributes":{"filter":{"query":"source:Test-Get_a_span_based_metric_returns_OK_response-1686139541"},"group_by":[{"path":"resource_name","tag_name":"resource_name"}],"compute":{"aggregation_type":"distribution","path":"@duration","include_percentiles":false}},"type":"spans_metrics"}}
1414
1515
'
1616
headers:
@@ -25,10 +25,10 @@ interactions:
2525
accept:
2626
- application/json
2727
method: GET
28-
uri: https://api.datadoghq.com/api/v2/apm/config/metrics/Test_Get_a_span_based_metric_returns_OK_response_1680015326
28+
uri: https://api.datadoghq.com/api/v2/apm/config/metrics/Test_Get_a_span_based_metric_returns_OK_response_1686139541
2929
response:
3030
body:
31-
string: '{"data":{"id":"Test_Get_a_span_based_metric_returns_OK_response_1680015326","attributes":{"filter":{"query":"source:Test-Get_a_span_based_metric_returns_OK_response-1680015326"},"group_by":[{"path":"resource_name","tag_name":"resource_name"}],"compute":{"aggregation_type":"distribution","path":"@duration","include_percentiles":false}},"type":"spans_metrics"}}
31+
string: '{"data":{"id":"Test_Get_a_span_based_metric_returns_OK_response_1686139541","attributes":{"filter":{"query":"source:Test-Get_a_span_based_metric_returns_OK_response-1686139541"},"group_by":[{"path":"resource_name","tag_name":"resource_name"}],"compute":{"aggregation_type":"distribution","path":"@duration","include_percentiles":false}},"type":"spans_metrics"}}
3232
3333
'
3434
headers:
@@ -43,16 +43,14 @@ interactions:
4343
accept:
4444
- '*/*'
4545
method: DELETE
46-
uri: https://api.datadoghq.com/api/v2/apm/config/metrics/Test_Get_a_span_based_metric_returns_OK_response_1680015326
46+
uri: https://api.datadoghq.com/api/v2/apm/config/metrics/Test_Get_a_span_based_metric_returns_OK_response_1686139541
4747
response:
4848
body:
49-
string: '{}
50-
51-
'
49+
string: ''
5250
headers:
5351
content-type:
54-
- application/json
52+
- text/html; charset=utf-8
5553
status:
56-
code: 200
57-
message: OK
54+
code: 204
55+
message: No Content
5856
version: 1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-05-12T09:52:26.672Z
1+
2023-06-07T11:58:41.908Z

0 commit comments

Comments
 (0)