Struct aws_sdk_iot::types::MetricDimension
source · #[non_exhaustive]pub struct MetricDimension {
pub dimension_name: String,
pub operator: Option<DimensionValueOperator>,
}
Expand description
The dimension of a 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.dimension_name: String
A unique identifier for the dimension.
operator: Option<DimensionValueOperator>
Defines how the dimensionValues
of a dimension are interpreted. For example, for dimension type TOPIC_FILTER, the IN
operator, a message will be counted only if its topic matches one of the topic filters. With NOT_IN
operator, a message will be counted only if it doesn't match any of the topic filters. The operator is optional: if it's not provided (is null
), it will be interpreted as IN
.
Implementations§
source§impl MetricDimension
impl MetricDimension
sourcepub fn dimension_name(&self) -> &str
pub fn dimension_name(&self) -> &str
A unique identifier for the dimension.
sourcepub fn operator(&self) -> Option<&DimensionValueOperator>
pub fn operator(&self) -> Option<&DimensionValueOperator>
Defines how the dimensionValues
of a dimension are interpreted. For example, for dimension type TOPIC_FILTER, the IN
operator, a message will be counted only if its topic matches one of the topic filters. With NOT_IN
operator, a message will be counted only if it doesn't match any of the topic filters. The operator is optional: if it's not provided (is null
), it will be interpreted as IN
.
source§impl MetricDimension
impl MetricDimension
sourcepub fn builder() -> MetricDimensionBuilder
pub fn builder() -> MetricDimensionBuilder
Creates a new builder-style object to manufacture MetricDimension
.
Trait Implementations§
source§impl Clone for MetricDimension
impl Clone for MetricDimension
source§fn clone(&self) -> MetricDimension
fn clone(&self) -> MetricDimension
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricDimension
impl Debug for MetricDimension
source§impl PartialEq for MetricDimension
impl PartialEq for MetricDimension
impl StructuralPartialEq for MetricDimension
Auto Trait Implementations§
impl Freeze for MetricDimension
impl RefUnwindSafe for MetricDimension
impl Send for MetricDimension
impl Sync for MetricDimension
impl Unpin for MetricDimension
impl UnwindSafe for MetricDimension
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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