Struct aws_sdk_autoscaling::types::builders::MetricBuilder
source · #[non_exhaustive]pub struct MetricBuilder { /* private fields */ }Expand description
A builder for Metric.
Implementations§
source§impl MetricBuilder
impl MetricBuilder
sourcepub fn namespace(self, input: impl Into<String>) -> Self
pub fn namespace(self, input: impl Into<String>) -> Self
The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
This field is required.sourcepub fn set_namespace(self, input: Option<String>) -> Self
pub fn set_namespace(self, input: Option<String>) -> Self
The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
sourcepub fn get_namespace(&self) -> &Option<String>
pub fn get_namespace(&self) -> &Option<String>
The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
The name of the metric.
This field is required.sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
The name of the metric.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
The name of the metric.
sourcepub fn dimensions(self, input: MetricDimension) -> Self
pub fn dimensions(self, input: MetricDimension) -> Self
Appends an item to dimensions.
To override the contents of this collection use set_dimensions.
The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
sourcepub fn set_dimensions(self, input: Option<Vec<MetricDimension>>) -> Self
pub fn set_dimensions(self, input: Option<Vec<MetricDimension>>) -> Self
The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
sourcepub fn get_dimensions(&self) -> &Option<Vec<MetricDimension>>
pub fn get_dimensions(&self) -> &Option<Vec<MetricDimension>>
The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
Trait Implementations§
source§impl Clone for MetricBuilder
impl Clone for MetricBuilder
source§fn clone(&self) -> MetricBuilder
fn clone(&self) -> MetricBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MetricBuilder
impl Debug for MetricBuilder
source§impl Default for MetricBuilder
impl Default for MetricBuilder
source§fn default() -> MetricBuilder
fn default() -> MetricBuilder
source§impl PartialEq for MetricBuilder
impl PartialEq for MetricBuilder
source§fn eq(&self, other: &MetricBuilder) -> bool
fn eq(&self, other: &MetricBuilder) -> bool
self and other values to be equal, and is used
by ==.