Skip to content

Commit 8a622b7

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9fd1d93 of spec repo
1 parent f996cc7 commit 8a622b7

File tree

7 files changed

+161
-0
lines changed

7 files changed

+161
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28690,6 +28690,7 @@ components:
2869028690
- $ref: '#/components/schemas/ObservabilityPipelineGooglePubSubSource'
2869128691
- $ref: '#/components/schemas/ObservabilityPipelineHttpClientSource'
2869228692
- $ref: '#/components/schemas/ObservabilityPipelineLogstashSource'
28693+
- $ref: '#/components/schemas/ObservabilityPipelineOpentelemetrySource'
2869328694
- $ref: '#/components/schemas/ObservabilityPipelineSocketSource'
2869428695
ObservabilityPipelineCrowdStrikeNextGenSiemDestination:
2869528696
description: The `crowdstrike_next_gen_siem` destination forwards logs to CrowdStrike
@@ -30139,6 +30140,32 @@ components:
3013930140
type: string
3014030141
x-enum-varnames:
3014130142
- OPENSEARCH
30143+
ObservabilityPipelineOpentelemetrySource:
30144+
description: The `opentelemetry` source ingests data from OpenTelemetry protocol.
30145+
properties:
30146+
id:
30147+
description: The unique identifier for this component. Used to reference
30148+
this component in other parts of the pipeline (e.g., as input to downstream
30149+
components).
30150+
example: opentelemetry-source
30151+
type: string
30152+
tls:
30153+
$ref: '#/components/schemas/ObservabilityPipelineTls'
30154+
type:
30155+
$ref: '#/components/schemas/ObservabilityPipelineOpentelemetrySourceType'
30156+
required:
30157+
- id
30158+
- type
30159+
type: object
30160+
ObservabilityPipelineOpentelemetrySourceType:
30161+
default: opentelemetry
30162+
description: The source type. The value should always be `opentelemetry`.
30163+
enum:
30164+
- opentelemetry
30165+
example: opentelemetry
30166+
type: string
30167+
x-enum-varnames:
30168+
- OPENTELEMETRY
3014230169
ObservabilityPipelineParseGrokProcessor:
3014330170
description: The `parse_grok` processor extracts structured fields from unstructured
3014430171
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
@@ -13157,6 +13157,20 @@ datadog\_api\_client.v2.model.observability\_pipeline\_open\_search\_destination
1315713157
:members:
1315813158
:show-inheritance:
1315913159

13160+
datadog\_api\_client.v2.model.observability\_pipeline\_opentelemetry\_source module
13161+
-----------------------------------------------------------------------------------
13162+
13163+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_opentelemetry_source
13164+
:members:
13165+
:show-inheritance:
13166+
13167+
datadog\_api\_client.v2.model.observability\_pipeline\_opentelemetry\_source\_type module
13168+
-----------------------------------------------------------------------------------------
13169+
13170+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_opentelemetry_source_type
13171+
:members:
13172+
:show-inheritance:
13173+
1316013174
datadog\_api\_client.v2.model.observability\_pipeline\_parse\_grok\_processor module
1316113175
------------------------------------------------------------------------------------
1316213176

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 ingests data from OpenTelemetry protocol.
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
@@ -2539,6 +2539,12 @@
25392539
from datadog_api_client.v2.model.observability_pipeline_open_search_destination_type import (
25402540
ObservabilityPipelineOpenSearchDestinationType,
25412541
)
2542+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source import (
2543+
ObservabilityPipelineOpentelemetrySource,
2544+
)
2545+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source_type import (
2546+
ObservabilityPipelineOpentelemetrySourceType,
2547+
)
25422548
from datadog_api_client.v2.model.observability_pipeline_parse_grok_processor import (
25432549
ObservabilityPipelineParseGrokProcessor,
25442550
)
@@ -5999,6 +6005,8 @@
59996005
"ObservabilityPipelineOcsfMappingLibrary",
60006006
"ObservabilityPipelineOpenSearchDestination",
60016007
"ObservabilityPipelineOpenSearchDestinationType",
6008+
"ObservabilityPipelineOpentelemetrySource",
6009+
"ObservabilityPipelineOpentelemetrySourceType",
60026010
"ObservabilityPipelineParseGrokProcessor",
60036011
"ObservabilityPipelineParseGrokProcessorRule",
60046012
"ObservabilityPipelineParseGrokProcessorRuleMatchRule",

0 commit comments

Comments
 (0)