#[non_exhaustive]pub struct EcsServiceRecommendedOptionProjectedMetric {
pub recommended_cpu_units: i32,
pub recommended_memory_size: i32,
pub projected_metrics: Option<Vec<EcsServiceProjectedMetric>>,
}
Expand description
Describes the projected metrics of an Amazon ECS service recommendation option.
To determine the performance difference between your current Amazon ECS service and the recommended option, compare the metric data of your service against its projected metric data.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.recommended_cpu_units: i32
The recommended CPU size for the Amazon ECS service.
recommended_memory_size: i32
The recommended memory size for the Amazon ECS service.
projected_metrics: Option<Vec<EcsServiceProjectedMetric>>
An array of objects that describe the projected metric.
Implementations§
source§impl EcsServiceRecommendedOptionProjectedMetric
impl EcsServiceRecommendedOptionProjectedMetric
sourcepub fn recommended_cpu_units(&self) -> i32
pub fn recommended_cpu_units(&self) -> i32
The recommended CPU size for the Amazon ECS service.
sourcepub fn recommended_memory_size(&self) -> i32
pub fn recommended_memory_size(&self) -> i32
The recommended memory size for the Amazon ECS service.
sourcepub fn projected_metrics(&self) -> &[EcsServiceProjectedMetric]
pub fn projected_metrics(&self) -> &[EcsServiceProjectedMetric]
An array of objects that describe the projected metric.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .projected_metrics.is_none()
.
source§impl EcsServiceRecommendedOptionProjectedMetric
impl EcsServiceRecommendedOptionProjectedMetric
sourcepub fn builder() -> EcsServiceRecommendedOptionProjectedMetricBuilder
pub fn builder() -> EcsServiceRecommendedOptionProjectedMetricBuilder
Creates a new builder-style object to manufacture EcsServiceRecommendedOptionProjectedMetric
.
Trait Implementations§
source§impl Clone for EcsServiceRecommendedOptionProjectedMetric
impl Clone for EcsServiceRecommendedOptionProjectedMetric
source§fn clone(&self) -> EcsServiceRecommendedOptionProjectedMetric
fn clone(&self) -> EcsServiceRecommendedOptionProjectedMetric
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for EcsServiceRecommendedOptionProjectedMetric
impl PartialEq for EcsServiceRecommendedOptionProjectedMetric
source§fn eq(&self, other: &EcsServiceRecommendedOptionProjectedMetric) -> bool
fn eq(&self, other: &EcsServiceRecommendedOptionProjectedMetric) -> bool
self
and other
values to be equal, and is used
by ==
.