Struct aws_sdk_autoscaling::types::MetricStat
source · #[non_exhaustive]pub struct MetricStat {
pub metric: Option<Metric>,
pub stat: Option<String>,
pub unit: Option<String>,
}Expand description
This structure defines the CloudWatch metric to return, along with the statistic, period, and unit.
For more information about the CloudWatch terminology below, see Amazon CloudWatch concepts in the Amazon CloudWatch User Guide.
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.metric: Option<Metric>The CloudWatch metric to return, including the metric name, namespace, and dimensions. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics.
stat: Option<String>The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in Statistics in the Amazon CloudWatch User Guide.
The most commonly used metrics for predictive scaling are Average and Sum.
unit: Option<String>The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.
Implementations§
source§impl MetricStat
impl MetricStat
sourcepub fn metric(&self) -> Option<&Metric>
pub fn metric(&self) -> Option<&Metric>
The CloudWatch metric to return, including the metric name, namespace, and dimensions. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics.
sourcepub fn stat(&self) -> Option<&str>
pub fn stat(&self) -> Option<&str>
The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in Statistics in the Amazon CloudWatch User Guide.
The most commonly used metrics for predictive scaling are Average and Sum.
sourcepub fn unit(&self) -> Option<&str>
pub fn unit(&self) -> Option<&str>
The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.
source§impl MetricStat
impl MetricStat
sourcepub fn builder() -> MetricStatBuilder
pub fn builder() -> MetricStatBuilder
Creates a new builder-style object to manufacture MetricStat.
Trait Implementations§
source§impl Clone for MetricStat
impl Clone for MetricStat
source§fn clone(&self) -> MetricStat
fn clone(&self) -> MetricStat
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MetricStat
impl Debug for MetricStat
source§impl PartialEq for MetricStat
impl PartialEq for MetricStat
source§fn eq(&self, other: &MetricStat) -> bool
fn eq(&self, other: &MetricStat) -> bool
self and other values to be equal, and is used
by ==.