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 @@ -42,6 +42,9 @@ class ObservabilityPipelineSplunkHecDestination
# Optional name of the Splunk index where logs are written.
attr_accessor :index

# List of log field names to send as indexed fields to Splunk HEC. Available only when `encoding` is `json`.
attr_accessor :indexed_fields

# A list of component IDs whose output is used as the `input` for this component.
attr_reader :inputs

Expand All @@ -66,6 +69,7 @@ def self.attribute_map
:'endpoint_url_key' => :'endpoint_url_key',
:'id' => :'id',
:'index' => :'index',
:'indexed_fields' => :'indexed_fields',
:'inputs' => :'inputs',
:'sourcetype' => :'sourcetype',
:'token_key' => :'token_key',
Expand All @@ -83,6 +87,7 @@ def self.openapi_types
:'endpoint_url_key' => :'String',
:'id' => :'String',
:'index' => :'String',
:'indexed_fields' => :'Array<String>',
:'inputs' => :'Array<String>',
:'sourcetype' => :'String',
:'token_key' => :'String',
Expand Down Expand Up @@ -132,6 +137,12 @@ def initialize(attributes = {})
self.index = attributes[:'index']
end

if attributes.key?(:'indexed_fields')
if (value = attributes[:'indexed_fields']).is_a?(Array)
self.indexed_fields = value
end
end

if attributes.key?(:'inputs')
if (value = attributes[:'inputs']).is_a?(Array)
self.inputs = value
Expand Down Expand Up @@ -223,6 +234,7 @@ def ==(o)
endpoint_url_key == o.endpoint_url_key &&
id == o.id &&
index == o.index &&
indexed_fields == o.indexed_fields &&
inputs == o.inputs &&
sourcetype == o.sourcetype &&
token_key == o.token_key &&
Expand All @@ -234,7 +246,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[auto_extract_timestamp, buffer, encoding, endpoint_url_key, id, index, inputs, sourcetype, token_key, type, additional_properties].hash
[auto_extract_timestamp, buffer, encoding, endpoint_url_key, id, index, indexed_fields, inputs, sourcetype, token_key, type, additional_properties].hash
end
end
end
Loading