#[non_exhaustive]pub struct ListTimeSeriesRequest {
    pub name: String,
    pub filter: String,
    pub interval: Option<TimeInterval>,
    pub aggregation: Option<Aggregation>,
    pub secondary_aggregation: Option<Aggregation>,
    pub order_by: String,
    pub view: TimeSeriesView,
    pub page_size: i32,
    pub page_token: String,
}Expand description
The ListTimeSeries request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. The project, organization or folder on which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]
organizations/[ORGANIZATION_ID]
folders/[FOLDER_ID]filter: StringRequired. A monitoring filter that specifies which time series should be returned. The filter must specify a single metric type, and can additionally specify metric labels and other information. For example:
metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
    metric.labels.instance_name = "my-instance-name"interval: Option<TimeInterval>Required. The time interval for which results should be returned. Only time series that contain data points in the specified interval are included in the response.
aggregation: Option<Aggregation>Specifies the alignment of data points in individual time series as well as how to combine the retrieved time series across specified labels.
By default (if no aggregation is explicitly specified), the raw time
series data is returned.
secondary_aggregation: Option<Aggregation>Apply a second aggregation after aggregation is applied. May only be
specified if aggregation is specified.
order_by: StringUnsupported: must be left blank. The points in each time series are currently returned in reverse time order (most recent to oldest).
view: TimeSeriesViewRequired. Specifies which information is returned about the time series.
page_size: i32A positive number that is the maximum number of results to return. If
page_size is empty or more than 100,000 results, the effective
page_size is 100,000 results. If view is set to FULL, this is the
maximum number of Points returned. If view is set to HEADERS, this is
the maximum number of TimeSeries returned.
page_token: StringIf this field is not empty then it must contain the nextPageToken value
returned by a previous call to this method.  Using this field causes the
method to return additional results from the previous method call.
Implementations§
Source§impl ListTimeSeriesRequest
 
impl ListTimeSeriesRequest
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
 
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of filter.
Sourcepub fn set_interval<T: Into<Option<TimeInterval>>>(self, v: T) -> Self
 
pub fn set_interval<T: Into<Option<TimeInterval>>>(self, v: T) -> Self
Sets the value of interval.
Sourcepub fn set_aggregation<T: Into<Option<Aggregation>>>(self, v: T) -> Self
 
pub fn set_aggregation<T: Into<Option<Aggregation>>>(self, v: T) -> Self
Sets the value of aggregation.
Sourcepub fn set_secondary_aggregation<T: Into<Option<Aggregation>>>(
    self,
    v: T,
) -> Self
 
pub fn set_secondary_aggregation<T: Into<Option<Aggregation>>>( self, v: T, ) -> Self
Sets the value of secondary_aggregation.
Sourcepub fn set_order_by<T: Into<String>>(self, v: T) -> Self
 
pub fn set_order_by<T: Into<String>>(self, v: T) -> Self
Sets the value of order_by.
Sourcepub fn set_view<T: Into<TimeSeriesView>>(self, v: T) -> Self
 
pub fn set_view<T: Into<TimeSeriesView>>(self, v: T) -> Self
Sets the value of view.
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
 
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of page_size.
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
 
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
Trait Implementations§
Source§impl Clone for ListTimeSeriesRequest
 
impl Clone for ListTimeSeriesRequest
Source§fn clone(&self) -> ListTimeSeriesRequest
 
fn clone(&self) -> ListTimeSeriesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more