pub struct Builder { /* private fields */ }
Expand description
A builder for EcsServiceProjectedMetric
.
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 metric.
The following 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 metric.
The following 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 timestamps(self, input: DateTime) -> Self
pub fn timestamps(self, input: DateTime) -> Self
Appends an item to timestamps
.
To override the contents of this collection use set_timestamps
.
The timestamps of the projected metric.
sourcepub fn set_timestamps(self, input: Option<Vec<DateTime>>) -> Self
pub fn set_timestamps(self, input: Option<Vec<DateTime>>) -> Self
The timestamps of the projected metric.
sourcepub fn upper_bound_values(self, input: f64) -> Self
pub fn upper_bound_values(self, input: f64) -> Self
Appends an item to upper_bound_values
.
To override the contents of this collection use set_upper_bound_values
.
The upper bound values for the projected metric.
sourcepub fn set_upper_bound_values(self, input: Option<Vec<f64>>) -> Self
pub fn set_upper_bound_values(self, input: Option<Vec<f64>>) -> Self
The upper bound values for the projected metric.
sourcepub fn lower_bound_values(self, input: f64) -> Self
pub fn lower_bound_values(self, input: f64) -> Self
Appends an item to lower_bound_values
.
To override the contents of this collection use set_lower_bound_values
.
The lower bound values for the projected metric.
sourcepub fn set_lower_bound_values(self, input: Option<Vec<f64>>) -> Self
pub fn set_lower_bound_values(self, input: Option<Vec<f64>>) -> Self
The lower bound values for the projected metric.
sourcepub fn build(self) -> EcsServiceProjectedMetric
pub fn build(self) -> EcsServiceProjectedMetric
Consumes the builder and constructs a EcsServiceProjectedMetric
.