Struct aws_sdk_emr::types::MetricDimension
source · #[non_exhaustive]pub struct MetricDimension {
pub key: Option<String>,
pub value: Option<String>,
}
Expand description
A CloudWatch dimension, which is specified using a Key
(known as a Name
in CloudWatch), Value
pair. By default, Amazon EMR uses one dimension whose Key
is JobFlowID
and Value
is a variable representing the cluster ID, which is ${emr.clusterId}
. This enables the rule to bootstrap when the cluster ID becomes available.
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.key: Option<String>
The dimension name.
value: Option<String>
The dimension value.
Implementations§
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
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 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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricDimension
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more