#[non_exhaustive]pub struct EcsServiceProjectedMetric {
pub name: Option<EcsServiceMetricName>,
pub timestamps: Option<Vec<DateTime>>,
pub upper_bound_values: Option<Vec<f64>>,
pub lower_bound_values: Option<Vec<f64>>,
}
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.name: Option<EcsServiceMetricName>
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 service tasks. -
Memory
— The percentage of memory that's currently in use on the service tasks.
timestamps: Option<Vec<DateTime>>
The timestamps of the projected metric.
upper_bound_values: Option<Vec<f64>>
The upper bound values for the projected metric.
lower_bound_values: Option<Vec<f64>>
The lower bound values for the projected metric.
Implementations§
source§impl EcsServiceProjectedMetric
impl EcsServiceProjectedMetric
sourcepub fn name(&self) -> Option<&EcsServiceMetricName>
pub fn name(&self) -> Option<&EcsServiceMetricName>
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 service tasks. -
Memory
— The percentage of memory that's currently in use on the service tasks.
sourcepub fn timestamps(&self) -> &[DateTime]
pub fn timestamps(&self) -> &[DateTime]
The timestamps of 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 .timestamps.is_none()
.
sourcepub fn upper_bound_values(&self) -> &[f64]
pub fn upper_bound_values(&self) -> &[f64]
The upper bound values for 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 .upper_bound_values.is_none()
.
sourcepub fn lower_bound_values(&self) -> &[f64]
pub fn lower_bound_values(&self) -> &[f64]
The lower bound values for 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 .lower_bound_values.is_none()
.
source§impl EcsServiceProjectedMetric
impl EcsServiceProjectedMetric
sourcepub fn builder() -> EcsServiceProjectedMetricBuilder
pub fn builder() -> EcsServiceProjectedMetricBuilder
Creates a new builder-style object to manufacture EcsServiceProjectedMetric
.
Trait Implementations§
source§impl Clone for EcsServiceProjectedMetric
impl Clone for EcsServiceProjectedMetric
source§fn clone(&self) -> EcsServiceProjectedMetric
fn clone(&self) -> EcsServiceProjectedMetric
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EcsServiceProjectedMetric
impl Debug for EcsServiceProjectedMetric
source§impl PartialEq for EcsServiceProjectedMetric
impl PartialEq for EcsServiceProjectedMetric
source§fn eq(&self, other: &EcsServiceProjectedMetric) -> bool
fn eq(&self, other: &EcsServiceProjectedMetric) -> bool
self
and other
values to be equal, and is used
by ==
.