Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-12-05 14:56:06.302730",
"spec_repo_commit": "cfc6b497"
"regenerated": "2024-12-05 16:15:46.931965",
"spec_repo_commit": "843392e2"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-12-05 14:56:06.322740",
"spec_repo_commit": "cfc6b497"
"regenerated": "2024-12-05 16:15:46.951025",
"spec_repo_commit": "843392e2"
}
}
}
16 changes: 9 additions & 7 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 several minutes to fully create a deletion request depending on the
target query and timeframe.
example: true
type: boolean
org_id:
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/data-deletion/CreateDataDeletionRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static void main(String[] args) {
.attributes(
new CreateDataDeletionRequestBodyAttributes()
.from(1672527600000L)
.indexes(Arrays.asList("index-1", "index-2"))
.indexes(Arrays.asList("test-index", "test-index-2"))
.query(
Map.ofEntries(
Map.entry("host", "abc"), Map.entry("service", "xyz")))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ public CompletableFuture<CreateDataDeletionResponseBody> createDataDeletionReque
}

/**
* 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.
*
* @param product Name of the product to be deleted, either <code>logs</code> or <code>rum</code>.
* (required)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ public DataDeletionResponseItemAttributes isCreated(Boolean isCreated) {
}

/**
* Whether the deletion request is fully created or not.
* Whether the deletion request is fully created or not. It can take several minutes to fully
* create a deletion request depending on the target query and timeframe.
*
* @return isCreated
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-15T08:56:51.182Z
2024-12-05T09:23:41.160Z
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-15T08:57:02.769Z
2024-12-05T09:23:41.674Z
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"httpRequest": {
"body": {
"type": "JSON",
"json": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}"
"json": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}"
},
"headers": {},
"method": "POST",
Expand All @@ -12,7 +12,7 @@
"secure": true
},
"httpResponse": {
"body": "{\"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\"}}",
"body": "{\"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\"}}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
Expand All @@ -27,18 +27,18 @@
"timeToLive": {
"unlimited": true
},
"id": "5cd4cf47-94a7-8539-6a9c-e898d8edd4fb"
"id": "599b5d26-fcc8-db18-1a6e-dfc958964914"
},
{
"httpRequest": {
"headers": {},
"method": "PUT",
"path": "/api/v2/deletion/requests/303/cancel",
"path": "/api/v2/deletion/requests/523/cancel",
"keepAlive": false,
"secure": true
},
"httpResponse": {
"body": "{\"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\"}}",
"body": "{\"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\"}}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
Expand All @@ -53,18 +53,18 @@
"timeToLive": {
"unlimited": true
},
"id": "5c48cf25-6248-675c-8bce-de02c7c5fb57"
"id": "ec6f7ff8-dba2-9b00-6429-8e9f391044e3"
},
{
"httpRequest": {
"headers": {},
"method": "PUT",
"path": "/api/v2/deletion/requests/303/cancel",
"path": "/api/v2/deletion/requests/523/cancel",
"keepAlive": false,
"secure": true
},
"httpResponse": {
"body": "{\"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\"}}",
"body": "{\"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\"}}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
Expand All @@ -79,6 +79,6 @@
"timeToLive": {
"unlimited": true
},
"id": "5c48cf25-6248-675c-8bce-de02c7c5fb58"
"id": "ec6f7ff8-dba2-9b00-6429-8e9f391044e4"
}
]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-15T08:57:14.890Z
2024-12-05T09:23:42.850Z
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-15T08:59:09.810Z
2024-12-05T09:23:43.197Z
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"httpRequest": {
"body": {
"type": "JSON",
"json": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}"
"json": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}"
},
"headers": {},
"method": "POST",
Expand All @@ -12,7 +12,7 @@
"secure": true
},
"httpResponse": {
"body": "{\"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\"}}",
"body": "{\"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\"}}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
Expand All @@ -27,18 +27,18 @@
"timeToLive": {
"unlimited": true
},
"id": "5cd4cf47-94a7-8539-6a9c-e898d8edd4fd"
"id": "599b5d26-fcc8-db18-1a6e-dfc958964916"
},
{
"httpRequest": {
"headers": {},
"method": "PUT",
"path": "/api/v2/deletion/requests/305/cancel",
"path": "/api/v2/deletion/requests/524/cancel",
"keepAlive": false,
"secure": true
},
"httpResponse": {
"body": "{\"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\"}}",
"body": "{\"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\"}}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
Expand All @@ -53,6 +53,6 @@
"timeToLive": {
"unlimited": true
},
"id": "7ee59a12-6bea-0625-a080-1c7a65384828"
"id": "f7d7b19c-0391-4246-c87c-6d32dfeb6b9f"
}
]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-15T08:59:22.532Z
2024-12-05T09:23:44.038Z
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"httpRequest": {
"body": {
"type": "JSON",
"json": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"query\":{},\"to\":1704063600000}}}"
"json": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"query\":{},\"to\":1704063600000}}}"
},
"headers": {},
"method": "POST",
Expand All @@ -27,6 +27,6 @@
"timeToLive": {
"unlimited": true
},
"id": "38a81782-900f-1977-8fe0-51f319bdc048"
"id": "dfc8b718-20e3-903c-facc-d726d2607b48"
}
]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-15T08:57:26.678Z
2024-12-05T09:23:44.395Z
Loading
Loading