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
source§fn eq(&self, other: &MetricDimension) -> bool
fn eq(&self, other: &MetricDimension) -> bool
self
and other
values to be equal, and is used
by ==
.