Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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

Expand All @@ -60,7 +67,8 @@ def self.openapi_types
:'pipeline_type' => :'ObservabilityPipelineConfigPipelineType',
:'processor_groups' => :'Array<ObservabilityPipelineConfigProcessorGroup>',
:'processors' => :'Array<ObservabilityPipelineConfigProcessorGroup>',
:'sources' => :'Array<ObservabilityPipelineConfigSourceItem>'
:'sources' => :'Array<ObservabilityPipelineConfigSourceItem>',
:'use_legacy_search_syntax' => :'Boolean'
}
end

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -171,14 +183,15 @@ 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

# Calculates hash code according to all attributes.
# @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
Loading