diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index ca425e6bd9f..5423824d0a6 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/lib/datadog_api_client/v2/models/observability_pipeline_config.rb b/lib/datadog_api_client/v2/models/observability_pipeline_config.rb index 0fae61d9128..eb155c23c39 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_config.rb @@ -38,6 +38,12 @@ class ObservabilityPipelineConfig # A list of configured data sources for the pipeline. attr_reader :sources + # 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. + attr_accessor :use_legacy_search_syntax + attr_accessor :additional_properties # Attribute mapping from ruby-style variable name to JSON key. @@ -48,7 +54,8 @@ def self.attribute_map :'pipeline_type' => :'pipeline_type', :'processor_groups' => :'processor_groups', :'processors' => :'processors', - :'sources' => :'sources' + :'sources' => :'sources', + :'use_legacy_search_syntax' => :'use_legacy_search_syntax' } end @@ -60,7 +67,8 @@ def self.openapi_types :'pipeline_type' => :'ObservabilityPipelineConfigPipelineType', :'processor_groups' => :'Array', :'processors' => :'Array', - :'sources' => :'Array' + :'sources' => :'Array', + :'use_legacy_search_syntax' => :'Boolean' } end @@ -109,6 +117,10 @@ def initialize(attributes = {}) self.sources = value end end + + if attributes.key?(:'use_legacy_search_syntax') + self.use_legacy_search_syntax = attributes[:'use_legacy_search_syntax'] + end end # Check to see if the all the properties in the model are valid @@ -171,6 +183,7 @@ def ==(o) processor_groups == o.processor_groups && processors == o.processors && sources == o.sources && + use_legacy_search_syntax == o.use_legacy_search_syntax && additional_properties == o.additional_properties end @@ -178,7 +191,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [destinations, pipeline_type, processor_groups, processors, sources, additional_properties].hash + [destinations, pipeline_type, processor_groups, processors, sources, use_legacy_search_syntax, additional_properties].hash end end end