Skip to content

Commit 4df8861

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6876f24 of spec repo
1 parent cc042b6 commit 4df8861

File tree

7 files changed

+162
-0
lines changed

7 files changed

+162
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29098,6 +29098,7 @@ components:
2909829098
- $ref: '#/components/schemas/ObservabilityPipelineGooglePubSubSource'
2909929099
- $ref: '#/components/schemas/ObservabilityPipelineHttpClientSource'
2910029100
- $ref: '#/components/schemas/ObservabilityPipelineLogstashSource'
29101+
- $ref: '#/components/schemas/ObservabilityPipelineOpentelemetrySource'
2910129102
- $ref: '#/components/schemas/ObservabilityPipelineSocketSource'
2910229103
ObservabilityPipelineCrowdStrikeNextGenSiemDestination:
2910329104
description: The `crowdstrike_next_gen_siem` destination forwards logs to CrowdStrike
@@ -30547,6 +30548,33 @@ components:
3054730548
type: string
3054830549
x-enum-varnames:
3054930550
- OPENSEARCH
30551+
ObservabilityPipelineOpentelemetrySource:
30552+
description: The `opentelemetry` source receives OpenTelemetry data through
30553+
gRPC or HTTP.
30554+
properties:
30555+
id:
30556+
description: The unique identifier for this component. Used to reference
30557+
this component in other parts of the pipeline (e.g., as input to downstream
30558+
components).
30559+
example: opentelemetry-source
30560+
type: string
30561+
tls:
30562+
$ref: '#/components/schemas/ObservabilityPipelineTls'
30563+
type:
30564+
$ref: '#/components/schemas/ObservabilityPipelineOpentelemetrySourceType'
30565+
required:
30566+
- id
30567+
- type
30568+
type: object
30569+
ObservabilityPipelineOpentelemetrySourceType:
30570+
default: opentelemetry
30571+
description: The source type. The value should always be `opentelemetry`.
30572+
enum:
30573+
- opentelemetry
30574+
example: opentelemetry
30575+
type: string
30576+
x-enum-varnames:
30577+
- OPENTELEMETRY
3055030578
ObservabilityPipelineParseGrokProcessor:
3055130579
description: The `parse_grok` processor extracts structured fields from unstructured
3055230580
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
@@ -13381,6 +13381,20 @@ datadog\_api\_client.v2.model.observability\_pipeline\_open\_search\_destination
1338113381
:members:
1338213382
:show-inheritance:
1338313383

13384+
datadog\_api\_client.v2.model.observability\_pipeline\_opentelemetry\_source module
13385+
-----------------------------------------------------------------------------------
13386+
13387+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_opentelemetry_source
13388+
:members:
13389+
:show-inheritance:
13390+
13391+
datadog\_api\_client.v2.model.observability\_pipeline\_opentelemetry\_source\_type module
13392+
-----------------------------------------------------------------------------------------
13393+
13394+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_opentelemetry_source_type
13395+
:members:
13396+
:show-inheritance:
13397+
1338413398
datadog\_api\_client.v2.model.observability\_pipeline\_parse\_grok\_processor module
1338513399
------------------------------------------------------------------------------------
1338613400

src/datadog_api_client/v2/model/observability_pipeline_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@
148148
ObservabilityPipelineHttpClientSource,
149149
)
150150
from datadog_api_client.v2.model.observability_pipeline_logstash_source import ObservabilityPipelineLogstashSource
151+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source import (
152+
ObservabilityPipelineOpentelemetrySource,
153+
)
151154
from datadog_api_client.v2.model.observability_pipeline_socket_source import ObservabilityPipelineSocketSource
152155

153156

@@ -219,6 +222,7 @@ def __init__(
219222
ObservabilityPipelineGooglePubSubSource,
220223
ObservabilityPipelineHttpClientSource,
221224
ObservabilityPipelineLogstashSource,
225+
ObservabilityPipelineOpentelemetrySource,
222226
ObservabilityPipelineSocketSource,
223227
]
224228
],

src/datadog_api_client/v2/model/observability_pipeline_config_source_item.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ def _composed_schemas(_):
118118
from datadog_api_client.v2.model.observability_pipeline_logstash_source import (
119119
ObservabilityPipelineLogstashSource,
120120
)
121+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source import (
122+
ObservabilityPipelineOpentelemetrySource,
123+
)
121124
from datadog_api_client.v2.model.observability_pipeline_socket_source import ObservabilityPipelineSocketSource
122125

123126
return {
@@ -137,6 +140,7 @@ def _composed_schemas(_):
137140
ObservabilityPipelineGooglePubSubSource,
138141
ObservabilityPipelineHttpClientSource,
139142
ObservabilityPipelineLogstashSource,
143+
ObservabilityPipelineOpentelemetrySource,
140144
ObservabilityPipelineSocketSource,
141145
],
142146
}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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+
"id": (str,),
33+
"tls": (ObservabilityPipelineTls,),
34+
"type": (ObservabilityPipelineOpentelemetrySourceType,),
35+
}
36+
37+
attribute_map = {
38+
"id": "id",
39+
"tls": "tls",
40+
"type": "type",
41+
}
42+
43+
def __init__(
44+
self_,
45+
id: str,
46+
type: ObservabilityPipelineOpentelemetrySourceType,
47+
tls: Union[ObservabilityPipelineTls, UnsetType] = unset,
48+
**kwargs,
49+
):
50+
"""
51+
The ``opentelemetry`` source receives OpenTelemetry data through gRPC or HTTP.
52+
53+
: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).
54+
:type id: str
55+
56+
:param tls: Configuration for enabling TLS encryption between the pipeline component and external services.
57+
:type tls: ObservabilityPipelineTls, optional
58+
59+
:param type: The source type. The value should always be ``opentelemetry``.
60+
:type type: ObservabilityPipelineOpentelemetrySourceType
61+
"""
62+
if tls is not unset:
63+
kwargs["tls"] = tls
64+
super().__init__(kwargs)
65+
66+
self_.id = id
67+
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
@@ -2581,6 +2581,12 @@
25812581
from datadog_api_client.v2.model.observability_pipeline_open_search_destination_type import (
25822582
ObservabilityPipelineOpenSearchDestinationType,
25832583
)
2584+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source import (
2585+
ObservabilityPipelineOpentelemetrySource,
2586+
)
2587+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source_type import (
2588+
ObservabilityPipelineOpentelemetrySourceType,
2589+
)
25842590
from datadog_api_client.v2.model.observability_pipeline_parse_grok_processor import (
25852591
ObservabilityPipelineParseGrokProcessor,
25862592
)
@@ -6091,6 +6097,8 @@
60916097
"ObservabilityPipelineOcsfMappingLibrary",
60926098
"ObservabilityPipelineOpenSearchDestination",
60936099
"ObservabilityPipelineOpenSearchDestinationType",
6100+
"ObservabilityPipelineOpentelemetrySource",
6101+
"ObservabilityPipelineOpentelemetrySourceType",
60946102
"ObservabilityPipelineParseGrokProcessor",
60956103
"ObservabilityPipelineParseGrokProcessorRule",
60966104
"ObservabilityPipelineParseGrokProcessorRuleMatchRule",

0 commit comments

Comments
 (0)