@@ -91,6 +91,12 @@ pub struct ListTagConfigurationsOptionalParams {
9191 /// (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 > ,
94+ /// The number of seconds of look back (from now) used by the `filter[queried]` filter logic.
95+ /// Must be sent with `filter[queried]` and is only applied when `filter[queried]=true`.
96+ /// If `filter[queried]=false`, this parameter is ignored and default queried-window behavior applies.
97+ /// If `filter[queried]` is not provided, sending this parameter returns a 400.
98+ /// For example: `GET /api/v2/metrics?filter[queried]=true&filter[queried][window][seconds]=7776000`.
99+ pub filter_queried_window_seconds : Option < i64 > ,
94100 /// Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions.
95101 /// Can only be combined with the filter[queried] filter.
96102 pub filter_tags : Option < String > ,
@@ -138,6 +144,15 @@ impl ListTagConfigurationsOptionalParams {
138144 self . filter_queried = Some ( value) ;
139145 self
140146 }
147+ /// The number of seconds of look back (from now) used by the `filter[queried]` filter logic.
148+ /// Must be sent with `filter[queried]` and is only applied when `filter[queried]=true`.
149+ /// If `filter[queried]=false`, this parameter is ignored and default queried-window behavior applies.
150+ /// If `filter[queried]` is not provided, sending this parameter returns a 400.
151+ /// For example: `GET /api/v2/metrics?filter[queried]=true&filter[queried][window][seconds]=7776000`.
152+ pub fn filter_queried_window_seconds ( mut self , value : i64 ) -> Self {
153+ self . filter_queried_window_seconds = Some ( value) ;
154+ self
155+ }
141156 /// Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions.
142157 /// Can only be combined with the filter[queried] filter.
143158 pub fn filter_tags ( mut self , value : String ) -> Self {
@@ -1732,6 +1747,7 @@ impl MetricsAPI {
17321747 let filter_metric_type = params. filter_metric_type ;
17331748 let filter_include_percentiles = params. filter_include_percentiles ;
17341749 let filter_queried = params. filter_queried ;
1750+ let filter_queried_window_seconds = params. filter_queried_window_seconds ;
17351751 let filter_tags = params. filter_tags ;
17361752 let filter_related_assets = params. filter_related_assets ;
17371753 let window_seconds = params. window_seconds ;
@@ -1769,6 +1785,12 @@ impl MetricsAPI {
17691785 local_req_builder =
17701786 local_req_builder. query ( & [ ( "filter[queried]" , & local_query_param. to_string ( ) ) ] ) ;
17711787 } ;
1788+ if let Some ( ref local_query_param) = filter_queried_window_seconds {
1789+ local_req_builder = local_req_builder. query ( & [ (
1790+ "filter[queried][window][seconds]" ,
1791+ & local_query_param. to_string ( ) ,
1792+ ) ] ) ;
1793+ } ;
17721794 if let Some ( ref local_query_param) = filter_tags {
17731795 local_req_builder =
17741796 local_req_builder. query ( & [ ( "filter[tags]" , & local_query_param. to_string ( ) ) ] ) ;
0 commit comments