Struct aws_sdk_iot::types::CloudwatchMetricAction
source · #[non_exhaustive]pub struct CloudwatchMetricAction {
pub role_arn: String,
pub metric_namespace: String,
pub metric_name: String,
pub metric_value: String,
pub metric_unit: String,
pub metric_timestamp: Option<String>,
}
Expand description
Describes an action that captures a CloudWatch metric.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.role_arn: String
The IAM role that allows access to the CloudWatch metric.
metric_namespace: String
The CloudWatch metric namespace name.
metric_name: String
The CloudWatch metric name.
metric_value: String
The CloudWatch metric value.
metric_unit: String
The metric unit supported by CloudWatch.
metric_timestamp: Option<String>
An optional Unix timestamp.
Implementations§
source§impl CloudwatchMetricAction
impl CloudwatchMetricAction
sourcepub fn metric_namespace(&self) -> &str
pub fn metric_namespace(&self) -> &str
The CloudWatch metric namespace name.
sourcepub fn metric_name(&self) -> &str
pub fn metric_name(&self) -> &str
The CloudWatch metric name.
sourcepub fn metric_value(&self) -> &str
pub fn metric_value(&self) -> &str
The CloudWatch metric value.
sourcepub fn metric_unit(&self) -> &str
pub fn metric_unit(&self) -> &str
The metric unit supported by CloudWatch.
sourcepub fn metric_timestamp(&self) -> Option<&str>
pub fn metric_timestamp(&self) -> Option<&str>
An optional Unix timestamp.
source§impl CloudwatchMetricAction
impl CloudwatchMetricAction
sourcepub fn builder() -> CloudwatchMetricActionBuilder
pub fn builder() -> CloudwatchMetricActionBuilder
Creates a new builder-style object to manufacture CloudwatchMetricAction
.
Trait Implementations§
source§impl Clone for CloudwatchMetricAction
impl Clone for CloudwatchMetricAction
source§fn clone(&self) -> CloudwatchMetricAction
fn clone(&self) -> CloudwatchMetricAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CloudwatchMetricAction
impl Debug for CloudwatchMetricAction
source§impl PartialEq for CloudwatchMetricAction
impl PartialEq for CloudwatchMetricAction
source§fn eq(&self, other: &CloudwatchMetricAction) -> bool
fn eq(&self, other: &CloudwatchMetricAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CloudwatchMetricAction
Auto Trait Implementations§
impl Freeze for CloudwatchMetricAction
impl RefUnwindSafe for CloudwatchMetricAction
impl Send for CloudwatchMetricAction
impl Sync for CloudwatchMetricAction
impl Unpin for CloudwatchMetricAction
impl UnwindSafe for CloudwatchMetricAction
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.