pub struct Builder { /* private fields */ }
Expand description
A builder for EcsServiceProjectedUtilizationMetric
.
Implementations§
source§impl Builder
impl Builder
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 ECS service tasks. -
Memory
— The percentage of memory that is currently in use on the ECS 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 ECS service tasks. -
Memory
— The percentage of memory that is currently in use on the ECS 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 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 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 build(self) -> EcsServiceProjectedUtilizationMetric
pub fn build(self) -> EcsServiceProjectedUtilizationMetric
Consumes the builder and constructs a EcsServiceProjectedUtilizationMetric
.