Skip to content

Commit 098485b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9b5d8d3a of spec repo
1 parent 72be336 commit 098485b

14 files changed

+575
-22
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-04-07 18:49:41.536548",
8-
"spec_repo_commit": "d0287df0"
7+
"regenerated": "2025-04-08 13:49:27.738209",
8+
"spec_repo_commit": "9b5d8d3a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-07 18:49:41.551076",
13-
"spec_repo_commit": "d0287df0"
12+
"regenerated": "2025-04-08 13:49:27.833265",
13+
"spec_repo_commit": "9b5d8d3a"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+128-3
Original file line numberDiff line numberDiff line change
@@ -21567,7 +21567,6 @@ components:
2156721567
type: array
2156821568
required:
2156921569
- sources
21570-
- processors
2157121570
- destinations
2157221571
type: object
2157321572
ObservabilityPipelineConfigDestinationItem:
@@ -21583,11 +21582,14 @@ components:
2158321582
- $ref: '#/components/schemas/ObservabilityPipelineAddFieldsProcessor'
2158421583
- $ref: '#/components/schemas/ObservabilityPipelineRemoveFieldsProcessor'
2158521584
- $ref: '#/components/schemas/ObservabilityPipelineRenameFieldsProcessor'
21585+
- $ref: '#/components/schemas/ObservabilityPipelineSampleProcessor'
21586+
- $ref: '#/components/schemas/ObservabilityPipelineThrottleProcessor'
2158621587
ObservabilityPipelineConfigSourceItem:
2158721588
description: A data source for the pipeline.
2158821589
oneOf:
2158921590
- $ref: '#/components/schemas/ObservabilityPipelineKafkaSource'
2159021591
- $ref: '#/components/schemas/ObservabilityPipelineDatadogAgentSource'
21592+
- $ref: '#/components/schemas/ObservabilityPipelineFluentSource'
2159121593
ObservabilityPipelineCreateRequest:
2159221594
description: Top-level schema representing a pipeline.
2159321595
properties:
@@ -21759,6 +21761,32 @@ components:
2175921761
type: string
2176021762
x-enum-varnames:
2176121763
- FILTER
21764+
ObservabilityPipelineFluentSource:
21765+
description: The `fluent` source ingests logs from a Fluentd-compatible service.
21766+
properties:
21767+
id:
21768+
description: The unique identifier for this component. Used to reference
21769+
this component in other parts of the pipeline (for example, as the `input`
21770+
to downstream components).
21771+
example: fluent-source
21772+
type: string
21773+
tls:
21774+
$ref: '#/components/schemas/ObservabilityPipelineTls'
21775+
type:
21776+
$ref: '#/components/schemas/ObservabilityPipelineFluentSourceType'
21777+
required:
21778+
- id
21779+
- type
21780+
type: object
21781+
ObservabilityPipelineFluentSourceType:
21782+
default: fluent
21783+
description: The source type. The value should always be `fluent`.
21784+
enum:
21785+
- fluent
21786+
example: fluent
21787+
type: string
21788+
x-enum-varnames:
21789+
- FLUENT
2176221790
ObservabilityPipelineKafkaSource:
2176321791
description: The `kafka` source ingests data from Apache Kafka topics.
2176421792
properties:
@@ -21926,8 +21954,8 @@ components:
2192621954
limit:
2192721955
$ref: '#/components/schemas/ObservabilityPipelineQuotaProcessorLimit'
2192821956
name:
21929-
description: Name for identifying the processor.
21930-
example: MyPipelineQuotaProcessor
21957+
description: Name of the quota.
21958+
example: MyQuota
2193121959
type: string
2193221960
overrides:
2193321961
description: A list of alternate quota rules that apply to specific sets
@@ -22121,6 +22149,103 @@ components:
2212122149
type: string
2212222150
x-enum-varnames:
2212322151
- RENAME_FIELDS
22152+
ObservabilityPipelineSampleProcessor:
22153+
description: The `sample` processor allows probabilistic sampling of logs at
22154+
a fixed rate.
22155+
properties:
22156+
id:
22157+
description: The unique identifier for this component. Used to reference
22158+
this component in other parts of the pipeline (for example, as the `input`
22159+
to downstream components).
22160+
example: sample-processor
22161+
type: string
22162+
include:
22163+
description: A Datadog search query used to determine which logs this processor
22164+
targets.
22165+
example: service:my-service
22166+
type: string
22167+
inputs:
22168+
description: A list of component IDs whose output is used as the `input`
22169+
for this component.
22170+
example:
22171+
- datadog-agent-source
22172+
items:
22173+
type: string
22174+
type: array
22175+
rate:
22176+
description: Number of events to sample (1 in N).
22177+
example: 10
22178+
format: int64
22179+
minimum: 1
22180+
type: integer
22181+
type:
22182+
$ref: '#/components/schemas/ObservabilityPipelineSampleProcessorType'
22183+
required:
22184+
- id
22185+
- type
22186+
- include
22187+
- inputs
22188+
- rate
22189+
type: object
22190+
ObservabilityPipelineSampleProcessorType:
22191+
default: sample
22192+
description: The processor type. The value should always be `sample`.
22193+
enum:
22194+
- sample
22195+
example: sample
22196+
type: string
22197+
x-enum-varnames:
22198+
- SAMPLE
22199+
ObservabilityPipelineThrottleProcessor:
22200+
description: The `throttle` processor limits the rate of events using a time-based
22201+
window.
22202+
properties:
22203+
id:
22204+
description: Unique identifier for this processor.
22205+
example: throttle-processor
22206+
type: string
22207+
include:
22208+
description: A Datadog search query used to determine which logs this processor
22209+
targets.
22210+
example: service:my-service
22211+
type: string
22212+
inputs:
22213+
description: A list of component IDs whose output is used as the `input`
22214+
for this component.
22215+
example:
22216+
- datadog-agent-source
22217+
items:
22218+
type: string
22219+
type: array
22220+
threshold:
22221+
description: The number of events allowed within the window.
22222+
example: 100
22223+
format: int64
22224+
type: integer
22225+
type:
22226+
$ref: '#/components/schemas/ObservabilityPipelineThrottleProcessorType'
22227+
window:
22228+
description: The time window in seconds used for throttling.
22229+
example: 10.0
22230+
format: double
22231+
type: number
22232+
required:
22233+
- id
22234+
- type
22235+
- include
22236+
- inputs
22237+
- threshold
22238+
- window
22239+
type: object
22240+
ObservabilityPipelineThrottleProcessorType:
22241+
default: throttle
22242+
description: The processor type. The value should always be `throttle`.
22243+
enum:
22244+
- throttle
22245+
example: throttle
22246+
type: string
22247+
x-enum-varnames:
22248+
- THROTTLE
2212422249
ObservabilityPipelineTls:
2212522250
description: Configuration for enabling TLS encryption.
2212622251
properties:

docs/datadog_api_client.v2.model.rst

+42
Original file line numberDiff line numberDiff line change
@@ -9391,6 +9391,20 @@ datadog\_api\_client.v2.model.observability\_pipeline\_filter\_processor\_type m
93919391
:members:
93929392
:show-inheritance:
93939393

9394+
datadog\_api\_client.v2.model.observability\_pipeline\_fluent\_source module
9395+
----------------------------------------------------------------------------
9396+
9397+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_fluent_source
9398+
:members:
9399+
:show-inheritance:
9400+
9401+
datadog\_api\_client.v2.model.observability\_pipeline\_fluent\_source\_type module
9402+
----------------------------------------------------------------------------------
9403+
9404+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_fluent_source_type
9405+
:members:
9406+
:show-inheritance:
9407+
93949408
datadog\_api\_client.v2.model.observability\_pipeline\_kafka\_source module
93959409
---------------------------------------------------------------------------
93969410

@@ -9510,6 +9524,34 @@ datadog\_api\_client.v2.model.observability\_pipeline\_rename\_fields\_processor
95109524
:members:
95119525
:show-inheritance:
95129526

9527+
datadog\_api\_client.v2.model.observability\_pipeline\_sample\_processor module
9528+
-------------------------------------------------------------------------------
9529+
9530+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_sample_processor
9531+
:members:
9532+
:show-inheritance:
9533+
9534+
datadog\_api\_client.v2.model.observability\_pipeline\_sample\_processor\_type module
9535+
-------------------------------------------------------------------------------------
9536+
9537+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_sample_processor_type
9538+
:members:
9539+
:show-inheritance:
9540+
9541+
datadog\_api\_client.v2.model.observability\_pipeline\_throttle\_processor module
9542+
---------------------------------------------------------------------------------
9543+
9544+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_throttle_processor
9545+
:members:
9546+
:show-inheritance:
9547+
9548+
datadog\_api\_client.v2.model.observability\_pipeline\_throttle\_processor\_type module
9549+
---------------------------------------------------------------------------------------
9550+
9551+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_throttle_processor_type
9552+
:members:
9553+
:show-inheritance:
9554+
95139555
datadog\_api\_client.v2.model.observability\_pipeline\_tls module
95149556
-----------------------------------------------------------------
95159557

src/datadog_api_client/v2/model/observability_pipeline_config.py

+27-13
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
unset,
12+
UnsetType,
1113
)
1214

1315

@@ -38,10 +40,15 @@
3840
from datadog_api_client.v2.model.observability_pipeline_rename_fields_processor import (
3941
ObservabilityPipelineRenameFieldsProcessor,
4042
)
43+
from datadog_api_client.v2.model.observability_pipeline_sample_processor import ObservabilityPipelineSampleProcessor
44+
from datadog_api_client.v2.model.observability_pipeline_throttle_processor import (
45+
ObservabilityPipelineThrottleProcessor,
46+
)
4147
from datadog_api_client.v2.model.observability_pipeline_kafka_source import ObservabilityPipelineKafkaSource
4248
from datadog_api_client.v2.model.observability_pipeline_datadog_agent_source import (
4349
ObservabilityPipelineDatadogAgentSource,
4450
)
51+
from datadog_api_client.v2.model.observability_pipeline_fluent_source import ObservabilityPipelineFluentSource
4552

4653

4754
class ObservabilityPipelineConfig(ModelNormal):
@@ -74,24 +81,30 @@ def __init__(
7481
destinations: List[
7582
Union[ObservabilityPipelineConfigDestinationItem, ObservabilityPipelineDatadogLogsDestination]
7683
],
77-
processors: List[
78-
Union[
79-
ObservabilityPipelineConfigProcessorItem,
80-
ObservabilityPipelineFilterProcessor,
81-
ObservabilityPipelineParseJSONProcessor,
82-
ObservabilityPipelineQuotaProcessor,
83-
ObservabilityPipelineAddFieldsProcessor,
84-
ObservabilityPipelineRemoveFieldsProcessor,
85-
ObservabilityPipelineRenameFieldsProcessor,
86-
]
87-
],
8884
sources: List[
8985
Union[
9086
ObservabilityPipelineConfigSourceItem,
9187
ObservabilityPipelineKafkaSource,
9288
ObservabilityPipelineDatadogAgentSource,
89+
ObservabilityPipelineFluentSource,
9390
]
9491
],
92+
processors: Union[
93+
List[
94+
Union[
95+
ObservabilityPipelineConfigProcessorItem,
96+
ObservabilityPipelineFilterProcessor,
97+
ObservabilityPipelineParseJSONProcessor,
98+
ObservabilityPipelineQuotaProcessor,
99+
ObservabilityPipelineAddFieldsProcessor,
100+
ObservabilityPipelineRemoveFieldsProcessor,
101+
ObservabilityPipelineRenameFieldsProcessor,
102+
ObservabilityPipelineSampleProcessor,
103+
ObservabilityPipelineThrottleProcessor,
104+
]
105+
],
106+
UnsetType,
107+
] = unset,
95108
**kwargs,
96109
):
97110
"""
@@ -101,13 +114,14 @@ def __init__(
101114
:type destinations: [ObservabilityPipelineConfigDestinationItem]
102115
103116
:param processors: A list of processors that transform or enrich log data.
104-
:type processors: [ObservabilityPipelineConfigProcessorItem]
117+
:type processors: [ObservabilityPipelineConfigProcessorItem], optional
105118
106119
:param sources: A list of configured data sources for the pipeline.
107120
:type sources: [ObservabilityPipelineConfigSourceItem]
108121
"""
122+
if processors is not unset:
123+
kwargs["processors"] = processors
109124
super().__init__(kwargs)
110125

111126
self_.destinations = destinations
112-
self_.processors = processors
113127
self_.sources = sources

src/datadog_api_client/v2/model/observability_pipeline_config_processor_item.py

+18-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self, **kwargs):
3939
:param limit: The maximum amount of data or number of events allowed before the quota is enforced. Can be specified in bytes or events.
4040
:type limit: ObservabilityPipelineQuotaProcessorLimit
4141
42-
:param name: Name for identifying the processor.
42+
:param name: Name of the quota.
4343
:type name: str
4444
4545
:param overrides: A list of alternate quota rules that apply to specific sets of events, identified by matching field values. Each override can define a custom limit.
@@ -50,6 +50,15 @@ def __init__(self, **kwargs):
5050
5151
:param fields: A list of static fields (key-value pairs) that is added to each log event processed by this component.
5252
:type fields: [ObservabilityPipelineFieldValue]
53+
54+
:param rate: Number of events to sample (1 in N).
55+
:type rate: int
56+
57+
:param threshold: The number of events allowed within the window.
58+
:type threshold: int
59+
60+
:param window: The time window in seconds used for throttling.
61+
:type window: float
5362
"""
5463
super().__init__(kwargs)
5564

@@ -80,6 +89,12 @@ def _composed_schemas(_):
8089
from datadog_api_client.v2.model.observability_pipeline_rename_fields_processor import (
8190
ObservabilityPipelineRenameFieldsProcessor,
8291
)
92+
from datadog_api_client.v2.model.observability_pipeline_sample_processor import (
93+
ObservabilityPipelineSampleProcessor,
94+
)
95+
from datadog_api_client.v2.model.observability_pipeline_throttle_processor import (
96+
ObservabilityPipelineThrottleProcessor,
97+
)
8398

8499
return {
85100
"oneOf": [
@@ -89,5 +104,7 @@ def _composed_schemas(_):
89104
ObservabilityPipelineAddFieldsProcessor,
90105
ObservabilityPipelineRemoveFieldsProcessor,
91106
ObservabilityPipelineRenameFieldsProcessor,
107+
ObservabilityPipelineSampleProcessor,
108+
ObservabilityPipelineThrottleProcessor,
92109
],
93110
}

src/datadog_api_client/v2/model/observability_pipeline_config_source_item.py

+2
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ def _composed_schemas(_):
5151
from datadog_api_client.v2.model.observability_pipeline_datadog_agent_source import (
5252
ObservabilityPipelineDatadogAgentSource,
5353
)
54+
from datadog_api_client.v2.model.observability_pipeline_fluent_source import ObservabilityPipelineFluentSource
5455

5556
return {
5657
"oneOf": [
5758
ObservabilityPipelineKafkaSource,
5859
ObservabilityPipelineDatadogAgentSource,
60+
ObservabilityPipelineFluentSource,
5961
],
6062
}

0 commit comments

Comments
 (0)