Struct aws_sdk_computeoptimizer::types::builders::EcsServiceProjectedUtilizationMetricBuilder
source · #[non_exhaustive]pub struct EcsServiceProjectedUtilizationMetricBuilder { /* private fields */ }
Expand description
A builder for EcsServiceProjectedUtilizationMetric
.
Implementations§
source§impl EcsServiceProjectedUtilizationMetricBuilder
impl EcsServiceProjectedUtilizationMetricBuilder
sourcepub fn name(self, input: EcsServiceMetricName) -> Self
pub fn name(self, input: EcsServiceMetricName) -> Self
The name of the projected utilization metric.
The following utilization metrics are available:
-
Cpu
— The percentage of allocated compute units that are currently in use on the service tasks. -
Memory
— The percentage of memory that's currently in use on the service tasks.
sourcepub fn set_name(self, input: Option<EcsServiceMetricName>) -> Self
pub fn set_name(self, input: Option<EcsServiceMetricName>) -> Self
The name of the projected utilization metric.
The following utilization metrics are available:
-
Cpu
— The percentage of allocated compute units that are currently in use on the service tasks. -
Memory
— The percentage of memory that's currently in use on the service tasks.
sourcepub fn get_name(&self) -> &Option<EcsServiceMetricName>
pub fn get_name(&self) -> &Option<EcsServiceMetricName>
The name of the projected utilization metric.
The following utilization metrics are available:
-
Cpu
— The percentage of allocated compute units that are currently in use on the service tasks. -
Memory
— The percentage of memory that's currently in use on the service tasks.
sourcepub fn statistic(self, input: EcsServiceMetricStatistic) -> Self
pub fn statistic(self, input: EcsServiceMetricStatistic) -> Self
The statistic of the projected utilization metric.
The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only the Maximum
statistic, which is the highest value observed during the specified period.
The Compute Optimizer console displays graphs for some utilization metrics using the Average
statistic, which is the value of Sum
/ SampleCount
during the specified period. For more information, see Viewing resource recommendations in the Compute Optimizer User Guide. You can also get averaged utilization metric data for your resources using Amazon CloudWatch. For more information, see the Amazon CloudWatch User Guide.
sourcepub fn set_statistic(self, input: Option<EcsServiceMetricStatistic>) -> Self
pub fn set_statistic(self, input: Option<EcsServiceMetricStatistic>) -> Self
The statistic of the projected utilization metric.
The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only the Maximum
statistic, which is the highest value observed during the specified period.
The Compute Optimizer console displays graphs for some utilization metrics using the Average
statistic, which is the value of Sum
/ SampleCount
during the specified period. For more information, see Viewing resource recommendations in the Compute Optimizer User Guide. You can also get averaged utilization metric data for your resources using Amazon CloudWatch. For more information, see the Amazon CloudWatch User Guide.
sourcepub fn get_statistic(&self) -> &Option<EcsServiceMetricStatistic>
pub fn get_statistic(&self) -> &Option<EcsServiceMetricStatistic>
The statistic of the projected utilization metric.
The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only the Maximum
statistic, which is the highest value observed during the specified period.
The Compute Optimizer console displays graphs for some utilization metrics using the Average
statistic, which is the value of Sum
/ SampleCount
during the specified period. For more information, see Viewing resource recommendations in the Compute Optimizer User Guide. You can also get averaged utilization metric data for your resources using Amazon CloudWatch. For more information, see the Amazon CloudWatch User Guide.
sourcepub fn lower_bound_value(self, input: f64) -> Self
pub fn lower_bound_value(self, input: f64) -> Self
The lower bound values for the projected utilization metrics.
sourcepub fn set_lower_bound_value(self, input: Option<f64>) -> Self
pub fn set_lower_bound_value(self, input: Option<f64>) -> Self
The lower bound values for the projected utilization metrics.
sourcepub fn get_lower_bound_value(&self) -> &Option<f64>
pub fn get_lower_bound_value(&self) -> &Option<f64>
The lower bound values for the projected utilization metrics.
sourcepub fn upper_bound_value(self, input: f64) -> Self
pub fn upper_bound_value(self, input: f64) -> Self
The upper bound values for the projected utilization metrics.
sourcepub fn set_upper_bound_value(self, input: Option<f64>) -> Self
pub fn set_upper_bound_value(self, input: Option<f64>) -> Self
The upper bound values for the projected utilization metrics.
sourcepub fn get_upper_bound_value(&self) -> &Option<f64>
pub fn get_upper_bound_value(&self) -> &Option<f64>
The upper bound values for the projected utilization metrics.
sourcepub fn build(self) -> EcsServiceProjectedUtilizationMetric
pub fn build(self) -> EcsServiceProjectedUtilizationMetric
Consumes the builder and constructs a EcsServiceProjectedUtilizationMetric
.
Trait Implementations§
source§impl Clone for EcsServiceProjectedUtilizationMetricBuilder
impl Clone for EcsServiceProjectedUtilizationMetricBuilder
source§fn clone(&self) -> EcsServiceProjectedUtilizationMetricBuilder
fn clone(&self) -> EcsServiceProjectedUtilizationMetricBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for EcsServiceProjectedUtilizationMetricBuilder
impl Default for EcsServiceProjectedUtilizationMetricBuilder
source§fn default() -> EcsServiceProjectedUtilizationMetricBuilder
fn default() -> EcsServiceProjectedUtilizationMetricBuilder
source§impl PartialEq for EcsServiceProjectedUtilizationMetricBuilder
impl PartialEq for EcsServiceProjectedUtilizationMetricBuilder
source§fn eq(&self, other: &EcsServiceProjectedUtilizationMetricBuilder) -> bool
fn eq(&self, other: &EcsServiceProjectedUtilizationMetricBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.