@@ -20,6 +20,9 @@ pub struct ObservabilityPipelineConfig {
2020 /// A list of configured data sources for the pipeline.
2121 #[ serde( rename = "sources" ) ]
2222 pub sources : Vec < crate :: datadogV2:: model:: ObservabilityPipelineConfigSourceItem > ,
23+ /// Use this field to configure the pipeline's filter queries to use the deprecated search syntax.
24+ #[ serde( rename = "use_legacy_search_syntax" ) ]
25+ pub use_legacy_search_syntax : Option < bool > ,
2326 #[ serde( flatten) ]
2427 pub additional_properties : std:: collections:: BTreeMap < String , serde_json:: Value > ,
2528 #[ serde( skip) ]
@@ -36,6 +39,7 @@ impl ObservabilityPipelineConfig {
3639 destinations,
3740 processors : None ,
3841 sources,
42+ use_legacy_search_syntax : None ,
3943 additional_properties : std:: collections:: BTreeMap :: new ( ) ,
4044 _unparsed : false ,
4145 }
@@ -49,6 +53,11 @@ impl ObservabilityPipelineConfig {
4953 self
5054 }
5155
56+ pub fn use_legacy_search_syntax ( mut self , value : bool ) -> Self {
57+ self . use_legacy_search_syntax = Some ( value) ;
58+ self
59+ }
60+
5261 pub fn additional_properties (
5362 mut self ,
5463 value : std:: collections:: BTreeMap < String , serde_json:: Value > ,
@@ -84,6 +93,7 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineConfig {
8493 let mut sources: Option <
8594 Vec < crate :: datadogV2:: model:: ObservabilityPipelineConfigSourceItem > ,
8695 > = None ;
96+ let mut use_legacy_search_syntax: Option < bool > = None ;
8797 let mut additional_properties: std:: collections:: BTreeMap <
8898 String ,
8999 serde_json:: Value ,
@@ -105,6 +115,13 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineConfig {
105115 "sources" => {
106116 sources = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
107117 }
118+ "use_legacy_search_syntax" => {
119+ if v. is_null ( ) {
120+ continue ;
121+ }
122+ use_legacy_search_syntax =
123+ Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
124+ }
108125 & _ => {
109126 if let Ok ( value) = serde_json:: from_value ( v. clone ( ) ) {
110127 additional_properties. insert ( k, value) ;
@@ -120,6 +137,7 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineConfig {
120137 destinations,
121138 processors,
122139 sources,
140+ use_legacy_search_syntax,
123141 additional_properties,
124142 _unparsed,
125143 } ;
0 commit comments