Skip to content
Open
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 @@ -31470,6 +31470,10 @@ components:
items:
$ref: '#/components/schemas/ObservabilityPipelineConfigSourceItem'
type: array
use_legacy_search_syntax:
description: Use this field to configure the pipeline's filter queries to
use the deprecated search syntax.
type: boolean
required:
- sources
- destinations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
@JsonPropertyOrder({
ObservabilityPipelineConfig.JSON_PROPERTY_DESTINATIONS,
ObservabilityPipelineConfig.JSON_PROPERTY_PROCESSORS,
ObservabilityPipelineConfig.JSON_PROPERTY_SOURCES
ObservabilityPipelineConfig.JSON_PROPERTY_SOURCES,
ObservabilityPipelineConfig.JSON_PROPERTY_USE_LEGACY_SEARCH_SYNTAX
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
Expand All @@ -38,6 +39,9 @@ public class ObservabilityPipelineConfig {
public static final String JSON_PROPERTY_SOURCES = "sources";
private List<ObservabilityPipelineConfigSourceItem> sources = new ArrayList<>();

public static final String JSON_PROPERTY_USE_LEGACY_SEARCH_SYNTAX = "use_legacy_search_syntax";
private Boolean useLegacySearchSyntax;

public ObservabilityPipelineConfig() {}

@JsonCreator
Expand Down Expand Up @@ -146,6 +150,27 @@ public void setSources(List<ObservabilityPipelineConfigSourceItem> sources) {
this.sources = sources;
}

public ObservabilityPipelineConfig useLegacySearchSyntax(Boolean useLegacySearchSyntax) {
this.useLegacySearchSyntax = useLegacySearchSyntax;
return this;
}

/**
* Use this field to configure the pipeline's filter queries to use the deprecated search syntax.
*
* @return useLegacySearchSyntax
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_USE_LEGACY_SEARCH_SYNTAX)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getUseLegacySearchSyntax() {
return useLegacySearchSyntax;
}

public void setUseLegacySearchSyntax(Boolean useLegacySearchSyntax) {
this.useLegacySearchSyntax = useLegacySearchSyntax;
}

/**
* 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 @@ -205,13 +230,16 @@ public boolean equals(Object o) {
return Objects.equals(this.destinations, observabilityPipelineConfig.destinations)
&& Objects.equals(this.processors, observabilityPipelineConfig.processors)
&& Objects.equals(this.sources, observabilityPipelineConfig.sources)
&& Objects.equals(
this.useLegacySearchSyntax, observabilityPipelineConfig.useLegacySearchSyntax)
&& Objects.equals(
this.additionalProperties, observabilityPipelineConfig.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(destinations, processors, sources, additionalProperties);
return Objects.hash(
destinations, processors, sources, useLegacySearchSyntax, additionalProperties);
}

@Override
Expand All @@ -221,6 +249,9 @@ public String toString() {
sb.append(" destinations: ").append(toIndentedString(destinations)).append("\n");
sb.append(" processors: ").append(toIndentedString(processors)).append("\n");
sb.append(" sources: ").append(toIndentedString(sources)).append("\n");
sb.append(" useLegacySearchSyntax: ")
.append(toIndentedString(useLegacySearchSyntax))
.append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
Expand Down
Loading