diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index ca425e6bd9f2..5423824d0a66 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -37916,6 +37916,18 @@ components: items: $ref: '#/components/schemas/ObservabilityPipelineConfigSourceItem' type: array + use_legacy_search_syntax: + description: '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`. + + The legacy syntax is deprecated and will eventually be removed. + + Requires Observability Pipelines Worker 2.11 or later. + + 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.' + type: boolean required: - sources - destinations diff --git a/services/observability_pipelines/src/v2/models/ObservabilityPipelineConfig.ts b/services/observability_pipelines/src/v2/models/ObservabilityPipelineConfig.ts index ab832f6225dc..12e0c91d1bc1 100644 --- a/services/observability_pipelines/src/v2/models/ObservabilityPipelineConfig.ts +++ b/services/observability_pipelines/src/v2/models/ObservabilityPipelineConfig.ts @@ -31,6 +31,13 @@ export class ObservabilityPipelineConfig { * A list of configured data sources for the pipeline. */ "sources": Array; + /** + * 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`. + * The legacy syntax is deprecated and will eventually be removed. + * Requires Observability Pipelines Worker 2.11 or later. + * 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. + */ + "useLegacySearchSyntax"?: boolean; /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -68,6 +75,10 @@ export class ObservabilityPipelineConfig { type: "Array", required: true, }, + useLegacySearchSyntax: { + baseName: "use_legacy_search_syntax", + type: "boolean", + }, additionalProperties: { baseName: "additionalProperties", type: "{ [key: string]: any; }",