Skip to content

Commit 4b41479

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update Public API for OP Splunk HEC destination indexed_fields (#3292)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent a0d8bd9 commit 4b41479

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46462,6 +46462,15 @@ components:
4646246462
description: Optional name of the Splunk index where logs are written.
4646346463
example: main
4646446464
type: string
46465+
indexed_fields:
46466+
description: List of log field names to send as indexed fields to Splunk
46467+
HEC. Available only when `encoding` is `json`.
46468+
example:
46469+
- service
46470+
- host
46471+
items:
46472+
type: string
46473+
type: array
4646546474
inputs:
4646646475
description: A list of component IDs whose output is used as the `input`
4646746476
for this component.

src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ def __init__(self, **kwargs):
185185
:param index: Optional name of the Splunk index where logs are written.
186186
:type index: str, optional
187187
188+
:param indexed_fields: List of log field names to send as indexed fields to Splunk HEC. Available only when `encoding` is `json`.
189+
:type indexed_fields: [str], optional
190+
188191
:param sourcetype: The Splunk sourcetype to assign to log events.
189192
:type sourcetype: str, optional
190193

src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_destination.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def openapi_types(_):
5050
"endpoint_url_key": (str,),
5151
"id": (str,),
5252
"index": (str,),
53+
"indexed_fields": ([str],),
5354
"inputs": ([str],),
5455
"sourcetype": (str,),
5556
"token_key": (str,),
@@ -63,6 +64,7 @@ def openapi_types(_):
6364
"endpoint_url_key": "endpoint_url_key",
6465
"id": "id",
6566
"index": "index",
67+
"indexed_fields": "indexed_fields",
6668
"inputs": "inputs",
6769
"sourcetype": "sourcetype",
6870
"token_key": "token_key",
@@ -85,6 +87,7 @@ def __init__(
8587
encoding: Union[ObservabilityPipelineSplunkHecDestinationEncoding, UnsetType] = unset,
8688
endpoint_url_key: Union[str, UnsetType] = unset,
8789
index: Union[str, UnsetType] = unset,
90+
indexed_fields: Union[List[str], UnsetType] = unset,
8891
sourcetype: Union[str, UnsetType] = unset,
8992
token_key: Union[str, UnsetType] = unset,
9093
**kwargs,
@@ -113,6 +116,9 @@ def __init__(
113116
:param index: Optional name of the Splunk index where logs are written.
114117
:type index: str, optional
115118
119+
:param indexed_fields: List of log field names to send as indexed fields to Splunk HEC. Available only when ``encoding`` is ``json``.
120+
:type indexed_fields: [str], optional
121+
116122
:param inputs: A list of component IDs whose output is used as the ``input`` for this component.
117123
:type inputs: [str]
118124
@@ -135,6 +141,8 @@ def __init__(
135141
kwargs["endpoint_url_key"] = endpoint_url_key
136142
if index is not unset:
137143
kwargs["index"] = index
144+
if indexed_fields is not unset:
145+
kwargs["indexed_fields"] = indexed_fields
138146
if sourcetype is not unset:
139147
kwargs["sourcetype"] = sourcetype
140148
if token_key is not unset:

0 commit comments

Comments
 (0)