pub struct QueryTimeSeriesRequest {
pub parent: String,
pub resource: String,
pub metrics: Vec<String>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub period: Option<Duration>,
pub statistic: i32,
}Expand description
The request for QueryTimeSeries.
Fields§
§parent: StringThe project the resource is in, projects/{project}.
resource: StringThe resource whose metrics to return, in parent: an instance,
projects/{project}/zones/{zone}/instances/{instance}, a volume,
projects/{project}/zones/{zone}/volumes/{volume}, or a network
interface,
projects/{project}/zones/{zone}/networkInterfaces/{network_interface}.
metrics: Vec<String>The metrics to return, such as oc_compute_instance_cpu_seconds_total,
at least one. A metric of another kind of resource returns a series
without points.
start_time: Option<Timestamp>The start of the window: the first point is at it.
end_time: Option<Timestamp>The end of the window, not before start_time.
period: Option<Duration>The length of each period, in whole seconds, at least one: the points are this far apart, and each covers the period that ends at it. A value is collected every 30 seconds and a point needs two inside its period, so a period under 60 seconds often has none.
statistic: i32How each point is computed.
Implementations§
Trait Implementations§
Source§impl Clone for QueryTimeSeriesRequest
impl Clone for QueryTimeSeriesRequest
Source§impl Debug for QueryTimeSeriesRequest
impl Debug for QueryTimeSeriesRequest
Source§impl Default for QueryTimeSeriesRequest
impl Default for QueryTimeSeriesRequest
Source§impl<'de> Deserialize<'de> for QueryTimeSeriesRequest
impl<'de> Deserialize<'de> for QueryTimeSeriesRequest
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
impl Eq for QueryTimeSeriesRequest
Source§impl Hash for QueryTimeSeriesRequest
impl Hash for QueryTimeSeriesRequest
Source§impl Message for QueryTimeSeriesRequest
impl Message for QueryTimeSeriesRequest
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 QueryTimeSeriesRequest
impl PartialEq for QueryTimeSeriesRequest
Source§impl Serialize for QueryTimeSeriesRequest
impl Serialize for QueryTimeSeriesRequest
impl StructuralPartialEq for QueryTimeSeriesRequest
Auto Trait Implementations§
impl Forget for QueryTimeSeriesRequest
impl Freeze for QueryTimeSeriesRequest
impl RefUnwindSafe for QueryTimeSeriesRequest
impl Send for QueryTimeSeriesRequest
impl Sync for QueryTimeSeriesRequest
impl Unpin for QueryTimeSeriesRequest
impl UnsafeUnpin for QueryTimeSeriesRequest
impl UnwindSafe for QueryTimeSeriesRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.