Struct aws_sdk_iot::types::MetricToRetain
source · #[non_exhaustive]pub struct MetricToRetain {
pub metric: String,
pub metric_dimension: Option<MetricDimension>,
pub export_metric: Option<bool>,
}
Expand description
The metric you want to retain. Dimensions are optional.
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.metric: String
What is measured by the behavior.
metric_dimension: Option<MetricDimension>
The dimension of a metric. This can't be used with custom metrics.
export_metric: Option<bool>
Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should export the corresponding metrics.
Implementations§
source§impl MetricToRetain
impl MetricToRetain
sourcepub fn metric_dimension(&self) -> Option<&MetricDimension>
pub fn metric_dimension(&self) -> Option<&MetricDimension>
The dimension of a metric. This can't be used with custom metrics.
sourcepub fn export_metric(&self) -> Option<bool>
pub fn export_metric(&self) -> Option<bool>
Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should export the corresponding metrics.
source§impl MetricToRetain
impl MetricToRetain
sourcepub fn builder() -> MetricToRetainBuilder
pub fn builder() -> MetricToRetainBuilder
Creates a new builder-style object to manufacture MetricToRetain
.
Trait Implementations§
source§impl Clone for MetricToRetain
impl Clone for MetricToRetain
source§fn clone(&self) -> MetricToRetain
fn clone(&self) -> MetricToRetain
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 MetricToRetain
impl Debug for MetricToRetain
source§impl PartialEq for MetricToRetain
impl PartialEq for MetricToRetain
source§fn eq(&self, other: &MetricToRetain) -> bool
fn eq(&self, other: &MetricToRetain) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricToRetain
Auto Trait Implementations§
impl RefUnwindSafe for MetricToRetain
impl Send for MetricToRetain
impl Sync for MetricToRetain
impl Unpin for MetricToRetain
impl UnwindSafe for MetricToRetain
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.