Skip to content

Commit be143fe

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2558d47 of spec repo
1 parent a829a4a commit be143fe

7 files changed

Lines changed: 196 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35701,6 +35701,7 @@ components:
3570135701
- $ref: '#/components/schemas/ObservabilityPipelineHttpClientSource'
3570235702
- $ref: '#/components/schemas/ObservabilityPipelineLogstashSource'
3570335703
- $ref: '#/components/schemas/ObservabilityPipelineSocketSource'
35704+
- $ref: '#/components/schemas/ObservabilityPipelineOpentelemetrySource'
3570435705
ObservabilityPipelineCrowdStrikeNextGenSiemDestination:
3570535706
description: The `crowdstrike_next_gen_siem` destination forwards logs to CrowdStrike
3570635707
Next Gen SIEM.
@@ -37180,6 +37181,45 @@ components:
3718037181
type: string
3718137182
x-enum-varnames:
3718237183
- OPENSEARCH
37184+
ObservabilityPipelineOpentelemetrySource:
37185+
description: The `opentelemetry` source receives telemetry data using the OpenTelemetry
37186+
Protocol (OTLP) over gRPC and HTTP.
37187+
properties:
37188+
grpc_address_key:
37189+
description: Environment variable name containing the gRPC server address
37190+
for receiving OTLP data. Must be a valid environment variable name (alphanumeric
37191+
characters and underscores only).
37192+
example: OTEL_GRPC_ADDRESS
37193+
type: string
37194+
http_address_key:
37195+
description: Environment variable name containing the HTTP server address
37196+
for receiving OTLP data. Must be a valid environment variable name (alphanumeric
37197+
characters and underscores only).
37198+
example: OTEL_HTTP_ADDRESS
37199+
type: string
37200+
id:
37201+
description: The unique identifier for this component. Used to reference
37202+
this component in other parts of the pipeline (e.g., as input to downstream
37203+
components).
37204+
example: opentelemetry-source
37205+
type: string
37206+
tls:
37207+
$ref: '#/components/schemas/ObservabilityPipelineTls'
37208+
type:
37209+
$ref: '#/components/schemas/ObservabilityPipelineOpentelemetrySourceType'
37210+
required:
37211+
- id
37212+
- type
37213+
type: object
37214+
ObservabilityPipelineOpentelemetrySourceType:
37215+
default: opentelemetry
37216+
description: The source type. The value should always be `opentelemetry`.
37217+
enum:
37218+
- opentelemetry
37219+
example: opentelemetry
37220+
type: string
37221+
x-enum-varnames:
37222+
- OPENTELEMETRY
3718337223
ObservabilityPipelineParseGrokProcessor:
3718437224
description: The `parse_grok` processor extracts structured fields from unstructured
3718537225
log messages using Grok patterns.

docs/datadog_api_client.v2.model.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16104,6 +16104,20 @@ datadog\_api\_client.v2.model.observability\_pipeline\_open\_search\_destination
1610416104
:members:
1610516105
:show-inheritance:
1610616106

16107+
datadog\_api\_client.v2.model.observability\_pipeline\_opentelemetry\_source module
16108+
-----------------------------------------------------------------------------------
16109+
16110+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_opentelemetry_source
16111+
:members:
16112+
:show-inheritance:
16113+
16114+
datadog\_api\_client.v2.model.observability\_pipeline\_opentelemetry\_source\_type module
16115+
-----------------------------------------------------------------------------------------
16116+
16117+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_opentelemetry_source_type
16118+
:members:
16119+
:show-inheritance:
16120+
1610716121
datadog\_api\_client.v2.model.observability\_pipeline\_parse\_grok\_processor module
1610816122
------------------------------------------------------------------------------------
1610916123

src/datadog_api_client/v2/model/observability_pipeline_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@
110110
)
111111
from datadog_api_client.v2.model.observability_pipeline_logstash_source import ObservabilityPipelineLogstashSource
112112
from datadog_api_client.v2.model.observability_pipeline_socket_source import ObservabilityPipelineSocketSource
113+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source import (
114+
ObservabilityPipelineOpentelemetrySource,
115+
)
113116

114117

115118
class ObservabilityPipelineConfig(ModelNormal):
@@ -182,6 +185,7 @@ def __init__(
182185
ObservabilityPipelineHttpClientSource,
183186
ObservabilityPipelineLogstashSource,
184187
ObservabilityPipelineSocketSource,
188+
ObservabilityPipelineOpentelemetrySource,
185189
]
186190
],
187191
processors: Union[List[ObservabilityPipelineConfigProcessorGroup], UnsetType] = unset,

src/datadog_api_client/v2/model/observability_pipeline_config_source_item.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ def __init__(self, **kwargs):
6666
6767
:param framing: Framing method configuration for the socket source.
6868
:type framing: ObservabilityPipelineSocketSourceFraming
69+
70+
:param grpc_address_key: Environment variable name containing the gRPC server address for receiving OTLP data. Must be a valid environment variable name (alphanumeric characters and underscores only).
71+
:type grpc_address_key: str, optional
72+
73+
:param http_address_key: Environment variable name containing the HTTP server address for receiving OTLP data. Must be a valid environment variable name (alphanumeric characters and underscores only).
74+
:type http_address_key: str, optional
6975
"""
7076
super().__init__(kwargs)
7177

@@ -118,6 +124,9 @@ def _composed_schemas(_):
118124
ObservabilityPipelineLogstashSource,
119125
)
120126
from datadog_api_client.v2.model.observability_pipeline_socket_source import ObservabilityPipelineSocketSource
127+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source import (
128+
ObservabilityPipelineOpentelemetrySource,
129+
)
121130

122131
return {
123132
"oneOf": [
@@ -137,5 +146,6 @@ def _composed_schemas(_):
137146
ObservabilityPipelineHttpClientSource,
138147
ObservabilityPipelineLogstashSource,
139148
ObservabilityPipelineSocketSource,
149+
ObservabilityPipelineOpentelemetrySource,
140150
],
141151
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union, TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
18+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source_type import (
19+
ObservabilityPipelineOpentelemetrySourceType,
20+
)
21+
22+
23+
class ObservabilityPipelineOpentelemetrySource(ModelNormal):
24+
@cached_property
25+
def openapi_types(_):
26+
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
27+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source_type import (
28+
ObservabilityPipelineOpentelemetrySourceType,
29+
)
30+
31+
return {
32+
"grpc_address_key": (str,),
33+
"http_address_key": (str,),
34+
"id": (str,),
35+
"tls": (ObservabilityPipelineTls,),
36+
"type": (ObservabilityPipelineOpentelemetrySourceType,),
37+
}
38+
39+
attribute_map = {
40+
"grpc_address_key": "grpc_address_key",
41+
"http_address_key": "http_address_key",
42+
"id": "id",
43+
"tls": "tls",
44+
"type": "type",
45+
}
46+
47+
def __init__(
48+
self_,
49+
id: str,
50+
type: ObservabilityPipelineOpentelemetrySourceType,
51+
grpc_address_key: Union[str, UnsetType] = unset,
52+
http_address_key: Union[str, UnsetType] = unset,
53+
tls: Union[ObservabilityPipelineTls, UnsetType] = unset,
54+
**kwargs,
55+
):
56+
"""
57+
The ``opentelemetry`` source receives telemetry data using the OpenTelemetry Protocol (OTLP) over gRPC and HTTP.
58+
59+
:param grpc_address_key: Environment variable name containing the gRPC server address for receiving OTLP data. Must be a valid environment variable name (alphanumeric characters and underscores only).
60+
:type grpc_address_key: str, optional
61+
62+
:param http_address_key: Environment variable name containing the HTTP server address for receiving OTLP data. Must be a valid environment variable name (alphanumeric characters and underscores only).
63+
:type http_address_key: str, optional
64+
65+
:param id: The unique identifier for this component. Used to reference this component in other parts of the pipeline (e.g., as input to downstream components).
66+
:type id: str
67+
68+
:param tls: Configuration for enabling TLS encryption between the pipeline component and external services.
69+
:type tls: ObservabilityPipelineTls, optional
70+
71+
:param type: The source type. The value should always be ``opentelemetry``.
72+
:type type: ObservabilityPipelineOpentelemetrySourceType
73+
"""
74+
if grpc_address_key is not unset:
75+
kwargs["grpc_address_key"] = grpc_address_key
76+
if http_address_key is not unset:
77+
kwargs["http_address_key"] = http_address_key
78+
if tls is not unset:
79+
kwargs["tls"] = tls
80+
super().__init__(kwargs)
81+
82+
self_.id = id
83+
self_.type = type
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class ObservabilityPipelineOpentelemetrySourceType(ModelSimple):
16+
"""
17+
The source type. The value should always be `opentelemetry`.
18+
19+
:param value: If omitted defaults to "opentelemetry". Must be one of ["opentelemetry"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"opentelemetry",
25+
}
26+
OPENTELEMETRY: ClassVar["ObservabilityPipelineOpentelemetrySourceType"]
27+
28+
@cached_property
29+
def openapi_types(_):
30+
return {
31+
"value": (str,),
32+
}
33+
34+
35+
ObservabilityPipelineOpentelemetrySourceType.OPENTELEMETRY = ObservabilityPipelineOpentelemetrySourceType(
36+
"opentelemetry"
37+
)

src/datadog_api_client/v2/models/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3156,6 +3156,12 @@
31563156
from datadog_api_client.v2.model.observability_pipeline_open_search_destination_type import (
31573157
ObservabilityPipelineOpenSearchDestinationType,
31583158
)
3159+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source import (
3160+
ObservabilityPipelineOpentelemetrySource,
3161+
)
3162+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source_type import (
3163+
ObservabilityPipelineOpentelemetrySourceType,
3164+
)
31593165
from datadog_api_client.v2.model.observability_pipeline_parse_grok_processor import (
31603166
ObservabilityPipelineParseGrokProcessor,
31613167
)
@@ -7422,6 +7428,8 @@
74227428
"ObservabilityPipelineOcsfMappingLibrary",
74237429
"ObservabilityPipelineOpenSearchDestination",
74247430
"ObservabilityPipelineOpenSearchDestinationType",
7431+
"ObservabilityPipelineOpentelemetrySource",
7432+
"ObservabilityPipelineOpentelemetrySourceType",
74257433
"ObservabilityPipelineParseGrokProcessor",
74267434
"ObservabilityPipelineParseGrokProcessorRule",
74277435
"ObservabilityPipelineParseGrokProcessorRuleMatchRule",

0 commit comments

Comments
 (0)