@@ -88,12 +88,14 @@ pub struct ListTagConfigurationsOptionalParams {
8888 /// Filter distributions with additional percentile
8989 /// aggregations enabled or disabled.
9090 pub filter_include_percentiles : Option < bool > ,
91- /// (Beta ) Filter custom metrics that have or have not been queried in the specified window[seconds].
91+ /// (Preview ) Filter custom metrics that have or have not been queried in the specified window[seconds].
9292 /// If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
9393 pub filter_queried : Option < bool > ,
9494 /// Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions.
9595 /// Can only be combined with the filter[queried] filter.
9696 pub filter_tags : Option < String > ,
97+ /// (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs.
98+ pub filter_related_assets : Option < bool > ,
9799 /// The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query.
98100 /// Default value is 3600 (1 hour), maximum value is 2,592,000 (30 days).
99101 pub window_seconds : Option < i64 > ,
@@ -130,7 +132,7 @@ impl ListTagConfigurationsOptionalParams {
130132 self . filter_include_percentiles = Some ( value) ;
131133 self
132134 }
133- /// (Beta ) Filter custom metrics that have or have not been queried in the specified window[seconds].
135+ /// (Preview ) Filter custom metrics that have or have not been queried in the specified window[seconds].
134136 /// If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
135137 pub fn filter_queried ( mut self , value : bool ) -> Self {
136138 self . filter_queried = Some ( value) ;
@@ -142,6 +144,11 @@ impl ListTagConfigurationsOptionalParams {
142144 self . filter_tags = Some ( value) ;
143145 self
144146 }
147+ /// (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs.
148+ pub fn filter_related_assets ( mut self , value : bool ) -> Self {
149+ self . filter_related_assets = Some ( value) ;
150+ self
151+ }
145152 /// The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query.
146153 /// Default value is 3600 (1 hour), maximum value is 2,592,000 (30 days).
147154 pub fn window_seconds ( mut self , value : i64 ) -> Self {
@@ -1545,6 +1552,7 @@ impl MetricsAPI {
15451552 let filter_include_percentiles = params. filter_include_percentiles ;
15461553 let filter_queried = params. filter_queried ;
15471554 let filter_tags = params. filter_tags ;
1555+ let filter_related_assets = params. filter_related_assets ;
15481556 let window_seconds = params. window_seconds ;
15491557 let page_size = params. page_size ;
15501558 let page_cursor = params. page_cursor ;
@@ -1584,6 +1592,10 @@ impl MetricsAPI {
15841592 local_req_builder =
15851593 local_req_builder. query ( & [ ( "filter[tags]" , & local_query_param. to_string ( ) ) ] ) ;
15861594 } ;
1595+ if let Some ( ref local_query_param) = filter_related_assets {
1596+ local_req_builder = local_req_builder
1597+ . query ( & [ ( "filter[related_assets]" , & local_query_param. to_string ( ) ) ] ) ;
1598+ } ;
15871599 if let Some ( ref local_query_param) = window_seconds {
15881600 local_req_builder =
15891601 local_req_builder. query ( & [ ( "window[seconds]" , & local_query_param. to_string ( ) ) ] ) ;
0 commit comments