Skip to content

Commit e5f2d5d

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

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

.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

packages/datadog-api-client-v2/models/ObservabilityPipelineConfig.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ export class ObservabilityPipelineConfig {
3636
* A list of configured data sources for the pipeline.
3737
*/
3838
"sources": Array<ObservabilityPipelineConfigSourceItem>;
39+
/**
40+
* 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`.
41+
* The legacy syntax is deprecated and will eventually be removed.
42+
* Requires Observability Pipelines Worker 2.11 or later.
43+
* 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.
44+
*/
45+
"useLegacySearchSyntax"?: boolean;
3946

4047
/**
4148
* A container for additional, undeclared properties.
@@ -75,6 +82,10 @@ export class ObservabilityPipelineConfig {
7582
type: "Array<ObservabilityPipelineConfigSourceItem>",
7683
required: true,
7784
},
85+
useLegacySearchSyntax: {
86+
baseName: "use_legacy_search_syntax",
87+
type: "boolean",
88+
},
7889
additionalProperties: {
7990
baseName: "additionalProperties",
8091
type: "{ [key: string]: any; }",

0 commit comments

Comments
 (0)