[−][src]Struct rusoto_cloudwatch::MetricStat
This structure defines the metric to be returned, along with the statistics, period, and units.
Fields
metric: Metric
The metric to return, including the metric name, namespace, and dimensions.
period: i64
The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a PutMetricData
call that includes a StorageResolution
of 1 second.
If the StartTime
parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:
-
Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
-
Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
-
Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
stat: String
The statistic to return. It can include any CloudWatch statistic or extended statistic.
unit: Option<String>
When you are using a Put
operation, this defines what unit you want to use when storing the metric.
In a Get
operation, if you omit Unit
then all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.
Trait Implementations
impl Clone for MetricStat
[src]
fn clone(&self) -> MetricStat
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MetricStat
[src]
impl Default for MetricStat
[src]
fn default() -> MetricStat
[src]
impl PartialEq<MetricStat> for MetricStat
[src]
fn eq(&self, other: &MetricStat) -> bool
[src]
fn ne(&self, other: &MetricStat) -> bool
[src]
impl StructuralPartialEq for MetricStat
[src]
Auto Trait Implementations
impl RefUnwindSafe for MetricStat
impl Send for MetricStat
impl Sync for MetricStat
impl Unpin for MetricStat
impl UnwindSafe for MetricStat
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,