Skip to content

Commit 071446d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Make datadog agent source address configurable in Observability Pipelines (#3311)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 79a07df commit 071446d

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42913,6 +42913,11 @@ components:
4291342913

4291442914
**Supported pipeline types:** logs, metrics'
4291542915
properties:
42916+
address_key:
42917+
description: Name of the environment variable or secret that holds the listen
42918+
address for the Datadog Agent source.
42919+
example: DATADOG_AGENT_ADDRESS
42920+
type: string
4291642921
id:
4291742922
description: The unique identifier for this component. Used in other parts
4291842923
of the pipeline to reference this component (for example, as the `input`

src/datadog_api_client/v2/model/observability_pipeline_config_source_item.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ def __init__(self, **kwargs):
1515
"""
1616
A data source for the pipeline.
1717
18+
:param address_key: Name of the environment variable or secret that holds the listen address for the Datadog Agent source.
19+
:type address_key: str, optional
20+
1821
:param id: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
1922
:type id: str
2023
@@ -24,9 +27,6 @@ def __init__(self, **kwargs):
2427
:param type: The source type. The value should always be `datadog_agent`.
2528
:type type: ObservabilityPipelineDatadogAgentSourceType
2629
27-
:param address_key: Name of the environment variable or secret that holds the Firehose delivery stream address.
28-
:type address_key: str, optional
29-
3030
:param auth: AWS authentication credentials used for accessing AWS services such as S3.
3131
If omitted, the system’s default credentials are used (for example, the IAM role and environment variables).
3232
:type auth: ObservabilityPipelineAwsAuth, optional

src/datadog_api_client/v2/model/observability_pipeline_datadog_agent_source.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ def openapi_types(_):
2929
)
3030

3131
return {
32+
"address_key": (str,),
3233
"id": (str,),
3334
"tls": (ObservabilityPipelineTls,),
3435
"type": (ObservabilityPipelineDatadogAgentSourceType,),
3536
}
3637

3738
attribute_map = {
39+
"address_key": "address_key",
3840
"id": "id",
3941
"tls": "tls",
4042
"type": "type",
@@ -44,6 +46,7 @@ def __init__(
4446
self_,
4547
id: str,
4648
type: ObservabilityPipelineDatadogAgentSourceType,
49+
address_key: Union[str, UnsetType] = unset,
4750
tls: Union[ObservabilityPipelineTls, UnsetType] = unset,
4851
**kwargs,
4952
):
@@ -52,6 +55,9 @@ def __init__(
5255
5356
**Supported pipeline types:** logs, metrics
5457
58+
:param address_key: Name of the environment variable or secret that holds the listen address for the Datadog Agent source.
59+
:type address_key: str, optional
60+
5561
:param id: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the ``input`` to downstream components).
5662
:type id: str
5763
@@ -61,6 +67,8 @@ def __init__(
6167
:param type: The source type. The value should always be ``datadog_agent``.
6268
:type type: ObservabilityPipelineDatadogAgentSourceType
6369
"""
70+
if address_key is not unset:
71+
kwargs["address_key"] = address_key
6472
if tls is not unset:
6573
kwargs["tls"] = tls
6674
super().__init__(kwargs)

0 commit comments

Comments
 (0)