Skip to content

Commit 5bddfe5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ec3e1c1 of spec repo
1 parent 61628ec commit 5bddfe5

8 files changed

Lines changed: 211 additions & 25 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51361,10 +51361,24 @@ components:
5136151361
If it is set to "false", the tags will be deleted when the logs are sent to the archive.
5136251362
example: false
5136351363
type: boolean
51364+
lookup_attributes:
51365+
description: An array of attributes to use as lookup keys for the archive.
51366+
example: ["trace_id", "user_id"]
51367+
items:
51368+
description: A lookup attribute name.
51369+
type: string
51370+
type: array
5136451371
name:
5136551372
description: The archive name.
5136651373
example: Nginx Archive
5136751374
type: string
51375+
partitioning_attributes:
51376+
description: An array of attributes to use as partition keys for the archive. The attribute used most frequently for querying should be first.
51377+
example: ["service", "status"]
51378+
items:
51379+
description: A partition attribute name.
51380+
type: string
51381+
type: array
5136851382
query:
5136951383
description: The archive query/filter. Logs matching this query are included in the archive.
5137051384
example: source:nginx
@@ -51420,10 +51434,24 @@ components:
5142051434
If it is set to "false", the tags will be deleted when the logs are sent to the archive.
5142151435
example: false
5142251436
type: boolean
51437+
lookup_attributes:
51438+
description: An array of attributes to use as lookup keys for the archive.
51439+
example: ["trace_id", "user_id"]
51440+
items:
51441+
description: A lookup attribute name.
51442+
type: string
51443+
type: array
5142351444
name:
5142451445
description: The archive name.
5142551446
example: Nginx Archive
5142651447
type: string
51448+
partitioning_attributes:
51449+
description: An array of attributes to use as partition keys for the archive. The attribute used most frequently for querying should be first.
51450+
example: ["service", "status"]
51451+
items:
51452+
description: A partition attribute name.
51453+
type: string
51454+
type: array
5142751455
query:
5142851456
description: The archive query/filter. Logs matching this query are included in the archive.
5142951457
example: source:nginx

examples/v2/logs-archives/CreateLogsArchive.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ public static void main(String[] args) {
3737
.storageAccount("account-name")
3838
.type(LogsArchiveDestinationAzureType.AZURE)))
3939
.includeTags(false)
40+
.lookupAttributes(Arrays.asList("trace_id", "user_id"))
4041
.name("Nginx Archive")
42+
.partitioningAttributes(Arrays.asList("service", "status"))
4143
.query("source:nginx")
4244
.rehydrationMaxScanSizeInGb(100L)
4345
.rehydrationTags(Arrays.asList("team:intake", "team:app")))

examples/v2/logs-archives/UpdateLogsArchive.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ public static void main(String[] args) {
3737
.storageAccount("account-name")
3838
.type(LogsArchiveDestinationAzureType.AZURE)))
3939
.includeTags(false)
40+
.lookupAttributes(Arrays.asList("trace_id", "user_id"))
4041
.name("Nginx Archive")
42+
.partitioningAttributes(Arrays.asList("service", "status"))
4143
.query("source:nginx")
4244
.rehydrationMaxScanSizeInGb(100L)
4345
.rehydrationTags(Arrays.asList("team:intake", "team:app")))

src/main/java/com/datadog/api/client/v2/model/LogsArchiveAttributes.java

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
LogsArchiveAttributes.JSON_PROPERTY_COMPRESSION_METHOD,
2626
LogsArchiveAttributes.JSON_PROPERTY_DESTINATION,
2727
LogsArchiveAttributes.JSON_PROPERTY_INCLUDE_TAGS,
28+
LogsArchiveAttributes.JSON_PROPERTY_LOOKUP_ATTRIBUTES,
2829
LogsArchiveAttributes.JSON_PROPERTY_NAME,
30+
LogsArchiveAttributes.JSON_PROPERTY_PARTITIONING_ATTRIBUTES,
2931
LogsArchiveAttributes.JSON_PROPERTY_QUERY,
3032
LogsArchiveAttributes.JSON_PROPERTY_REHYDRATION_MAX_SCAN_SIZE_IN_GB,
3133
LogsArchiveAttributes.JSON_PROPERTY_REHYDRATION_TAGS,
@@ -45,9 +47,15 @@ public class LogsArchiveAttributes {
4547
public static final String JSON_PROPERTY_INCLUDE_TAGS = "include_tags";
4648
private Boolean includeTags = false;
4749

50+
public static final String JSON_PROPERTY_LOOKUP_ATTRIBUTES = "lookup_attributes";
51+
private List<String> lookupAttributes = null;
52+
4853
public static final String JSON_PROPERTY_NAME = "name";
4954
private String name;
5055

56+
public static final String JSON_PROPERTY_PARTITIONING_ATTRIBUTES = "partitioning_attributes";
57+
private List<String> partitioningAttributes = null;
58+
5159
public static final String JSON_PROPERTY_QUERY = "query";
5260
private String query;
5361

@@ -149,6 +157,35 @@ public void setIncludeTags(Boolean includeTags) {
149157
this.includeTags = includeTags;
150158
}
151159

160+
public LogsArchiveAttributes lookupAttributes(List<String> lookupAttributes) {
161+
this.lookupAttributes = lookupAttributes;
162+
return this;
163+
}
164+
165+
public LogsArchiveAttributes addLookupAttributesItem(String lookupAttributesItem) {
166+
if (this.lookupAttributes == null) {
167+
this.lookupAttributes = new ArrayList<>();
168+
}
169+
this.lookupAttributes.add(lookupAttributesItem);
170+
return this;
171+
}
172+
173+
/**
174+
* An array of attributes to use as lookup keys for the archive.
175+
*
176+
* @return lookupAttributes
177+
*/
178+
@jakarta.annotation.Nullable
179+
@JsonProperty(JSON_PROPERTY_LOOKUP_ATTRIBUTES)
180+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181+
public List<String> getLookupAttributes() {
182+
return lookupAttributes;
183+
}
184+
185+
public void setLookupAttributes(List<String> lookupAttributes) {
186+
this.lookupAttributes = lookupAttributes;
187+
}
188+
152189
public LogsArchiveAttributes name(String name) {
153190
this.name = name;
154191
return this;
@@ -169,6 +206,36 @@ public void setName(String name) {
169206
this.name = name;
170207
}
171208

209+
public LogsArchiveAttributes partitioningAttributes(List<String> partitioningAttributes) {
210+
this.partitioningAttributes = partitioningAttributes;
211+
return this;
212+
}
213+
214+
public LogsArchiveAttributes addPartitioningAttributesItem(String partitioningAttributesItem) {
215+
if (this.partitioningAttributes == null) {
216+
this.partitioningAttributes = new ArrayList<>();
217+
}
218+
this.partitioningAttributes.add(partitioningAttributesItem);
219+
return this;
220+
}
221+
222+
/**
223+
* An array of attributes to use as partition keys for the archive. The attribute used most
224+
* frequently for querying should be first.
225+
*
226+
* @return partitioningAttributes
227+
*/
228+
@jakarta.annotation.Nullable
229+
@JsonProperty(JSON_PROPERTY_PARTITIONING_ATTRIBUTES)
230+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
231+
public List<String> getPartitioningAttributes() {
232+
return partitioningAttributes;
233+
}
234+
235+
public void setPartitioningAttributes(List<String> partitioningAttributes) {
236+
this.partitioningAttributes = partitioningAttributes;
237+
}
238+
172239
public LogsArchiveAttributes query(String query) {
173240
this.query = query;
174241
return this;
@@ -334,7 +401,9 @@ public boolean equals(Object o) {
334401
return Objects.equals(this.compressionMethod, logsArchiveAttributes.compressionMethod)
335402
&& Objects.equals(this.destination, logsArchiveAttributes.destination)
336403
&& Objects.equals(this.includeTags, logsArchiveAttributes.includeTags)
404+
&& Objects.equals(this.lookupAttributes, logsArchiveAttributes.lookupAttributes)
337405
&& Objects.equals(this.name, logsArchiveAttributes.name)
406+
&& Objects.equals(this.partitioningAttributes, logsArchiveAttributes.partitioningAttributes)
338407
&& Objects.equals(this.query, logsArchiveAttributes.query)
339408
&& Objects.equals(
340409
this.rehydrationMaxScanSizeInGb, logsArchiveAttributes.rehydrationMaxScanSizeInGb)
@@ -349,7 +418,9 @@ public int hashCode() {
349418
compressionMethod,
350419
destination,
351420
includeTags,
421+
lookupAttributes,
352422
name,
423+
partitioningAttributes,
353424
query,
354425
rehydrationMaxScanSizeInGb,
355426
rehydrationTags,
@@ -364,7 +435,11 @@ public String toString() {
364435
sb.append(" compressionMethod: ").append(toIndentedString(compressionMethod)).append("\n");
365436
sb.append(" destination: ").append(toIndentedString(destination)).append("\n");
366437
sb.append(" includeTags: ").append(toIndentedString(includeTags)).append("\n");
438+
sb.append(" lookupAttributes: ").append(toIndentedString(lookupAttributes)).append("\n");
367439
sb.append(" name: ").append(toIndentedString(name)).append("\n");
440+
sb.append(" partitioningAttributes: ")
441+
.append(toIndentedString(partitioningAttributes))
442+
.append("\n");
368443
sb.append(" query: ").append(toIndentedString(query)).append("\n");
369444
sb.append(" rehydrationMaxScanSizeInGb: ")
370445
.append(toIndentedString(rehydrationMaxScanSizeInGb))

src/main/java/com/datadog/api/client/v2/model/LogsArchiveCreateRequestAttributes.java

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
LogsArchiveCreateRequestAttributes.JSON_PROPERTY_COMPRESSION_METHOD,
2626
LogsArchiveCreateRequestAttributes.JSON_PROPERTY_DESTINATION,
2727
LogsArchiveCreateRequestAttributes.JSON_PROPERTY_INCLUDE_TAGS,
28+
LogsArchiveCreateRequestAttributes.JSON_PROPERTY_LOOKUP_ATTRIBUTES,
2829
LogsArchiveCreateRequestAttributes.JSON_PROPERTY_NAME,
30+
LogsArchiveCreateRequestAttributes.JSON_PROPERTY_PARTITIONING_ATTRIBUTES,
2931
LogsArchiveCreateRequestAttributes.JSON_PROPERTY_QUERY,
3032
LogsArchiveCreateRequestAttributes.JSON_PROPERTY_REHYDRATION_MAX_SCAN_SIZE_IN_GB,
3133
LogsArchiveCreateRequestAttributes.JSON_PROPERTY_REHYDRATION_TAGS
@@ -44,9 +46,15 @@ public class LogsArchiveCreateRequestAttributes {
4446
public static final String JSON_PROPERTY_INCLUDE_TAGS = "include_tags";
4547
private Boolean includeTags = false;
4648

49+
public static final String JSON_PROPERTY_LOOKUP_ATTRIBUTES = "lookup_attributes";
50+
private List<String> lookupAttributes = null;
51+
4752
public static final String JSON_PROPERTY_NAME = "name";
4853
private String name;
4954

55+
public static final String JSON_PROPERTY_PARTITIONING_ATTRIBUTES = "partitioning_attributes";
56+
private List<String> partitioningAttributes = null;
57+
5058
public static final String JSON_PROPERTY_QUERY = "query";
5159
private String query;
5260

@@ -141,6 +149,35 @@ public void setIncludeTags(Boolean includeTags) {
141149
this.includeTags = includeTags;
142150
}
143151

152+
public LogsArchiveCreateRequestAttributes lookupAttributes(List<String> lookupAttributes) {
153+
this.lookupAttributes = lookupAttributes;
154+
return this;
155+
}
156+
157+
public LogsArchiveCreateRequestAttributes addLookupAttributesItem(String lookupAttributesItem) {
158+
if (this.lookupAttributes == null) {
159+
this.lookupAttributes = new ArrayList<>();
160+
}
161+
this.lookupAttributes.add(lookupAttributesItem);
162+
return this;
163+
}
164+
165+
/**
166+
* An array of attributes to use as lookup keys for the archive.
167+
*
168+
* @return lookupAttributes
169+
*/
170+
@jakarta.annotation.Nullable
171+
@JsonProperty(JSON_PROPERTY_LOOKUP_ATTRIBUTES)
172+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
173+
public List<String> getLookupAttributes() {
174+
return lookupAttributes;
175+
}
176+
177+
public void setLookupAttributes(List<String> lookupAttributes) {
178+
this.lookupAttributes = lookupAttributes;
179+
}
180+
144181
public LogsArchiveCreateRequestAttributes name(String name) {
145182
this.name = name;
146183
return this;
@@ -161,6 +198,38 @@ public void setName(String name) {
161198
this.name = name;
162199
}
163200

201+
public LogsArchiveCreateRequestAttributes partitioningAttributes(
202+
List<String> partitioningAttributes) {
203+
this.partitioningAttributes = partitioningAttributes;
204+
return this;
205+
}
206+
207+
public LogsArchiveCreateRequestAttributes addPartitioningAttributesItem(
208+
String partitioningAttributesItem) {
209+
if (this.partitioningAttributes == null) {
210+
this.partitioningAttributes = new ArrayList<>();
211+
}
212+
this.partitioningAttributes.add(partitioningAttributesItem);
213+
return this;
214+
}
215+
216+
/**
217+
* An array of attributes to use as partition keys for the archive. The attribute used most
218+
* frequently for querying should be first.
219+
*
220+
* @return partitioningAttributes
221+
*/
222+
@jakarta.annotation.Nullable
223+
@JsonProperty(JSON_PROPERTY_PARTITIONING_ATTRIBUTES)
224+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
225+
public List<String> getPartitioningAttributes() {
226+
return partitioningAttributes;
227+
}
228+
229+
public void setPartitioningAttributes(List<String> partitioningAttributes) {
230+
this.partitioningAttributes = partitioningAttributes;
231+
}
232+
164233
public LogsArchiveCreateRequestAttributes query(String query) {
165234
this.query = query;
166235
return this;
@@ -304,7 +373,11 @@ public boolean equals(Object o) {
304373
this.compressionMethod, logsArchiveCreateRequestAttributes.compressionMethod)
305374
&& Objects.equals(this.destination, logsArchiveCreateRequestAttributes.destination)
306375
&& Objects.equals(this.includeTags, logsArchiveCreateRequestAttributes.includeTags)
376+
&& Objects.equals(
377+
this.lookupAttributes, logsArchiveCreateRequestAttributes.lookupAttributes)
307378
&& Objects.equals(this.name, logsArchiveCreateRequestAttributes.name)
379+
&& Objects.equals(
380+
this.partitioningAttributes, logsArchiveCreateRequestAttributes.partitioningAttributes)
308381
&& Objects.equals(this.query, logsArchiveCreateRequestAttributes.query)
309382
&& Objects.equals(
310383
this.rehydrationMaxScanSizeInGb,
@@ -320,7 +393,9 @@ public int hashCode() {
320393
compressionMethod,
321394
destination,
322395
includeTags,
396+
lookupAttributes,
323397
name,
398+
partitioningAttributes,
324399
query,
325400
rehydrationMaxScanSizeInGb,
326401
rehydrationTags,
@@ -334,7 +409,11 @@ public String toString() {
334409
sb.append(" compressionMethod: ").append(toIndentedString(compressionMethod)).append("\n");
335410
sb.append(" destination: ").append(toIndentedString(destination)).append("\n");
336411
sb.append(" includeTags: ").append(toIndentedString(includeTags)).append("\n");
412+
sb.append(" lookupAttributes: ").append(toIndentedString(lookupAttributes)).append("\n");
337413
sb.append(" name: ").append(toIndentedString(name)).append("\n");
414+
sb.append(" partitioningAttributes: ")
415+
.append(toIndentedString(partitioningAttributes))
416+
.append("\n");
338417
sb.append(" query: ").append(toIndentedString(query)).append("\n");
339418
sb.append(" rehydrationMaxScanSizeInGb: ")
340419
.append(toIndentedString(rehydrationMaxScanSizeInGb))

0 commit comments

Comments
 (0)