Skip to content

Commit 881369f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit bd15e41 of spec repo
1 parent b7e9f9e commit 881369f

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
@@ -29300,6 +29300,7 @@ components:
2930029300
- $ref: '#/components/schemas/ObservabilityPipelineGooglePubSubSource'
2930129301
- $ref: '#/components/schemas/ObservabilityPipelineHttpClientSource'
2930229302
- $ref: '#/components/schemas/ObservabilityPipelineLogstashSource'
29303+
- $ref: '#/components/schemas/ObservabilityPipelineOpentelemetrySource'
2930329304
- $ref: '#/components/schemas/ObservabilityPipelineSocketSource'
2930429305
ObservabilityPipelineCrowdStrikeNextGenSiemDestination:
2930529306
description: The `crowdstrike_next_gen_siem` destination forwards logs to CrowdStrike
@@ -30749,6 +30750,33 @@ components:
3074930750
type: string
3075030751
x-enum-varnames:
3075130752
- OPENSEARCH
30753+
ObservabilityPipelineOpentelemetrySource:
30754+
description: The `opentelemetry` source receives OpenTelemetry data through
30755+
gRPC or HTTP.
30756+
properties:
30757+
id:
30758+
description: The unique identifier for this component. Used to reference
30759+
this component in other parts of the pipeline (e.g., as input to downstream
30760+
components).
30761+
example: opentelemetry-source
30762+
type: string
30763+
tls:
30764+
$ref: '#/components/schemas/ObservabilityPipelineTls'
30765+
type:
30766+
$ref: '#/components/schemas/ObservabilityPipelineOpentelemetrySourceType'
30767+
required:
30768+
- id
30769+
- type
30770+
type: object
30771+
ObservabilityPipelineOpentelemetrySourceType:
30772+
default: opentelemetry
30773+
description: The source type. The value should always be `opentelemetry`.
30774+
enum:
30775+
- opentelemetry
30776+
example: opentelemetry
30777+
type: string
30778+
x-enum-varnames:
30779+
- OPENTELEMETRY
3075230780
ObservabilityPipelineParseGrokProcessor:
3075330781
description: The `parse_grok` processor extracts structured fields from unstructured
3075430782
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
@@ -13458,6 +13458,20 @@ datadog\_api\_client.v2.model.observability\_pipeline\_open\_search\_destination
1345813458
:members:
1345913459
:show-inheritance:
1346013460

13461+
datadog\_api\_client.v2.model.observability\_pipeline\_opentelemetry\_source module
13462+
-----------------------------------------------------------------------------------
13463+
13464+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_opentelemetry_source
13465+
:members:
13466+
:show-inheritance:
13467+
13468+
datadog\_api\_client.v2.model.observability\_pipeline\_opentelemetry\_source\_type module
13469+
-----------------------------------------------------------------------------------------
13470+
13471+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_opentelemetry_source_type
13472+
:members:
13473+
:show-inheritance:
13474+
1346113475
datadog\_api\_client.v2.model.observability\_pipeline\_parse\_grok\_processor module
1346213476
------------------------------------------------------------------------------------
1346313477

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
@@ -2592,6 +2592,12 @@
25922592
from datadog_api_client.v2.model.observability_pipeline_open_search_destination_type import (
25932593
ObservabilityPipelineOpenSearchDestinationType,
25942594
)
2595+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source import (
2596+
ObservabilityPipelineOpentelemetrySource,
2597+
)
2598+
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source_type import (
2599+
ObservabilityPipelineOpentelemetrySourceType,
2600+
)
25952601
from datadog_api_client.v2.model.observability_pipeline_parse_grok_processor import (
25962602
ObservabilityPipelineParseGrokProcessor,
25972603
)
@@ -6115,6 +6121,8 @@
61156121
"ObservabilityPipelineOcsfMappingLibrary",
61166122
"ObservabilityPipelineOpenSearchDestination",
61176123
"ObservabilityPipelineOpenSearchDestinationType",
6124+
"ObservabilityPipelineOpentelemetrySource",
6125+
"ObservabilityPipelineOpentelemetrySourceType",
61186126
"ObservabilityPipelineParseGrokProcessor",
61196127
"ObservabilityPipelineParseGrokProcessorRule",
61206128
"ObservabilityPipelineParseGrokProcessorRuleMatchRule",

0 commit comments

Comments
 (0)