Skip to content

Commit 8f9042c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Expose use_legacy_search_syntax flag in the Observability Pipelines API (#3130)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent cf7c9a6 commit 8f9042c

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37916,6 +37916,18 @@ components:
3791637916
items:
3791737917
$ref: '#/components/schemas/ObservabilityPipelineConfigSourceItem'
3791837918
type: array
37919+
use_legacy_search_syntax:
37920+
description: 'Set to `true` to continue using the legacy search syntax while
37921+
migrating filter queries. After migrating all queries to the new syntax,
37922+
set to `false`.
37923+
37924+
The legacy syntax is deprecated and will eventually be removed.
37925+
37926+
Requires Observability Pipelines Worker 2.11 or later.
37927+
37928+
See [Upgrade Your Filter Queries to the New Search Syntax](https://docs.datadoghq.com/observability_pipelines/guide/upgrade_your_filter_queries_to_the_new_search_syntax/)
37929+
for more information.'
37930+
type: boolean
3791937931
required:
3792037932
- sources
3792137933
- destinations

src/datadog_api_client/v2/model/observability_pipeline_config.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def openapi_types(_):
152152
"processor_groups": ([ObservabilityPipelineConfigProcessorGroup],),
153153
"processors": ([ObservabilityPipelineConfigProcessorGroup],),
154154
"sources": ([ObservabilityPipelineConfigSourceItem],),
155+
"use_legacy_search_syntax": (bool,),
155156
}
156157

157158
attribute_map = {
@@ -160,6 +161,7 @@ def openapi_types(_):
160161
"processor_groups": "processor_groups",
161162
"processors": "processors",
162163
"sources": "sources",
164+
"use_legacy_search_syntax": "use_legacy_search_syntax",
163165
}
164166

165167
def __init__(
@@ -217,6 +219,7 @@ def __init__(
217219
pipeline_type: Union[ObservabilityPipelineConfigPipelineType, UnsetType] = unset,
218220
processor_groups: Union[List[ObservabilityPipelineConfigProcessorGroup], UnsetType] = unset,
219221
processors: Union[List[ObservabilityPipelineConfigProcessorGroup], UnsetType] = unset,
222+
use_legacy_search_syntax: Union[bool, UnsetType] = unset,
220223
**kwargs,
221224
):
222225
"""
@@ -238,13 +241,21 @@ def __init__(
238241
239242
:param sources: A list of configured data sources for the pipeline.
240243
:type sources: [ObservabilityPipelineConfigSourceItem]
244+
245+
:param use_legacy_search_syntax: Set to ``true`` to continue using the legacy search syntax while migrating filter queries. After migrating all queries to the new syntax, set to ``false``.
246+
The legacy syntax is deprecated and will eventually be removed.
247+
Requires Observability Pipelines Worker 2.11 or later.
248+
See `Upgrade Your Filter Queries to the New Search Syntax <https://docs.datadoghq.com/observability_pipelines/guide/upgrade_your_filter_queries_to_the_new_search_syntax/>`_ for more information.
249+
:type use_legacy_search_syntax: bool, optional
241250
"""
242251
if pipeline_type is not unset:
243252
kwargs["pipeline_type"] = pipeline_type
244253
if processor_groups is not unset:
245254
kwargs["processor_groups"] = processor_groups
246255
if processors is not unset:
247256
kwargs["processors"] = processors
257+
if use_legacy_search_syntax is not unset:
258+
kwargs["use_legacy_search_syntax"] = use_legacy_search_syntax
248259
super().__init__(kwargs)
249260

250261
self_.destinations = destinations

0 commit comments

Comments
 (0)