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
5 changes: 5 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42913,6 +42913,11 @@ components:

**Supported pipeline types:** logs, metrics'
properties:
address_key:
description: Name of the environment variable or secret that holds the listen
address for the Datadog Agent source.
example: DATADOG_AGENT_ADDRESS
type: string
id:
description: The unique identifier for this component. Used in other parts
of the pipeline to reference this component (for example, as the `input`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* <p><strong>Supported pipeline types:</strong> logs, metrics
*/
@JsonPropertyOrder({
ObservabilityPipelineDatadogAgentSource.JSON_PROPERTY_ADDRESS_KEY,
ObservabilityPipelineDatadogAgentSource.JSON_PROPERTY_ID,
ObservabilityPipelineDatadogAgentSource.JSON_PROPERTY_TLS,
ObservabilityPipelineDatadogAgentSource.JSON_PROPERTY_TYPE
Expand All @@ -31,6 +32,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineDatadogAgentSource {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_ADDRESS_KEY = "address_key";
private String addressKey;

public static final String JSON_PROPERTY_ID = "id";
private String id;

Expand All @@ -53,6 +57,28 @@ public ObservabilityPipelineDatadogAgentSource(
this.unparsed |= !type.isValid();
}

public ObservabilityPipelineDatadogAgentSource addressKey(String addressKey) {
this.addressKey = addressKey;
return this;
}

/**
* Name of the environment variable or secret that holds the listen address for the Datadog Agent
* source.
*
* @return addressKey
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ADDRESS_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAddressKey() {
return addressKey;
}

public void setAddressKey(String addressKey) {
this.addressKey = addressKey;
}

public ObservabilityPipelineDatadogAgentSource id(String id) {
this.id = id;
return this;
Expand Down Expand Up @@ -178,7 +204,8 @@ public boolean equals(Object o) {
}
ObservabilityPipelineDatadogAgentSource observabilityPipelineDatadogAgentSource =
(ObservabilityPipelineDatadogAgentSource) o;
return Objects.equals(this.id, observabilityPipelineDatadogAgentSource.id)
return Objects.equals(this.addressKey, observabilityPipelineDatadogAgentSource.addressKey)
&& Objects.equals(this.id, observabilityPipelineDatadogAgentSource.id)
&& Objects.equals(this.tls, observabilityPipelineDatadogAgentSource.tls)
&& Objects.equals(this.type, observabilityPipelineDatadogAgentSource.type)
&& Objects.equals(
Expand All @@ -188,13 +215,14 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(id, tls, type, additionalProperties);
return Objects.hash(addressKey, id, tls, type, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineDatadogAgentSource {\n");
sb.append(" addressKey: ").append(toIndentedString(addressKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" tls: ").append(toIndentedString(tls)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
Expand Down
Loading