From 9fa63f03ec24a8424ddf5596de506b89b9d44e65 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 5 Dec 2024 09:35:48 +0000 Subject: [PATCH] Regenerate client from commit 500f314c of spec repo --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 16 +++++++++------- ..._data-deletion_CreateDataDeletionRequest.rs | 2 +- src/datadogV2/api/api_data_deletion.rs | 4 ++-- ...l_data_deletion_response_item_attributes.rs | 2 +- ...request-returns-Bad-Request-response.frozen | 2 +- ...n-request-returns-Bad-Request-response.json | 2 +- ...deletion-request-returns-OK-response.frozen | 2 +- ...a-deletion-request-returns-OK-response.json | 18 +++++++++--------- ...s-Precondition-failed-error-response.frozen | 2 +- ...rns-Precondition-failed-error-response.json | 2 +- ...deletion-request-returns-OK-response.frozen | 2 +- ...a-deletion-request-returns-OK-response.json | 12 ++++++------ ...s-Precondition-failed-error-response.frozen | 2 +- ...rns-Precondition-failed-error-response.json | 4 ++-- ...eletion-requests-returns-OK-response.frozen | 2 +- ...-deletion-requests-returns-OK-response.json | 16 ++++++++-------- .../features/v2/data_deletion.feature | 6 +++--- tests/scenarios/features/v2/given.json | 2 +- 19 files changed, 54 insertions(+), 52 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index b248b0676..4db15bb8e 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-04 19:20:45.029712", - "spec_repo_commit": "2b956c71" + "regenerated": "2024-12-05 09:30:06.478668", + "spec_repo_commit": "500f314c" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-04 19:20:45.057237", - "spec_repo_commit": "2b956c71" + "regenerated": "2024-12-05 09:30:06.498170", + "spec_repo_commit": "500f314c" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index e87349616..562b5b228 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -6414,8 +6414,8 @@ components: description: List of indexes for the search. If not provided, the search is performed in all indexes. example: - - index-1 - - index-2 + - test-index + - test-index-2 items: description: Individual index. type: string @@ -7783,14 +7783,16 @@ components: description: List of indexes for the search. If not provided, the search is performed in all indexes. example: - - index-1 - - index-2 + - test-index + - test-index-2 items: description: Individual index. type: string type: array is_created: - description: Whether the deletion request is fully created or not. + description: Whether the deletion request is fully created or not. It can + take some minutes to fully create a deletion request depending on the + target query and timeframe. example: true type: boolean org_id: @@ -31137,8 +31139,8 @@ paths: x-codegen-request-body-name: body /api/v2/deletion/data/{product}: post: - description: Creates a data deletion request by providing a query and a time - frame targeting the proper data. + description: Creates a data deletion request by providing a query and a timeframe + targeting the proper data. operationId: CreateDataDeletionRequest parameters: - $ref: '#/components/parameters/ProductName' diff --git a/examples/v2_data-deletion_CreateDataDeletionRequest.rs b/examples/v2_data-deletion_CreateDataDeletionRequest.rs index 483bf04a4..b669dcf2c 100644 --- a/examples/v2_data-deletion_CreateDataDeletionRequest.rs +++ b/examples/v2_data-deletion_CreateDataDeletionRequest.rs @@ -17,7 +17,7 @@ async fn main() { ]), 1704063600000, ) - .indexes(vec!["index-1".to_string(), "index-2".to_string()]), + .indexes(vec!["test-index".to_string(), "test-index-2".to_string()]), )); let configuration = datadog::Configuration::new(); let api = DataDeletionAPI::with_config(configuration); diff --git a/src/datadogV2/api/api_data_deletion.rs b/src/datadogV2/api/api_data_deletion.rs index b27e66461..232d73f44 100644 --- a/src/datadogV2/api/api_data_deletion.rs +++ b/src/datadogV2/api/api_data_deletion.rs @@ -252,7 +252,7 @@ impl DataDeletionAPI { } } - /// Creates a data deletion request by providing a query and a time frame targeting the proper data. + /// Creates a data deletion request by providing a query and a timeframe targeting the proper data. pub async fn create_data_deletion_request( &self, product: String, @@ -278,7 +278,7 @@ impl DataDeletionAPI { } } - /// Creates a data deletion request by providing a query and a time frame targeting the proper data. + /// Creates a data deletion request by providing a query and a timeframe targeting the proper data. pub async fn create_data_deletion_request_with_http_info( &self, product: String, diff --git a/src/datadogV2/model/model_data_deletion_response_item_attributes.rs b/src/datadogV2/model/model_data_deletion_response_item_attributes.rs index 7dafef683..0da821dd4 100644 --- a/src/datadogV2/model/model_data_deletion_response_item_attributes.rs +++ b/src/datadogV2/model/model_data_deletion_response_item_attributes.rs @@ -23,7 +23,7 @@ pub struct DataDeletionResponseItemAttributes { /// List of indexes for the search. If not provided, the search is performed in all indexes. #[serde(rename = "indexes")] pub indexes: Option>, - /// Whether the deletion request is fully created or not. + /// Whether the deletion request is fully created or not. It can take some minutes to fully create a deletion request depending on the target query and timeframe. #[serde(rename = "is_created")] pub is_created: bool, /// Organization ID. diff --git a/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.frozen b/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.frozen index 4390af597..fca6681a8 100644 --- a/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.frozen +++ b/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.frozen @@ -1 +1 @@ -2024-11-15T08:56:51.182Z \ No newline at end of file +2024-12-05T09:23:41.160Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.json b/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.json index 31a694c79..dfc05bdf4 100644 --- a/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.json +++ b/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.json @@ -26,7 +26,7 @@ "message": "Bad Request" } }, - "recorded_at": "Fri, 15 Nov 2024 08:56:51 GMT" + "recorded_at": "Thu, 05 Dec 2024 09:23:41 GMT" } ], "recorded_with": "VCR 6.0.0" diff --git a/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.frozen b/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.frozen index 04ac8a541..1ac508944 100644 --- a/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.frozen +++ b/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.frozen @@ -1 +1 @@ -2024-11-15T08:57:02.769Z \ No newline at end of file +2024-12-05T09:23:41.674Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.json b/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.json index 6b7f8b294..76ed62e6d 100644 --- a/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.json +++ b/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.json @@ -3,7 +3,7 @@ { "request": { "body": { - "string": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}", + "string": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}", "encoding": null }, "headers": { @@ -19,7 +19,7 @@ }, "response": { "body": { - "string": "{\"data\":{\"id\":\"303\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:03.242841331Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"pending\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:57:03.242841331Z\"}},\"meta\":{\"product\":\"logs\"}}", + "string": "{\"data\":{\"id\":\"523\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T09:23:42.016613164Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"pending\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T09:23:42.016613164Z\"}},\"meta\":{\"product\":\"logs\"}}", "encoding": null }, "headers": { @@ -32,7 +32,7 @@ "message": "OK" } }, - "recorded_at": "Fri, 15 Nov 2024 08:57:02 GMT" + "recorded_at": "Thu, 05 Dec 2024 09:23:41 GMT" }, { "request": { @@ -43,11 +43,11 @@ ] }, "method": "put", - "uri": "https://api.datadoghq.com/api/v2/deletion/requests/303/cancel" + "uri": "https://api.datadoghq.com/api/v2/deletion/requests/523/cancel" }, "response": { "body": { - "string": "{\"data\":{\"id\":\"303\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:03.242841Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:57:03.638067Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}", + "string": "{\"data\":{\"id\":\"523\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T09:23:42.016613Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T09:23:42.384299Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}", "encoding": null }, "headers": { @@ -60,7 +60,7 @@ "message": "OK" } }, - "recorded_at": "Fri, 15 Nov 2024 08:57:02 GMT" + "recorded_at": "Thu, 05 Dec 2024 09:23:41 GMT" }, { "request": { @@ -71,11 +71,11 @@ ] }, "method": "put", - "uri": "https://api.datadoghq.com/api/v2/deletion/requests/303/cancel" + "uri": "https://api.datadoghq.com/api/v2/deletion/requests/523/cancel" }, "response": { "body": { - "string": "{\"data\":{\"id\":\"303\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:03.242841Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:57:03.936325Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}", + "string": "{\"data\":{\"id\":\"523\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T09:23:42.016613Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T09:23:42.384299Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}", "encoding": null }, "headers": { @@ -88,7 +88,7 @@ "message": "OK" } }, - "recorded_at": "Fri, 15 Nov 2024 08:57:02 GMT" + "recorded_at": "Thu, 05 Dec 2024 09:23:41 GMT" } ], "recorded_with": "VCR 6.0.0" diff --git a/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.frozen b/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.frozen index 3bb79b73d..9fb1cf5f4 100644 --- a/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.frozen +++ b/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.frozen @@ -1 +1 @@ -2024-11-15T08:57:14.890Z \ No newline at end of file +2024-12-05T09:23:42.850Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.json b/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.json index f67dd6781..41445d55c 100644 --- a/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.json +++ b/tests/scenarios/cassettes/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.json @@ -26,7 +26,7 @@ "message": "Precondition Failed" } }, - "recorded_at": "Fri, 15 Nov 2024 08:57:14 GMT" + "recorded_at": "Thu, 05 Dec 2024 09:23:42 GMT" } ], "recorded_with": "VCR 6.0.0" diff --git a/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.frozen b/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.frozen index b74c2983a..36dd41d62 100644 --- a/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.frozen +++ b/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.frozen @@ -1 +1 @@ -2024-11-15T08:59:09.810Z \ No newline at end of file +2024-12-05T09:23:43.197Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.json b/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.json index 6f973063c..e60f5cb38 100644 --- a/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.json +++ b/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.json @@ -3,7 +3,7 @@ { "request": { "body": { - "string": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}", + "string": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}", "encoding": null }, "headers": { @@ -19,7 +19,7 @@ }, "response": { "body": { - "string": "{\"data\":{\"id\":\"305\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:59:10.304195172Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"pending\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:59:10.304195172Z\"}},\"meta\":{\"product\":\"logs\"}}", + "string": "{\"data\":{\"id\":\"524\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T09:23:43.527574137Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"pending\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T09:23:43.527574137Z\"}},\"meta\":{\"product\":\"logs\"}}", "encoding": null }, "headers": { @@ -32,7 +32,7 @@ "message": "OK" } }, - "recorded_at": "Fri, 15 Nov 2024 08:59:09 GMT" + "recorded_at": "Thu, 05 Dec 2024 09:23:43 GMT" }, { "request": { @@ -43,11 +43,11 @@ ] }, "method": "put", - "uri": "https://api.datadoghq.com/api/v2/deletion/requests/305/cancel" + "uri": "https://api.datadoghq.com/api/v2/deletion/requests/524/cancel" }, "response": { "body": { - "string": "{\"data\":{\"id\":\"305\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:59:10.304195Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:59:10.681676Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}", + "string": "{\"data\":{\"id\":\"524\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T09:23:43.527574Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T09:23:44.017414Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}", "encoding": null }, "headers": { @@ -60,7 +60,7 @@ "message": "OK" } }, - "recorded_at": "Fri, 15 Nov 2024 08:59:09 GMT" + "recorded_at": "Thu, 05 Dec 2024 09:23:43 GMT" } ], "recorded_with": "VCR 6.0.0" diff --git a/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.frozen b/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.frozen index 74ecbd427..803680c00 100644 --- a/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.frozen +++ b/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.frozen @@ -1 +1 @@ -2024-11-15T08:59:22.532Z \ No newline at end of file +2024-12-05T09:23:44.038Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.json b/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.json index 2fce23709..ff489d585 100644 --- a/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.json +++ b/tests/scenarios/cassettes/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.json @@ -3,7 +3,7 @@ { "request": { "body": { - "string": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"query\":{},\"to\":1704063600000}}}", + "string": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"query\":{},\"to\":1704063600000}}}", "encoding": null }, "headers": { @@ -32,7 +32,7 @@ "message": "Precondition Failed" } }, - "recorded_at": "Fri, 15 Nov 2024 08:59:22 GMT" + "recorded_at": "Thu, 05 Dec 2024 09:23:44 GMT" } ], "recorded_with": "VCR 6.0.0" diff --git a/tests/scenarios/cassettes/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.frozen b/tests/scenarios/cassettes/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.frozen index 108d0eae3..c80aa7789 100644 --- a/tests/scenarios/cassettes/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.frozen +++ b/tests/scenarios/cassettes/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.frozen @@ -1 +1 @@ -2024-11-15T08:57:26.678Z \ No newline at end of file +2024-12-05T09:23:44.395Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.json b/tests/scenarios/cassettes/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.json index 76057cb25..cfd3caf08 100644 --- a/tests/scenarios/cassettes/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.json +++ b/tests/scenarios/cassettes/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.json @@ -3,7 +3,7 @@ { "request": { "body": { - "string": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}", + "string": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}", "encoding": null }, "headers": { @@ -19,7 +19,7 @@ }, "response": { "body": { - "string": "{\"data\":{\"id\":\"304\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:27.161919269Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"pending\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:57:27.161919269Z\"}},\"meta\":{\"product\":\"logs\"}}", + "string": "{\"data\":{\"id\":\"525\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T09:23:44.733234992Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"pending\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T09:23:44.733234992Z\"}},\"meta\":{\"product\":\"logs\"}}", "encoding": null }, "headers": { @@ -32,7 +32,7 @@ "message": "OK" } }, - "recorded_at": "Fri, 15 Nov 2024 08:57:26 GMT" + "recorded_at": "Thu, 05 Dec 2024 09:23:44 GMT" }, { "request": { @@ -47,7 +47,7 @@ }, "response": { "body": { - "string": "{\"data\":[{\"id\":\"304\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:27.161919Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"pending\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:57:27.161919Z\"}},{\"id\":\"303\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:03.242841Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:57:03.936325Z\"}},{\"id\":\"302\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:44:51.953197Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:44:54.901861Z\"}},{\"id\":\"301\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:44:12.92412Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:44:44.846759Z\"}},{\"id\":\"300\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:20:26.053712Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:20:34.545658Z\"}},{\"id\":\"299\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:12:17.70049Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:12:50.271468Z\"}},{\"id\":\"298\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:09:41.997486Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:09:45.322668Z\"}},{\"id\":\"297\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T07:51:10.059846Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T07:51:27.637588Z\"}},{\"id\":\"296\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T07:49:26.502631Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T07:49:28.431587Z\"}},{\"id\":\"295\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T17:57:14.713251Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T17:57:16.874262Z\"}},{\"id\":\"294\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T17:56:38.672296Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T17:56:39.220134Z\"}},{\"id\":\"293\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T17:56:21.931549Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T17:56:22.653515Z\"}},{\"id\":\"292\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T17:52:37.230638Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T17:52:41.82939Z\"}},{\"id\":\"291\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T17:51:34.464818Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T17:51:35.662615Z\"}},{\"id\":\"290\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T17:34:51.13924Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T17:34:52.585803Z\"}},{\"id\":\"289\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T16:54:28.587048Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T16:54:30.222141Z\"}},{\"id\":\"288\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T16:52:52.567007Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T16:52:54.810859Z\"}},{\"id\":\"287\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T16:49:54.011076Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T16:49:55.255357Z\"}},{\"id\":\"286\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T16:35:25.381857Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T16:35:30.570834Z\"}},{\"id\":\"285\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T16:32:52.425512Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T16:33:25.559245Z\"}},{\"id\":\"284\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T16:27:22.412357Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T16:27:28.763719Z\"}},{\"id\":\"283\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T16:26:56.006849Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T16:26:57.682661Z\"}},{\"id\":\"282\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T16:26:02.447468Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T16:26:05.009146Z\"}},{\"id\":\"281\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T16:24:58.627741Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T16:25:02.852354Z\"}},{\"id\":\"280\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T16:23:10.220638Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T16:23:42.451575Z\"}},{\"id\":\"279\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T16:22:34.323711Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T16:23:06.006296Z\"}},{\"id\":\"278\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T16:21:42.323606Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T16:21:49.622015Z\"}},{\"id\":\"277\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T16:19:07.723768Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T16:19:11.463512Z\"}},{\"id\":\"276\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-14T16:16:47.047428Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-14T16:17:18.723041Z\"}}],\"meta\":{\"count_status\":{\"canceled\":28,\"pending\":1},\"count_product\":{\"logs\":29}}}", + "string": "{\"data\":[{\"id\":\"525\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T09:23:44.733234Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"pending\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T09:23:44.733234Z\"}},{\"id\":\"524\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T09:23:43.527574Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T09:23:44.558963Z\"}},{\"id\":\"523\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T09:23:42.016613Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T09:23:44.57098Z\"}},{\"id\":\"522\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T08:54:02.022684Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"*\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T08:54:04.800257Z\"}},{\"id\":\"521\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T08:54:01.274039Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"*\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T08:54:05.766783Z\"}},{\"id\":\"520\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T08:54:00.039418Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"*\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T08:54:06.29108Z\"}},{\"id\":\"519\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T08:37:13.099975Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"*\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T08:37:13.973482Z\"}},{\"id\":\"518\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T08:36:07.9972Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"*\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T08:36:09.894949Z\"}},{\"id\":\"517\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T08:34:02.804665Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"*\"],\"is_created\":true,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"2024-12-05T10:34:02.974336Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T08:34:04.095987Z\"}},{\"id\":\"516\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T08:27:36.47085Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T08:27:37.785739Z\"}},{\"id\":\"515\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T08:27:10.521718Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"*\"],\"is_created\":true,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"2024-12-05T10:27:10.807482Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T08:27:11.919794Z\"}},{\"id\":\"514\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T08:26:17.901525Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T08:26:51.782987Z\"}},{\"id\":\"513\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T05:10:34.538615Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T05:10:35.227581Z\"}},{\"id\":\"512\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T05:10:34.373277Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T05:10:35.503602Z\"}},{\"id\":\"511\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T05:10:34.166373Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T05:10:37.636971Z\"}},{\"id\":\"510\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T04:17:28.502647Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T04:17:39.442202Z\"}},{\"id\":\"509\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T04:17:28.286399Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T04:17:42.739397Z\"}},{\"id\":\"508\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T04:17:27.050714Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T04:17:38.940905Z\"}},{\"id\":\"507\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T03:33:02.553569Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T03:33:05.468663Z\"}},{\"id\":\"506\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T03:33:01.829772Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T03:33:02.207077Z\"}},{\"id\":\"505\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T03:32:59.717089Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T03:33:39.611917Z\"}},{\"id\":\"504\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T02:39:30.452252Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T02:40:03.389961Z\"}},{\"id\":\"503\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T02:39:29.731164Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T02:39:30.598348Z\"}},{\"id\":\"502\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T02:39:27.67525Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T02:39:29.772504Z\"}},{\"id\":\"501\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T01:38:32.938444Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T01:38:37.212394Z\"}},{\"id\":\"500\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T01:33:29.07009Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T01:33:32.929175Z\"}},{\"id\":\"499\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T01:33:19.247177Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T01:33:50.172479Z\"}},{\"id\":\"498\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T00:10:39.176953Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T00:11:12.052185Z\"}},{\"id\":\"497\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T00:10:38.929169Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T00:10:40.583573Z\"}},{\"id\":\"496\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T00:10:37.536443Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T00:10:39.843751Z\"}},{\"id\":\"495\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T11:23:40.020775Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T11:24:11.570354Z\"}},{\"id\":\"494\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T11:23:39.300942Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T11:23:39.848Z\"}},{\"id\":\"493\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T11:23:38.06132Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T11:23:39.834766Z\"}},{\"id\":\"492\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T11:12:49.664389Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T11:13:20.678256Z\"}},{\"id\":\"491\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T11:12:48.671067Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T11:12:49.857767Z\"}},{\"id\":\"490\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T11:12:47.413052Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T11:12:49.845378Z\"}},{\"id\":\"489\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T05:13:08.790941Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T05:13:09.56614Z\"}},{\"id\":\"488\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T05:13:07.941751Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T05:13:08.161545Z\"}},{\"id\":\"487\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T05:13:07.002206Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T05:13:09.526302Z\"}},{\"id\":\"486\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T04:17:55.137432Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T04:18:27.401167Z\"}},{\"id\":\"485\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T04:17:54.772224Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T04:17:57.509139Z\"}},{\"id\":\"484\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T04:17:53.215582Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T04:17:56.14153Z\"}},{\"id\":\"483\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T03:31:43.474476Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T03:31:45.102956Z\"}},{\"id\":\"482\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T03:31:42.536945Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T03:31:47.227213Z\"}},{\"id\":\"481\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T03:31:40.277056Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T03:32:12.271899Z\"}},{\"id\":\"480\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T02:35:20.16826Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T02:35:21.604216Z\"}},{\"id\":\"479\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T02:35:19.945093Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T02:35:21.332214Z\"}},{\"id\":\"478\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T02:35:18.637912Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T02:35:21.106744Z\"}},{\"id\":\"477\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T01:40:16.332256Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T01:40:49.189761Z\"}},{\"id\":\"476\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-04T01:39:37.000253Z\",\"created_by\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-04T01:39:41.461154Z\"}}],\"meta\":{\"next_page\":\"eyJQcm9kdWN0cyI6bnVsbCwiUXVlcnkiOiIiLCJTdGF0dXMiOiIiLCJQYWdlU2l6ZSI6NTAsIkxhc3RJdGVtSWQiOjQ3NX0K\",\"count_status\":{\"canceled\":125,\"pending\":1},\"count_product\":{\"logs\":126}}}", "encoding": null }, "headers": { @@ -60,7 +60,7 @@ "message": "OK" } }, - "recorded_at": "Fri, 15 Nov 2024 08:57:26 GMT" + "recorded_at": "Thu, 05 Dec 2024 09:23:44 GMT" }, { "request": { @@ -71,11 +71,11 @@ ] }, "method": "put", - "uri": "https://api.datadoghq.com/api/v2/deletion/requests/304/cancel" + "uri": "https://api.datadoghq.com/api/v2/deletion/requests/525/cancel" }, "response": { "body": { - "string": "{\"data\":{\"id\":\"304\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:27.161919Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:57:27.931008Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}", + "string": "{\"data\":{\"id\":\"525\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T09:23:44.733234Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T09:23:45.715101Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}", "encoding": null }, "headers": { @@ -88,7 +88,7 @@ "message": "OK" } }, - "recorded_at": "Fri, 15 Nov 2024 08:57:26 GMT" + "recorded_at": "Thu, 05 Dec 2024 09:23:44 GMT" } ], "recorded_with": "VCR 6.0.0" diff --git a/tests/scenarios/features/v2/data_deletion.feature b/tests/scenarios/features/v2/data_deletion.feature index 8cc130e38..995dd9c0c 100644 --- a/tests/scenarios/features/v2/data_deletion.feature +++ b/tests/scenarios/features/v2/data_deletion.feature @@ -39,7 +39,7 @@ Feature: Data Deletion Scenario: Creates a data deletion request returns "Bad Request" response Given new "CreateDataDeletionRequest" request And request contains "product" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["index-1", "index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}}} + And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}}} When the request is sent Then the response status is 400 Bad Request @@ -47,7 +47,7 @@ Feature: Data Deletion Scenario: Creates a data deletion request returns "OK" response Given new "CreateDataDeletionRequest" request And request contains "product" parameter with value "logs" - And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["index-1", "index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}}} + And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}}} When the request is sent Then the response status is 200 OK And the response "data.type" is equal to "deletion_request" @@ -58,7 +58,7 @@ Feature: Data Deletion Scenario: Creates a data deletion request returns "Precondition failed error" response Given new "CreateDataDeletionRequest" request And request contains "product" parameter with value "logs" - And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["index-1", "index-2"], "query": {}, "to": 1704063600000}}} + And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {}, "to": 1704063600000}}} When the request is sent Then the response status is 412 Precondition failed error diff --git a/tests/scenarios/features/v2/given.json b/tests/scenarios/features/v2/given.json index 62f11ecc9..d98f0a2f2 100644 --- a/tests/scenarios/features/v2/given.json +++ b/tests/scenarios/features/v2/given.json @@ -136,7 +136,7 @@ }, { "name": "body", - "value": "{\n \"data\": {\n \"attributes\": {\n \"from\": 1672527600000,\n \"to\": 1704063600000,\n \"indexes\": [\"index-1\", \"index-2\"],\n \"query\": {\"host\": \"abc\", \"service\": \"xyz\"}\n }\n }\n}" + "value": "{\n \"data\": {\n \"attributes\": {\n \"from\": 1672527600000,\n \"to\": 1704063600000,\n \"indexes\": [\"test-index\", \"test-index-2\"],\n \"query\": {\"host\": \"abc\", \"service\": \"xyz\"}\n }\n }\n}" } ], "step": "there is a valid \"deletion_request\" in the system",