Struct google_api_proto::google::monitoring::v3::ListTimeSeriesRequest
source · 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: i32,
pub page_size: i32,
pub page_token: String,
}
Expand description
The ListTimeSeries
request.
Fields§
§name: String
Required. 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: String
Required. 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: String
Unsupported: must be left blank. The points in each time series are currently returned in reverse time order (most recent to oldest).
view: i32
Required. Specifies which information is returned about the time series.
page_size: i32
A 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: String
If 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 view(&self) -> TimeSeriesView
pub fn view(&self) -> TimeSeriesView
Returns the enum value of view
, or the default if the field is set to an invalid enum value.
sourcepub fn set_view(&mut self, value: TimeSeriesView)
pub fn set_view(&mut self, value: TimeSeriesView)
Sets view
to the provided enum value.
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 moresource§impl Debug for ListTimeSeriesRequest
impl Debug for ListTimeSeriesRequest
source§impl Default for ListTimeSeriesRequest
impl Default for ListTimeSeriesRequest
source§impl Message for ListTimeSeriesRequest
impl Message for ListTimeSeriesRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ListTimeSeriesRequest
impl PartialEq for ListTimeSeriesRequest
source§fn eq(&self, other: &ListTimeSeriesRequest) -> bool
fn eq(&self, other: &ListTimeSeriesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListTimeSeriesRequest
Auto Trait Implementations§
impl Freeze for ListTimeSeriesRequest
impl RefUnwindSafe for ListTimeSeriesRequest
impl Send for ListTimeSeriesRequest
impl Sync for ListTimeSeriesRequest
impl Unpin for ListTimeSeriesRequest
impl UnwindSafe for ListTimeSeriesRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request