#[non_exhaustive]pub struct ProjectedMetricBuilder { /* private fields */ }
Expand description
A builder for ProjectedMetric
.
Implementations§
source§impl ProjectedMetricBuilder
impl ProjectedMetricBuilder
sourcepub fn name(self, input: MetricName) -> Self
pub fn name(self, input: MetricName) -> Self
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.
-
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 only returned for resources with the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent. -
GPU
- The projected percentage of allocated GPUs if you adjust your configurations to Compute Optimizer's recommendation option. -
GPU_MEMORY
- The projected percentage of total GPU memory if you adjust your configurations to Compute Optimizer's recommendation option.The
GPU
andGPU_MEMORY
metrics are only returned for resources with the unified CloudWatch Agent installed on them. For more information, see Enabling NVIDIA GPU utilization with the CloudWatch Agent.
sourcepub fn set_name(self, input: Option<MetricName>) -> Self
pub fn set_name(self, input: Option<MetricName>) -> Self
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.
-
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 only returned for resources with the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent. -
GPU
- The projected percentage of allocated GPUs if you adjust your configurations to Compute Optimizer's recommendation option. -
GPU_MEMORY
- The projected percentage of total GPU memory if you adjust your configurations to Compute Optimizer's recommendation option.The
GPU
andGPU_MEMORY
metrics are only returned for resources with the unified CloudWatch Agent installed on them. For more information, see Enabling NVIDIA GPU utilization with the CloudWatch Agent.
sourcepub fn get_name(&self) -> &Option<MetricName>
pub fn get_name(&self) -> &Option<MetricName>
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.
-
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 only returned for resources with the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent. -
GPU
- The projected percentage of allocated GPUs if you adjust your configurations to Compute Optimizer's recommendation option. -
GPU_MEMORY
- The projected percentage of total GPU memory if you adjust your configurations to Compute Optimizer's recommendation option.The
GPU
andGPU_MEMORY
metrics are only returned for resources with the unified CloudWatch Agent installed on them. For more information, see Enabling NVIDIA GPU utilization with the CloudWatch Agent.
sourcepub fn timestamps(self, input: DateTime) -> Self
pub fn timestamps(self, input: DateTime) -> Self
Appends an item to timestamps
.
To override the contents of this collection use set_timestamps
.
The timestamps of the projected utilization metric.
sourcepub fn set_timestamps(self, input: Option<Vec<DateTime>>) -> Self
pub fn set_timestamps(self, input: Option<Vec<DateTime>>) -> Self
The timestamps of the projected utilization metric.
sourcepub fn get_timestamps(&self) -> &Option<Vec<DateTime>>
pub fn get_timestamps(&self) -> &Option<Vec<DateTime>>
The timestamps of the projected utilization metric.
sourcepub fn values(self, input: f64) -> Self
pub fn values(self, input: f64) -> Self
Appends an item to values
.
To override the contents of this collection use set_values
.
The values of the projected utilization metrics.
sourcepub fn set_values(self, input: Option<Vec<f64>>) -> Self
pub fn set_values(self, input: Option<Vec<f64>>) -> Self
The values of the projected utilization metrics.
sourcepub fn get_values(&self) -> &Option<Vec<f64>>
pub fn get_values(&self) -> &Option<Vec<f64>>
The values of the projected utilization metrics.
sourcepub fn build(self) -> ProjectedMetric
pub fn build(self) -> ProjectedMetric
Consumes the builder and constructs a ProjectedMetric
.
Trait Implementations§
source§impl Clone for ProjectedMetricBuilder
impl Clone for ProjectedMetricBuilder
source§fn clone(&self) -> ProjectedMetricBuilder
fn clone(&self) -> ProjectedMetricBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProjectedMetricBuilder
impl Debug for ProjectedMetricBuilder
source§impl Default for ProjectedMetricBuilder
impl Default for ProjectedMetricBuilder
source§fn default() -> ProjectedMetricBuilder
fn default() -> ProjectedMetricBuilder
source§impl PartialEq for ProjectedMetricBuilder
impl PartialEq for ProjectedMetricBuilder
source§fn eq(&self, other: &ProjectedMetricBuilder) -> bool
fn eq(&self, other: &ProjectedMetricBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProjectedMetricBuilder
Auto Trait Implementations§
impl Freeze for ProjectedMetricBuilder
impl RefUnwindSafe for ProjectedMetricBuilder
impl Send for ProjectedMetricBuilder
impl Sync for ProjectedMetricBuilder
impl Unpin for ProjectedMetricBuilder
impl UnwindSafe for ProjectedMetricBuilder
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