Struct aws_sdk_devopsguru::types::CloudWatchMetricsDetail
source · #[non_exhaustive]pub struct CloudWatchMetricsDetail {
pub metric_name: Option<String>,
pub namespace: Option<String>,
pub dimensions: Option<Vec<CloudWatchMetricsDimension>>,
pub stat: Option<CloudWatchMetricsStat>,
pub unit: Option<String>,
pub period: i32,
pub metric_data_summary: Option<CloudWatchMetricsDataSummary>,
}
Expand description
Information about an Amazon CloudWatch metric.
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_name: Option<String>
The name of the CloudWatch metric.
namespace: Option<String>
The namespace of the CloudWatch metric. A namespace is a container for CloudWatch metrics.
dimensions: Option<Vec<CloudWatchMetricsDimension>>
An array of CloudWatch dimensions associated with
stat: Option<CloudWatchMetricsStat>
The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.
unit: Option<String>
The unit of measure used for the CloudWatch metric. For example, Bytes
, Seconds
, Count
, and Percent
.
period: i32
The length of time associated with the CloudWatch metric in number of seconds.
metric_data_summary: Option<CloudWatchMetricsDataSummary>
This object returns anomaly metric data.
Implementations§
source§impl CloudWatchMetricsDetail
impl CloudWatchMetricsDetail
sourcepub fn metric_name(&self) -> Option<&str>
pub fn metric_name(&self) -> Option<&str>
The name of the CloudWatch metric.
sourcepub fn namespace(&self) -> Option<&str>
pub fn namespace(&self) -> Option<&str>
The namespace of the CloudWatch metric. A namespace is a container for CloudWatch metrics.
sourcepub fn dimensions(&self) -> &[CloudWatchMetricsDimension]
pub fn dimensions(&self) -> &[CloudWatchMetricsDimension]
An array of CloudWatch dimensions associated with
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .dimensions.is_none()
.
sourcepub fn stat(&self) -> Option<&CloudWatchMetricsStat>
pub fn stat(&self) -> Option<&CloudWatchMetricsStat>
The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.
sourcepub fn unit(&self) -> Option<&str>
pub fn unit(&self) -> Option<&str>
The unit of measure used for the CloudWatch metric. For example, Bytes
, Seconds
, Count
, and Percent
.
sourcepub fn period(&self) -> i32
pub fn period(&self) -> i32
The length of time associated with the CloudWatch metric in number of seconds.
sourcepub fn metric_data_summary(&self) -> Option<&CloudWatchMetricsDataSummary>
pub fn metric_data_summary(&self) -> Option<&CloudWatchMetricsDataSummary>
This object returns anomaly metric data.
source§impl CloudWatchMetricsDetail
impl CloudWatchMetricsDetail
sourcepub fn builder() -> CloudWatchMetricsDetailBuilder
pub fn builder() -> CloudWatchMetricsDetailBuilder
Creates a new builder-style object to manufacture CloudWatchMetricsDetail
.
Trait Implementations§
source§impl Clone for CloudWatchMetricsDetail
impl Clone for CloudWatchMetricsDetail
source§fn clone(&self) -> CloudWatchMetricsDetail
fn clone(&self) -> CloudWatchMetricsDetail
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CloudWatchMetricsDetail
impl Debug for CloudWatchMetricsDetail
source§impl PartialEq for CloudWatchMetricsDetail
impl PartialEq for CloudWatchMetricsDetail
source§fn eq(&self, other: &CloudWatchMetricsDetail) -> bool
fn eq(&self, other: &CloudWatchMetricsDetail) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CloudWatchMetricsDetail
Auto Trait Implementations§
impl Freeze for CloudWatchMetricsDetail
impl RefUnwindSafe for CloudWatchMetricsDetail
impl Send for CloudWatchMetricsDetail
impl Sync for CloudWatchMetricsDetail
impl Unpin for CloudWatchMetricsDetail
impl UnwindSafe for CloudWatchMetricsDetail
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