#[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
sourceimpl 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) -> Option<&[ProjectedMetric]>
pub fn projected_metrics(&self) -> Option<&[ProjectedMetric]>
An array of objects that describe a projected utilization metric.
sourceimpl RecommendedOptionProjectedMetric
impl RecommendedOptionProjectedMetric
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RecommendedOptionProjectedMetric
Trait Implementations
sourceimpl Clone for RecommendedOptionProjectedMetric
impl Clone for RecommendedOptionProjectedMetric
sourcefn clone(&self) -> RecommendedOptionProjectedMetric
fn clone(&self) -> RecommendedOptionProjectedMetric
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<RecommendedOptionProjectedMetric> for RecommendedOptionProjectedMetric
impl PartialEq<RecommendedOptionProjectedMetric> for RecommendedOptionProjectedMetric
sourcefn eq(&self, other: &RecommendedOptionProjectedMetric) -> bool
fn eq(&self, other: &RecommendedOptionProjectedMetric) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RecommendedOptionProjectedMetric) -> bool
fn ne(&self, other: &RecommendedOptionProjectedMetric) -> bool
This method tests for !=
.
impl StructuralPartialEq for RecommendedOptionProjectedMetric
Auto Trait Implementations
impl RefUnwindSafe for RecommendedOptionProjectedMetric
impl Send for RecommendedOptionProjectedMetric
impl Sync for RecommendedOptionProjectedMetric
impl Unpin for RecommendedOptionProjectedMetric
impl UnwindSafe for RecommendedOptionProjectedMetric
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more