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 @@ -185,6 +185,9 @@ def __init__(self, **kwargs):
:param index: Optional name of the Splunk index where logs are written.
:type index: str, optional

:param indexed_fields: List of log field names to send as indexed fields to Splunk HEC. Available only when `encoding` is `json`.
:type indexed_fields: [str], optional

:param sourcetype: The Splunk sourcetype to assign to log events.
:type sourcetype: str, optional

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def openapi_types(_):
"endpoint_url_key": (str,),
"id": (str,),
"index": (str,),
"indexed_fields": ([str],),
"inputs": ([str],),
"sourcetype": (str,),
"token_key": (str,),
Expand All @@ -63,6 +64,7 @@ def openapi_types(_):
"endpoint_url_key": "endpoint_url_key",
"id": "id",
"index": "index",
"indexed_fields": "indexed_fields",
"inputs": "inputs",
"sourcetype": "sourcetype",
"token_key": "token_key",
Expand All @@ -85,6 +87,7 @@ def __init__(
encoding: Union[ObservabilityPipelineSplunkHecDestinationEncoding, UnsetType] = unset,
endpoint_url_key: Union[str, UnsetType] = unset,
index: Union[str, UnsetType] = unset,
indexed_fields: Union[List[str], UnsetType] = unset,
sourcetype: Union[str, UnsetType] = unset,
token_key: Union[str, UnsetType] = unset,
**kwargs,
Expand Down Expand Up @@ -113,6 +116,9 @@ def __init__(
:param index: Optional name of the Splunk index where logs are written.
:type index: str, optional

:param indexed_fields: List of log field names to send as indexed fields to Splunk HEC. Available only when ``encoding`` is ``json``.
:type indexed_fields: [str], optional

:param inputs: A list of component IDs whose output is used as the ``input`` for this component.
:type inputs: [str]

Expand All @@ -135,6 +141,8 @@ def __init__(
kwargs["endpoint_url_key"] = endpoint_url_key
if index is not unset:
kwargs["index"] = index
if indexed_fields is not unset:
kwargs["indexed_fields"] = indexed_fields
if sourcetype is not unset:
kwargs["sourcetype"] = sourcetype
if token_key is not unset:
Expand Down
Loading