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 ==
.