#[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
impl StructuralPartialEq for EcsServiceProjectedMetric
Auto Trait Implementations§
impl Freeze for EcsServiceProjectedMetric
impl RefUnwindSafe for EcsServiceProjectedMetric
impl Send for EcsServiceProjectedMetric
impl Sync for EcsServiceProjectedMetric
impl Unpin for EcsServiceProjectedMetric
impl UnwindSafe for EcsServiceProjectedMetric
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more