Skip to content

Commit 1629497

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove total=recall from example. (#2189)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 609c0b5 commit 1629497

14 files changed

+25
-18
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-10-02 11:36:10.883909",
8-
"spec_repo_commit": "c09e55c6"
7+
"regenerated": "2024-10-02 13:39:19.776742",
8+
"spec_repo_commit": "e02e4f4c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-02 11:36:10.897654",
13-
"spec_repo_commit": "c09e55c6"
12+
"regenerated": "2024-10-02 13:39:19.791012",
13+
"spec_repo_commit": "e02e4f4c"
1414
}
1515
}
1616
}

examples/v2/logs/AggregateLogs_2955613758.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
aggregation=LogsAggregationFunction.PERCENTILE_90,
4141
metric="@duration",
4242
),
43-
total="recall",
4443
),
4544
],
4645
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-01-06T00:51:50.120Z
1+
2024-10-01T15:36:42.516Z

tests/v2/cassettes/test_scenarios/test_aggregate_compute_events_returns_ok_response.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/logs/analytics/aggregate
1111
response:
1212
body:
13-
string: '{"meta":{"status":"done","request_id":"pddv1ChZ0Y2dJQVlDMVJOYWlYcjNJcDZfSnNnIiwKHJISw_RInEtZkOv0RnvMfFE5pDSf1A5hU7Jf6FISDPKeDBOH5N-0CxRhGA","elapsed":3},"data":{"buckets":[{"computes":{"c0":[{"value":1,"time":"2022-01-06T00:40:00.000Z"},{"value":1,"time":"2022-01-06T00:50:00.000Z"}]},"by":{}}]}}'
13+
string: '{"meta":{"elapsed":165,"request_id":"pddv1ChY3VUd0WGZFS1IzNkpzaENGMDQ5dVlRIi0KHQwfsxs3-LlbabIdJPhP3_aSOsxZS1WRUrEaBffcEgxNrSsbB0hv7ccJCGk","status":"done"},"data":{"buckets":[]}}
14+
15+
'
1416
headers:
1517
content-type:
1618
- application/json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-02-23T10:58:05.766Z
1+
2024-10-01T15:36:42.902Z

tests/v2/cassettes/test_scenarios/test_aggregate_compute_events_with_group_by_returns_ok_response.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"compute":[{"aggregation":"count","interval":"5m","type":"timeseries"}],"filter":{"from":"now-15m","indexes":["main"],"query":"*","to":"now"},"group_by":[{"facet":"host","missing":"miss","sort":{"aggregation":"pc90","metric":"@duration","order":"asc","type":"measure"},"total":"recall"}]}'
3+
body: '{"compute":[{"aggregation":"count","interval":"5m","type":"timeseries"}],"filter":{"from":"now-15m","indexes":["main"],"query":"*","to":"now"},"group_by":[{"facet":"host","missing":"miss","sort":{"aggregation":"pc90","metric":"@duration","order":"asc","type":"measure"}}]}'
44
headers:
55
accept:
66
- application/json
@@ -10,7 +10,9 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/logs/analytics/aggregate
1111
response:
1212
body:
13-
string: '{"meta":{"status":"done","request_id":"pddv1ChZjajVGdnloOFRydURjT01RakZPRGJRIiwKHAubHcvWGIRKaJwUb1Qgc-peEYojhMk6Z3opAHYSDOMLcdT0IUoqNWaYdA","elapsed":10},"data":{"buckets":[{"computes":{"c0":[{"value":28,"time":"2022-02-23T10:40:00.000Z"},{"value":80,"time":"2022-02-23T10:45:00.000Z"},{"value":80,"time":"2022-02-23T10:50:00.000Z"},{"value":42,"time":"2022-02-23T10:55:00.000Z"}]},"by":{"host":"07266d86-ec5b-40cb-4060-e4d9"}},{"computes":{"c0":[{"value":32,"time":"2022-02-23T10:40:00.000Z"},{"value":80,"time":"2022-02-23T10:45:00.000Z"},{"value":80,"time":"2022-02-23T10:50:00.000Z"},{"value":40,"time":"2022-02-23T10:55:00.000Z"}]},"by":{"host":"4a5a50c3-5d34-4009-74aa-38d8"}},{"computes":{"c0":[{"value":28,"time":"2022-02-23T10:40:00.000Z"},{"value":80,"time":"2022-02-23T10:45:00.000Z"},{"value":80,"time":"2022-02-23T10:50:00.000Z"},{"value":44,"time":"2022-02-23T10:55:00.000Z"}]},"by":{"host":"3a1410f9-5b3b-44a8-52bc-5269"}},{"computes":{"c0":[{"value":32,"time":"2022-02-23T10:40:00.000Z"},{"value":80,"time":"2022-02-23T10:45:00.000Z"},{"value":80,"time":"2022-02-23T10:50:00.000Z"},{"value":42,"time":"2022-02-23T10:55:00.000Z"}]},"by":{"host":"e17b600e-a2cf-4d23-4eb2-e648"}},{"computes":{"c0":[{"value":28,"time":"2022-02-23T10:40:00.000Z"},{"value":80,"time":"2022-02-23T10:45:00.000Z"},{"value":80,"time":"2022-02-23T10:50:00.000Z"},{"value":44,"time":"2022-02-23T10:55:00.000Z"}]},"by":{"host":"3a6c8709-df68-49b2-5992-351d"}},{"computes":{"c0":[{"value":28,"time":"2022-02-23T10:40:00.000Z"},{"value":80,"time":"2022-02-23T10:45:00.000Z"},{"value":80,"time":"2022-02-23T10:50:00.000Z"},{"value":42,"time":"2022-02-23T10:55:00.000Z"}]},"by":{"host":"f301493f-d994-4237-4a99-b382"}},{"computes":{"c0":[{"value":28,"time":"2022-02-23T10:40:00.000Z"},{"value":80,"time":"2022-02-23T10:45:00.000Z"},{"value":80,"time":"2022-02-23T10:50:00.000Z"},{"value":42,"time":"2022-02-23T10:55:00.000Z"}]},"by":{"host":"4d77dd12-b3be-41fd-753b-fcbb"}},{"computes":{"c0":[{"value":32,"time":"2022-02-23T10:40:00.000Z"},{"value":80,"time":"2022-02-23T10:45:00.000Z"},{"value":80,"time":"2022-02-23T10:50:00.000Z"},{"value":40,"time":"2022-02-23T10:55:00.000Z"}]},"by":{"host":"2961e831-36b5-4c2b-5853-b6d5"}},{"computes":{"c0":[{"value":32,"time":"2022-02-23T10:40:00.000Z"},{"value":80,"time":"2022-02-23T10:45:00.000Z"},{"value":80,"time":"2022-02-23T10:50:00.000Z"},{"value":42,"time":"2022-02-23T10:55:00.000Z"}]},"by":{"host":"cec04667-4f47-4d64-4bf1-b449"}},{"computes":{"c0":[{"value":32,"time":"2022-02-23T10:40:00.000Z"},{"value":80,"time":"2022-02-23T10:45:00.000Z"},{"value":80,"time":"2022-02-23T10:50:00.000Z"},{"value":42,"time":"2022-02-23T10:55:00.000Z"}]},"by":{"host":"352e5c4f-9d7d-4b5e-414f-4199"}},{"computes":{"c0":[{"value":332,"time":"2022-02-23T10:40:00.000Z"},{"value":880,"time":"2022-02-23T10:45:00.000Z"},{"value":880,"time":"2022-02-23T10:50:00.000Z"},{"value":460,"time":"2022-02-23T10:55:00.000Z"}]},"by":{"host":"recall"}}]}}'
13+
string: '{"meta":{"elapsed":15,"request_id":"pddv1ChZJZHpESXZreVRVU04ySjMwN1ZGU3JBIi0KHTpQ7N734J4KLzWgxOSfJsxi4hmH9Zp7S5bcjVbKEgw7sLHsv3QXsmnc0-k","status":"done"},"data":{"buckets":[]}}
14+
15+
'
1416
headers:
1517
content-type:
1618
- application/json
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-01-06T00:51:50.375Z
1+
2024-10-01T15:36:43.117Z

tests/v2/cassettes/test_scenarios/test_aggregate_events_returns_ok_response.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/logs/analytics/aggregate
1111
response:
1212
body:
13-
string: '{"meta":{"status":"done","request_id":"pddv1ChZqNnEtQ2hTU1M5dTYxbWtrUGtBMGFBIi0KHVny0iHoClVAOb_xrSWcwl_hHz3QjhOb8cLTslhGEgz4EiXPOZ8kQFQe2Zw","elapsed":5},"data":{"buckets":[{"computes":{"c0":2},"by":{}}]}}'
13+
string: '{"meta":{"elapsed":10,"request_id":"pddv1ChZNTFhDRTJTelQycXp1QXdlX1NmTlpRIi0KHe-ilFcY0rnsNmMKsu8hd-YRCNigxxg3E_n1PmI9EgxGTh_nEXTFJyr3H54","status":"done"},"data":{"buckets":[]}}
14+
15+
'
1416
headers:
1517
content-type:
1618
- application/json
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-07-05T20:27:06.820Z
1+
2024-10-01T15:36:43.285Z

tests/v2/cassettes/test_scenarios/test_get_a_quick_list_of_logs_returns_ok_response.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interactions:
88
uri: https://api.datadoghq.com/api/v2/logs/events?filter%5Bquery%5D=datadog-agent&filter%5Bindexes%5D=main&filter%5Bfrom%5D=2020-09-17T11%3A48%3A36%2B01%3A00&filter%5Bto%5D=2020-09-17T12%3A48%3A36%2B01%3A00&page%5Blimit%5D=5
99
response:
1010
body:
11-
string: '{"data":[],"meta":{"elapsed":0,"request_id":"pddv1ChZVZjdFSUNKdlM3LVBKNXNPcjR6R1hnIiwKHP4qJC1KWavJCGIvcezlUg3AhhLxU4JfitQ_QFESDFVjhmcEEEIN8NN7KA","status":"done"}}
11+
string: '{"data":[],"meta":{"elapsed":0,"request_id":"pddv1ChZnUldBVG01WlRMU2Q0d2xmaG1NWG1BIiwKHFtksVd_gLLg8oGdAfyjZkpusj-6_bbNxRpOSeoSDCx7sBKmq-5VxGtliw","status":"done"}}
1212
1313
'
1414
headers:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-01-06T00:51:50.851Z
1+
2024-10-01T15:36:43.434Z

tests/v2/cassettes/test_scenarios/test_search_logs_returns_ok_response.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/logs/events/search
1111
response:
1212
body:
13-
string: '{"data":[]}'
13+
string: '{"data":[],"meta":{"elapsed":0,"request_id":"pddv1ChZDajdxSjQ4ZFJOT1VyZ2xURmRrSW5BIi0KHTBXibXkWStvRXkS72BJw44UvhZhIF-UDmT52UYhEgyW3j58vq2SlrrUWNc","status":"done"}}
14+
15+
'
1416
headers:
1517
content-type:
1618
- application/json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-04-13T18:28:45.445Z
1+
2024-10-01T15:36:43.563Z

tests/v2/features/logs.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Feature: Logs
2121
Scenario: Aggregate compute events with group by returns "OK" response
2222
Given a valid "appKeyAuth" key in the system
2323
And new "AggregateLogs" request
24-
And body with value {"compute": [{"aggregation": "count", "interval": "5m", "type": "timeseries"}], "filter": {"from": "now-15m", "indexes": ["main"], "query": "*", "to": "now"}, "group_by": [{"facet": "host", "missing": "miss", "sort": {"type": "measure", "order": "asc", "aggregation": "pc90", "metric": "@duration"}, "total": "recall"}]}
24+
And body with value {"compute": [{"aggregation": "count", "interval": "5m", "type": "timeseries"}], "filter": {"from": "now-15m", "indexes": ["main"], "query": "*", "to": "now"}, "group_by": [{"facet": "host", "missing": "miss", "sort": {"type": "measure", "order": "asc", "aggregation": "pc90", "metric": "@duration"}}]}
2525
When the request is sent
2626
Then the response status is 200 OK
2727
And the response "meta.status" is equal to "done"

0 commit comments

Comments
 (0)