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
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40833,6 +40833,8 @@ components:
type: integer
type:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
when_full:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
type: object
ObservabilityPipelineMemoryBufferSizeOptions:
description: Options for configuring a memory buffer by queue length.
Expand All @@ -40844,6 +40846,8 @@ components:
type: integer
type:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
when_full:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
type: object
ObservabilityPipelineMetadataEntry:
description: A custom metadata entry.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
/** Options for configuring a memory buffer by byte size. */
@JsonPropertyOrder({
ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_MAX_SIZE,
ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_TYPE
ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_TYPE,
ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_WHEN_FULL
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
Expand All @@ -32,6 +33,10 @@ public class ObservabilityPipelineMemoryBufferOptions {
private ObservabilityPipelineBufferOptionsMemoryType type =
ObservabilityPipelineBufferOptionsMemoryType.MEMORY;

public static final String JSON_PROPERTY_WHEN_FULL = "when_full";
private ObservabilityPipelineBufferOptionsWhenFull whenFull =
ObservabilityPipelineBufferOptionsWhenFull.BLOCK;

public ObservabilityPipelineMemoryBufferOptions maxSize(Long maxSize) {
this.maxSize = maxSize;
return this;
Expand Down Expand Up @@ -79,6 +84,32 @@ public void setType(ObservabilityPipelineBufferOptionsMemoryType type) {
this.type = type;
}

public ObservabilityPipelineMemoryBufferOptions whenFull(
ObservabilityPipelineBufferOptionsWhenFull whenFull) {
this.whenFull = whenFull;
this.unparsed |= !whenFull.isValid();
return this;
}

/**
* Behavior when the buffer is full (block and stop accepting new events, or drop new events)
*
* @return whenFull
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_WHEN_FULL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ObservabilityPipelineBufferOptionsWhenFull getWhenFull() {
return whenFull;
}

public void setWhenFull(ObservabilityPipelineBufferOptionsWhenFull whenFull) {
if (!whenFull.isValid()) {
this.unparsed = true;
}
this.whenFull = whenFull;
}

/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
Expand Down Expand Up @@ -138,14 +169,15 @@ public boolean equals(Object o) {
(ObservabilityPipelineMemoryBufferOptions) o;
return Objects.equals(this.maxSize, observabilityPipelineMemoryBufferOptions.maxSize)
&& Objects.equals(this.type, observabilityPipelineMemoryBufferOptions.type)
&& Objects.equals(this.whenFull, observabilityPipelineMemoryBufferOptions.whenFull)
&& Objects.equals(
this.additionalProperties,
observabilityPipelineMemoryBufferOptions.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(maxSize, type, additionalProperties);
return Objects.hash(maxSize, type, whenFull, additionalProperties);
}

@Override
Expand All @@ -154,6 +186,7 @@ public String toString() {
sb.append("class ObservabilityPipelineMemoryBufferOptions {\n");
sb.append(" maxSize: ").append(toIndentedString(maxSize)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" whenFull: ").append(toIndentedString(whenFull)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
/** Options for configuring a memory buffer by queue length. */
@JsonPropertyOrder({
ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_MAX_EVENTS,
ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_TYPE
ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_TYPE,
ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_WHEN_FULL
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
Expand All @@ -32,6 +33,10 @@ public class ObservabilityPipelineMemoryBufferSizeOptions {
private ObservabilityPipelineBufferOptionsMemoryType type =
ObservabilityPipelineBufferOptionsMemoryType.MEMORY;

public static final String JSON_PROPERTY_WHEN_FULL = "when_full";
private ObservabilityPipelineBufferOptionsWhenFull whenFull =
ObservabilityPipelineBufferOptionsWhenFull.BLOCK;

public ObservabilityPipelineMemoryBufferSizeOptions maxEvents(Long maxEvents) {
this.maxEvents = maxEvents;
return this;
Expand Down Expand Up @@ -79,6 +84,32 @@ public void setType(ObservabilityPipelineBufferOptionsMemoryType type) {
this.type = type;
}

public ObservabilityPipelineMemoryBufferSizeOptions whenFull(
ObservabilityPipelineBufferOptionsWhenFull whenFull) {
this.whenFull = whenFull;
this.unparsed |= !whenFull.isValid();
return this;
}

/**
* Behavior when the buffer is full (block and stop accepting new events, or drop new events)
*
* @return whenFull
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_WHEN_FULL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ObservabilityPipelineBufferOptionsWhenFull getWhenFull() {
return whenFull;
}

public void setWhenFull(ObservabilityPipelineBufferOptionsWhenFull whenFull) {
if (!whenFull.isValid()) {
this.unparsed = true;
}
this.whenFull = whenFull;
}

/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
Expand Down Expand Up @@ -139,14 +170,15 @@ public boolean equals(Object o) {
(ObservabilityPipelineMemoryBufferSizeOptions) o;
return Objects.equals(this.maxEvents, observabilityPipelineMemoryBufferSizeOptions.maxEvents)
&& Objects.equals(this.type, observabilityPipelineMemoryBufferSizeOptions.type)
&& Objects.equals(this.whenFull, observabilityPipelineMemoryBufferSizeOptions.whenFull)
&& Objects.equals(
this.additionalProperties,
observabilityPipelineMemoryBufferSizeOptions.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(maxEvents, type, additionalProperties);
return Objects.hash(maxEvents, type, whenFull, additionalProperties);
}

@Override
Expand All @@ -155,6 +187,7 @@ public String toString() {
sb.append("class ObservabilityPipelineMemoryBufferSizeOptions {\n");
sb.append(" maxEvents: ").append(toIndentedString(maxEvents)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" whenFull: ").append(toIndentedString(whenFull)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
Expand Down
Loading