Skip to content

Commit

Permalink
Remove total=recall from example. (#1842)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Oct 2, 2024
1 parent f62a180 commit 82e2cbc
Show file tree
Hide file tree
Showing 15 changed files with 48 additions and 49 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-02 11:36:13.406557",
"spec_repo_commit": "c09e55c6"
"regenerated": "2024-10-02 13:39:26.970748",
"spec_repo_commit": "e02e4f4c"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-02 11:36:13.421278",
"spec_repo_commit": "c09e55c6"
"regenerated": "2024-10-02 13:39:26.985809",
"spec_repo_commit": "e02e4f4c"
}
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2022-01-06T00:51:50.120Z"
"2024-10-01T15:36:42.516Z"
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"value": "application/json"
}
],
"headersSize": 486,
"headersSize": 572,
"httpVersion": "HTTP/1.1",
"method": "POST",
"postData": {
Expand All @@ -38,11 +38,11 @@
"url": "https://api.datadoghq.com/api/v2/logs/analytics/aggregate"
},
"response": {
"bodySize": 296,
"bodySize": 179,
"content": {
"mimeType": "application/json",
"size": 296,
"text": "{\"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\":{}}]}}"
"size": 179,
"text": "{\"meta\":{\"elapsed\":165,\"request_id\":\"pddv1ChY3VUd0WGZFS1IzNkpzaENGMDQ5dVlRIi0KHQwfsxs3-LlbabIdJPhP3_aSOsxZS1WRUrEaBffcEgxNrSsbB0hv7ccJCGk\",\"status\":\"done\"},\"data\":{\"buckets\":[]}}\n"
},
"cookies": [],
"headers": [
Expand All @@ -51,14 +51,14 @@
"value": "application/json"
}
],
"headersSize": 535,
"headersSize": 667,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2022-01-06T00:51:50.123Z",
"time": 245
"startedDateTime": "2024-10-01T15:36:42.524Z",
"time": 362
}
],
"pages": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2022-02-23T10:58:05.766Z"
"2024-10-01T15:36:42.902Z"
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"entries": [
{
"_id": "1eef1be924c87eb2f7227ce2a5cf1bca",
"_id": "6cbf40fe69ee7669e637a58173c0b979",
"_order": 0,
"cache": {},
"request": {
"bodySize": 289,
"bodySize": 272,
"cookies": [],
"headers": [
{
Expand All @@ -32,17 +32,17 @@
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"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\"}]}"
"text": "{\"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\"}}]}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/logs/analytics/aggregate"
},
"response": {
"bodySize": 2962,
"bodySize": 178,
"content": {
"mimeType": "application/json",
"size": 2962,
"text": "{\"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\"}}]}}"
"size": 178,
"text": "{\"meta\":{\"elapsed\":15,\"request_id\":\"pddv1ChZJZHpESXZreVRVU04ySjMwN1ZGU3JBIi0KHTpQ7N734J4KLzWgxOSfJsxi4hmH9Zp7S5bcjVbKEgw7sLHsv3QXsmnc0-k\",\"status\":\"done\"},\"data\":{\"buckets\":[]}}\n"
},
"cookies": [],
"headers": [
Expand All @@ -51,14 +51,14 @@
"value": "application/json"
}
],
"headersSize": 686,
"headersSize": 667,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2022-02-23T10:58:05.787Z",
"time": 516
"startedDateTime": "2024-10-01T15:36:42.904Z",
"time": 200
}
],
"pages": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2022-01-06T00:51:50.375Z"
"2024-10-01T15:36:43.117Z"
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"value": "application/json"
}
],
"headersSize": 487,
"headersSize": 571,
"httpVersion": "HTTP/1.1",
"method": "POST",
"postData": {
Expand All @@ -38,11 +38,11 @@
"url": "https://api.datadoghq.com/api/v2/logs/analytics/aggregate"
},
"response": {
"bodySize": 205,
"bodySize": 178,
"content": {
"mimeType": "application/json",
"size": 205,
"text": "{\"meta\":{\"status\":\"done\",\"request_id\":\"pddv1ChZqNnEtQ2hTU1M5dTYxbWtrUGtBMGFBIi0KHVny0iHoClVAOb_xrSWcwl_hHz3QjhOb8cLTslhGEgz4EiXPOZ8kQFQe2Zw\",\"elapsed\":5},\"data\":{\"buckets\":[{\"computes\":{\"c0\":2},\"by\":{}}]}}"
"size": 178,
"text": "{\"meta\":{\"elapsed\":10,\"request_id\":\"pddv1ChZNTFhDRTJTelQycXp1QXdlX1NmTlpRIi0KHe-ilFcY0rnsNmMKsu8hd-YRCNigxxg3E_n1PmI9EgxGTh_nEXTFJyr3H54\",\"status\":\"done\"},\"data\":{\"buckets\":[]}}\n"
},
"cookies": [],
"headers": [
Expand All @@ -51,14 +51,14 @@
"value": "application/json"
}
],
"headersSize": 535,
"headersSize": 667,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2022-01-06T00:51:50.377Z",
"time": 239
"startedDateTime": "2024-10-01T15:36:43.120Z",
"time": 155
}
],
"pages": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2023-07-05T20:27:06.820Z"
"2024-10-01T15:36:43.285Z"
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"value": "application/json"
}
],
"headersSize": 676,
"headersSize": 678,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [
Expand All @@ -48,7 +48,7 @@
"content": {
"mimeType": "application/json",
"size": 164,
"text": "{\"data\":[],\"meta\":{\"elapsed\":0,\"request_id\":\"pddv1ChZVZjdFSUNKdlM3LVBKNXNPcjR6R1hnIiwKHP4qJC1KWavJCGIvcezlUg3AhhLxU4JfitQ_QFESDFVjhmcEEEIN8NN7KA\",\"status\":\"done\"}}\n"
"text": "{\"data\":[],\"meta\":{\"elapsed\":0,\"request_id\":\"pddv1ChZnUldBVG01WlRMU2Q0d2xmaG1NWG1BIiwKHFtksVd_gLLg8oGdAfyjZkpusj-6_bbNxRpOSeoSDCx7sBKmq-5VxGtliw\",\"status\":\"done\"}}\n"
},
"cookies": [],
"headers": [
Expand All @@ -63,8 +63,8 @@
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2023-07-05T20:27:06.833Z",
"time": 195
"startedDateTime": "2024-10-01T15:36:43.290Z",
"time": 136
}
],
"pages": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2022-01-06T00:51:50.851Z"
"2024-10-01T15:36:43.434Z"
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"value": "application/json"
}
],
"headersSize": 477,
"headersSize": 561,
"httpVersion": "HTTP/1.1",
"method": "POST",
"postData": {
Expand All @@ -38,11 +38,11 @@
"url": "https://api.datadoghq.com/api/v2/logs/events/search"
},
"response": {
"bodySize": 11,
"bodySize": 165,
"content": {
"mimeType": "application/json",
"size": 11,
"text": "{\"data\":[]}"
"size": 165,
"text": "{\"data\":[],\"meta\":{\"elapsed\":0,\"request_id\":\"pddv1ChZDajdxSjQ4ZFJOT1VyZ2xURmRrSW5BIi0KHTBXibXkWStvRXkS72BJw44UvhZhIF-UDmT52UYhEgyW3j58vq2SlrrUWNc\",\"status\":\"done\"}}\n"
},
"cookies": [],
"headers": [
Expand All @@ -51,14 +51,14 @@
"value": "application/json"
}
],
"headersSize": 496,
"headersSize": 654,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2022-01-06T00:51:50.854Z",
"time": 240
"startedDateTime": "2024-10-01T15:36:43.438Z",
"time": 112
}
],
"pages": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2023-04-13T18:28:45.445Z"
"2024-10-01T15:36:43.563Z"
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@
"value": "application/json"
}
],
"headersSize": 294,
"headersSize": 321,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 202,
"statusText": "Accepted"
},
"startedDateTime": "2023-04-13T18:28:45.771Z",
"time": 80
"startedDateTime": "2024-10-01T15:36:43.567Z",
"time": 187
}
],
"pages": [],
Expand Down
1 change: 0 additions & 1 deletion examples/v2/logs/AggregateLogs_2955613758.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const params: v2.LogsApiAggregateLogsRequest = {
aggregation: "pc90",
metric: "@duration",
},
total: "recall",
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion features/v2/logs.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Feature: Logs
Scenario: Aggregate compute events with group by returns "OK" response
Given a valid "appKeyAuth" key in the system
And new "AggregateLogs" request
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"}]}
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"}}]}
When the request is sent
Then the response status is 200 OK
And the response "meta.status" is equal to "done"
Expand Down

0 comments on commit 82e2cbc

Please sign in to comment.