From bc78bb961dd19a290c112d0f2fdfe68791840174 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 12 Mar 2026 09:28:21 +0000 Subject: [PATCH] Regenerate client from commit f962957 of spec repo --- .generator/schemas/v2/openapi.yaml | 9 +++++ ...rvabilityPipelineSplunkHecDestination.java | 38 +++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 3bec741a126..8efc3e0e683 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -46462,6 +46462,15 @@ components: description: Optional name of the Splunk index where logs are written. example: main type: string + indexed_fields: + description: List of log field names to send as indexed fields to Splunk + HEC. Available only when `encoding` is `json`. + example: + - service + - host + items: + type: string + type: array inputs: description: A list of component IDs whose output is used as the `input` for this component. diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecDestination.java index 57a812dc19a..f0cfc1cac21 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecDestination.java @@ -32,6 +32,7 @@ ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_ENDPOINT_URL_KEY, ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_ID, ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_INDEX, + ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_INDEXED_FIELDS, ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_INPUTS, ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_SOURCETYPE, ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_TOKEN_KEY, @@ -59,6 +60,9 @@ public class ObservabilityPipelineSplunkHecDestination { public static final String JSON_PROPERTY_INDEX = "index"; private String index; + public static final String JSON_PROPERTY_INDEXED_FIELDS = "indexed_fields"; + private List indexedFields = null; + public static final String JSON_PROPERTY_INPUTS = "inputs"; private List inputs = new ArrayList<>(); @@ -221,6 +225,36 @@ public void setIndex(String index) { this.index = index; } + public ObservabilityPipelineSplunkHecDestination indexedFields(List indexedFields) { + this.indexedFields = indexedFields; + return this; + } + + public ObservabilityPipelineSplunkHecDestination addIndexedFieldsItem(String indexedFieldsItem) { + if (this.indexedFields == null) { + this.indexedFields = new ArrayList<>(); + } + this.indexedFields.add(indexedFieldsItem); + return this; + } + + /** + * List of log field names to send as indexed fields to Splunk HEC. Available only when + * encoding is json. + * + * @return indexedFields + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INDEXED_FIELDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getIndexedFields() { + return indexedFields; + } + + public void setIndexedFields(List indexedFields) { + this.indexedFields = indexedFields; + } + public ObservabilityPipelineSplunkHecDestination inputs(List inputs) { this.inputs = inputs; return this; @@ -379,6 +413,8 @@ public boolean equals(Object o) { this.endpointUrlKey, observabilityPipelineSplunkHecDestination.endpointUrlKey) && Objects.equals(this.id, observabilityPipelineSplunkHecDestination.id) && Objects.equals(this.index, observabilityPipelineSplunkHecDestination.index) + && Objects.equals( + this.indexedFields, observabilityPipelineSplunkHecDestination.indexedFields) && Objects.equals(this.inputs, observabilityPipelineSplunkHecDestination.inputs) && Objects.equals(this.sourcetype, observabilityPipelineSplunkHecDestination.sourcetype) && Objects.equals(this.tokenKey, observabilityPipelineSplunkHecDestination.tokenKey) @@ -397,6 +433,7 @@ public int hashCode() { endpointUrlKey, id, index, + indexedFields, inputs, sourcetype, tokenKey, @@ -416,6 +453,7 @@ public String toString() { sb.append(" endpointUrlKey: ").append(toIndentedString(endpointUrlKey)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" indexedFields: ").append(toIndentedString(indexedFields)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); sb.append(" sourcetype: ").append(toIndentedString(sourcetype)).append("\n"); sb.append(" tokenKey: ").append(toIndentedString(tokenKey)).append("\n");