Struct rusoto_compute_optimizer::ProjectedMetric
source · [−]pub struct ProjectedMetric {
pub name: Option<String>,
pub timestamps: Option<Vec<f64>>,
pub values: Option<Vec<f64>>,
}
Expand description
Describes a projected utilization metric of a recommendation option, such as an Amazon EC2 instance. This represents the projected utilization of a recommendation option had you used that resource during the analyzed period.
Compare the utilization metric data of your resource against its projected utilization metric data to determine the performance difference between your current resource and the recommended 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
name: Option<String>
The name of the projected utilization metric.
The following projected utilization metrics are returned:
-
Cpu
- The projected percentage of allocated EC2 compute units that would be in use on the recommendation option had you used that resource during the analyzed period. This metric identifies the processing power required to run an application on the recommendation option.Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when the instance is not allocated a full processor core.
Units: Percent
-
Memory
- The percentage of memory that would be in use on the recommendation option had you used that resource during the analyzed period. This metric identifies the amount of memory required to run an application on the recommendation option.Units: Percent
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.
timestamps: Option<Vec<f64>>
The time stamps of the projected utilization metric.
values: Option<Vec<f64>>
The values of the projected utilization metrics.
Trait Implementations
sourceimpl Clone for ProjectedMetric
impl Clone for ProjectedMetric
sourcefn clone(&self) -> ProjectedMetric
fn clone(&self) -> ProjectedMetric
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 Debug for ProjectedMetric
impl Debug for ProjectedMetric
sourceimpl Default for ProjectedMetric
impl Default for ProjectedMetric
sourcefn default() -> ProjectedMetric
fn default() -> ProjectedMetric
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ProjectedMetric
impl<'de> Deserialize<'de> for ProjectedMetric
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ProjectedMetric> for ProjectedMetric
impl PartialEq<ProjectedMetric> for ProjectedMetric
sourcefn eq(&self, other: &ProjectedMetric) -> bool
fn eq(&self, other: &ProjectedMetric) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProjectedMetric) -> bool
fn ne(&self, other: &ProjectedMetric) -> bool
This method tests for !=
.
impl StructuralPartialEq for ProjectedMetric
Auto Trait Implementations
impl RefUnwindSafe for ProjectedMetric
impl Send for ProjectedMetric
impl Sync for ProjectedMetric
impl Unpin for ProjectedMetric
impl UnwindSafe for ProjectedMetric
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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