#[non_exhaustive]pub struct RecommendedOptionProjectedMetric {
pub recommended_instance_type: Option<String>,
pub rank: i32,
pub projected_metrics: Option<Vec<ProjectedMetric>>,
}
Expand description
Describes a projected utilization metric of a recommendation option.
The Cpu
and Memory
metrics are the only projected utilization metrics returned when you run the GetEC2RecommendationProjectedMetrics
action. Additionally, the Memory
metric is returned only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent.
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_instance_type: Option<String>
The recommended instance type.
rank: i32
The rank of the recommendation option projected metric.
The top recommendation option is ranked as 1
.
The projected metric rank correlates to the recommendation option rank. For example, the projected metric ranked as 1
is related to the recommendation option that is also ranked as 1
in the same response.
projected_metrics: Option<Vec<ProjectedMetric>>
An array of objects that describe a projected utilization metric.
Implementations§
source§impl RecommendedOptionProjectedMetric
impl RecommendedOptionProjectedMetric
sourcepub fn recommended_instance_type(&self) -> Option<&str>
pub fn recommended_instance_type(&self) -> Option<&str>
The recommended instance type.
sourcepub fn rank(&self) -> i32
pub fn rank(&self) -> i32
The rank of the recommendation option projected metric.
The top recommendation option is ranked as 1
.
The projected metric rank correlates to the recommendation option rank. For example, the projected metric ranked as 1
is related to the recommendation option that is also ranked as 1
in the same response.
sourcepub fn projected_metrics(&self) -> &[ProjectedMetric]
pub fn projected_metrics(&self) -> &[ProjectedMetric]
An array of objects that describe a projected utilization 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 RecommendedOptionProjectedMetric
impl RecommendedOptionProjectedMetric
sourcepub fn builder() -> RecommendedOptionProjectedMetricBuilder
pub fn builder() -> RecommendedOptionProjectedMetricBuilder
Creates a new builder-style object to manufacture RecommendedOptionProjectedMetric
.
Trait Implementations§
source§impl Clone for RecommendedOptionProjectedMetric
impl Clone for RecommendedOptionProjectedMetric
source§fn clone(&self) -> RecommendedOptionProjectedMetric
fn clone(&self) -> RecommendedOptionProjectedMetric
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for RecommendedOptionProjectedMetric
impl PartialEq for RecommendedOptionProjectedMetric
source§fn eq(&self, other: &RecommendedOptionProjectedMetric) -> bool
fn eq(&self, other: &RecommendedOptionProjectedMetric) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RecommendedOptionProjectedMetric
Auto Trait Implementations§
impl Freeze for RecommendedOptionProjectedMetric
impl RefUnwindSafe for RecommendedOptionProjectedMetric
impl Send for RecommendedOptionProjectedMetric
impl Sync for RecommendedOptionProjectedMetric
impl Unpin for RecommendedOptionProjectedMetric
impl UnwindSafe for RecommendedOptionProjectedMetric
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> 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