#[non_exhaustive]pub struct TargetTrackingMetricStat {
pub metric: Option<TargetTrackingMetric>,
pub stat: 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<TargetTrackingMetric>
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: 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 metric for scaling is Average
.
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 TargetTrackingMetricStat
impl TargetTrackingMetricStat
sourcepub fn metric(&self) -> Option<&TargetTrackingMetric>
pub fn metric(&self) -> Option<&TargetTrackingMetric>
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) -> &str
pub fn stat(&self) -> &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 metric for scaling is Average
.
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 TargetTrackingMetricStat
impl TargetTrackingMetricStat
sourcepub fn builder() -> TargetTrackingMetricStatBuilder
pub fn builder() -> TargetTrackingMetricStatBuilder
Creates a new builder-style object to manufacture TargetTrackingMetricStat
.
Trait Implementations§
source§impl Clone for TargetTrackingMetricStat
impl Clone for TargetTrackingMetricStat
source§fn clone(&self) -> TargetTrackingMetricStat
fn clone(&self) -> TargetTrackingMetricStat
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TargetTrackingMetricStat
impl Debug for TargetTrackingMetricStat
source§impl PartialEq for TargetTrackingMetricStat
impl PartialEq for TargetTrackingMetricStat
source§fn eq(&self, other: &TargetTrackingMetricStat) -> bool
fn eq(&self, other: &TargetTrackingMetricStat) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TargetTrackingMetricStat
Auto Trait Implementations§
impl Freeze for TargetTrackingMetricStat
impl RefUnwindSafe for TargetTrackingMetricStat
impl Send for TargetTrackingMetricStat
impl Sync for TargetTrackingMetricStat
impl Unpin for TargetTrackingMetricStat
impl UnwindSafe for TargetTrackingMetricStat
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more