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
9 changes: 9 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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<String> indexedFields = null;

public static final String JSON_PROPERTY_INPUTS = "inputs";
private List<String> inputs = new ArrayList<>();

Expand Down Expand Up @@ -221,6 +225,36 @@ public void setIndex(String index) {
this.index = index;
}

public ObservabilityPipelineSplunkHecDestination indexedFields(List<String> 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 <code>
* encoding</code> is <code>json</code>.
*
* @return indexedFields
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_INDEXED_FIELDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getIndexedFields() {
return indexedFields;
}

public void setIndexedFields(List<String> indexedFields) {
this.indexedFields = indexedFields;
}

public ObservabilityPipelineSplunkHecDestination inputs(List<String> inputs) {
this.inputs = inputs;
return this;
Expand Down Expand Up @@ -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)
Expand All @@ -397,6 +433,7 @@ public int hashCode() {
endpointUrlKey,
id,
index,
indexedFields,
inputs,
sourcetype,
tokenKey,
Expand All @@ -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");
Expand Down
Loading