@@ -88,12 +88,14 @@ pub struct ListTagConfigurationsOptionalParams {
88
88
/// Filter distributions with additional percentile
89
89
/// aggregations enabled or disabled.
90
90
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].
92
92
/// If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
93
93
pub filter_queried : Option < bool > ,
94
94
/// Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions.
95
95
/// Can only be combined with the filter[queried] filter.
96
96
pub filter_tags : Option < String > ,
97
+ /// (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs.
98
+ pub filter_related_assets : Option < bool > ,
97
99
/// The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query.
98
100
/// Default value is 3600 (1 hour), maximum value is 2,592,000 (30 days).
99
101
pub window_seconds : Option < i64 > ,
@@ -130,7 +132,7 @@ impl ListTagConfigurationsOptionalParams {
130
132
self . filter_include_percentiles = Some ( value) ;
131
133
self
132
134
}
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].
134
136
/// If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
135
137
pub fn filter_queried ( mut self , value : bool ) -> Self {
136
138
self . filter_queried = Some ( value) ;
@@ -142,6 +144,11 @@ impl ListTagConfigurationsOptionalParams {
142
144
self . filter_tags = Some ( value) ;
143
145
self
144
146
}
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
+ }
145
152
/// The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query.
146
153
/// Default value is 3600 (1 hour), maximum value is 2,592,000 (30 days).
147
154
pub fn window_seconds ( mut self , value : i64 ) -> Self {
@@ -1545,6 +1552,7 @@ impl MetricsAPI {
1545
1552
let filter_include_percentiles = params. filter_include_percentiles ;
1546
1553
let filter_queried = params. filter_queried ;
1547
1554
let filter_tags = params. filter_tags ;
1555
+ let filter_related_assets = params. filter_related_assets ;
1548
1556
let window_seconds = params. window_seconds ;
1549
1557
let page_size = params. page_size ;
1550
1558
let page_cursor = params. page_cursor ;
@@ -1584,6 +1592,10 @@ impl MetricsAPI {
1584
1592
local_req_builder =
1585
1593
local_req_builder. query ( & [ ( "filter[tags]" , & local_query_param. to_string ( ) ) ] ) ;
1586
1594
} ;
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
+ } ;
1587
1599
if let Some ( ref local_query_param) = window_seconds {
1588
1600
local_req_builder =
1589
1601
local_req_builder. query ( & [ ( "window[seconds]" , & local_query_param. to_string ( ) ) ] ) ;
0 commit comments