AWS SDK for C++  1.9.156
AWS SDK for C++
Public Member Functions | List of all members
Aws::ComputeOptimizer::Model::ProjectedMetric Class Reference

#include <ProjectedMetric.h>

Public Member Functions

 ProjectedMetric ()
 
 ProjectedMetric (Aws::Utils::Json::JsonView jsonValue)
 
ProjectedMetricoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
const MetricNameGetName () const
 
bool NameHasBeenSet () const
 
void SetName (const MetricName &value)
 
void SetName (MetricName &&value)
 
ProjectedMetricWithName (const MetricName &value)
 
ProjectedMetricWithName (MetricName &&value)
 
const Aws::Vector< Aws::Utils::DateTime > & GetTimestamps () const
 
bool TimestampsHasBeenSet () const
 
void SetTimestamps (const Aws::Vector< Aws::Utils::DateTime > &value)
 
void SetTimestamps (Aws::Vector< Aws::Utils::DateTime > &&value)
 
ProjectedMetricWithTimestamps (const Aws::Vector< Aws::Utils::DateTime > &value)
 
ProjectedMetricWithTimestamps (Aws::Vector< Aws::Utils::DateTime > &&value)
 
ProjectedMetricAddTimestamps (const Aws::Utils::DateTime &value)
 
ProjectedMetricAddTimestamps (Aws::Utils::DateTime &&value)
 
const Aws::Vector< double > & GetValues () const
 
bool ValuesHasBeenSet () const
 
void SetValues (const Aws::Vector< double > &value)
 
void SetValues (Aws::Vector< double > &&value)
 
ProjectedMetricWithValues (const Aws::Vector< double > &value)
 
ProjectedMetricWithValues (Aws::Vector< double > &&value)
 
ProjectedMetricAddValues (double value)
 

Detailed 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.

See Also:

AWS API Reference

Definition at line 46 of file ProjectedMetric.h.

Constructor & Destructor Documentation

◆ ProjectedMetric() [1/2]

Aws::ComputeOptimizer::Model::ProjectedMetric::ProjectedMetric ( )

◆ ProjectedMetric() [2/2]

Aws::ComputeOptimizer::Model::ProjectedMetric::ProjectedMetric ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ AddTimestamps() [1/2]

ProjectedMetric& Aws::ComputeOptimizer::Model::ProjectedMetric::AddTimestamps ( Aws::Utils::DateTime &&  value)
inline

The timestamps of the projected utilization metric.

Definition at line 214 of file ProjectedMetric.h.

◆ AddTimestamps() [2/2]

ProjectedMetric& Aws::ComputeOptimizer::Model::ProjectedMetric::AddTimestamps ( const Aws::Utils::DateTime value)
inline

The timestamps of the projected utilization metric.

Definition at line 209 of file ProjectedMetric.h.

◆ AddValues()

ProjectedMetric& Aws::ComputeOptimizer::Model::ProjectedMetric::AddValues ( double  value)
inline

The values of the projected utilization metrics.

Definition at line 250 of file ProjectedMetric.h.

◆ GetName()

const MetricName& Aws::ComputeOptimizer::Model::ProjectedMetric::GetName ( ) const
inline

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.

Definition at line 73 of file ProjectedMetric.h.

◆ GetTimestamps()

const Aws::Vector<Aws::Utils::DateTime>& Aws::ComputeOptimizer::Model::ProjectedMetric::GetTimestamps ( ) const
inline

The timestamps of the projected utilization metric.

Definition at line 179 of file ProjectedMetric.h.

◆ GetValues()

const Aws::Vector<double>& Aws::ComputeOptimizer::Model::ProjectedMetric::GetValues ( ) const
inline

The values of the projected utilization metrics.

Definition at line 220 of file ProjectedMetric.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::ComputeOptimizer::Model::ProjectedMetric::Jsonize ( ) const

◆ NameHasBeenSet()

bool Aws::ComputeOptimizer::Model::ProjectedMetric::NameHasBeenSet ( ) const
inline

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.

Definition at line 93 of file ProjectedMetric.h.

◆ operator=()

ProjectedMetric& Aws::ComputeOptimizer::Model::ProjectedMetric::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ SetName() [1/2]

void Aws::ComputeOptimizer::Model::ProjectedMetric::SetName ( const MetricName value)
inline

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.

Definition at line 113 of file ProjectedMetric.h.

◆ SetName() [2/2]

void Aws::ComputeOptimizer::Model::ProjectedMetric::SetName ( MetricName &&  value)
inline

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.

Definition at line 133 of file ProjectedMetric.h.

◆ SetTimestamps() [1/2]

void Aws::ComputeOptimizer::Model::ProjectedMetric::SetTimestamps ( Aws::Vector< Aws::Utils::DateTime > &&  value)
inline

The timestamps of the projected utilization metric.

Definition at line 194 of file ProjectedMetric.h.

◆ SetTimestamps() [2/2]

void Aws::ComputeOptimizer::Model::ProjectedMetric::SetTimestamps ( const Aws::Vector< Aws::Utils::DateTime > &  value)
inline

The timestamps of the projected utilization metric.

Definition at line 189 of file ProjectedMetric.h.

◆ SetValues() [1/2]

void Aws::ComputeOptimizer::Model::ProjectedMetric::SetValues ( Aws::Vector< double > &&  value)
inline

The values of the projected utilization metrics.

Definition at line 235 of file ProjectedMetric.h.

◆ SetValues() [2/2]

void Aws::ComputeOptimizer::Model::ProjectedMetric::SetValues ( const Aws::Vector< double > &  value)
inline

The values of the projected utilization metrics.

Definition at line 230 of file ProjectedMetric.h.

◆ TimestampsHasBeenSet()

bool Aws::ComputeOptimizer::Model::ProjectedMetric::TimestampsHasBeenSet ( ) const
inline

The timestamps of the projected utilization metric.

Definition at line 184 of file ProjectedMetric.h.

◆ ValuesHasBeenSet()

bool Aws::ComputeOptimizer::Model::ProjectedMetric::ValuesHasBeenSet ( ) const
inline

The values of the projected utilization metrics.

Definition at line 225 of file ProjectedMetric.h.

◆ WithName() [1/2]

ProjectedMetric& Aws::ComputeOptimizer::Model::ProjectedMetric::WithName ( const MetricName value)
inline

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.

Definition at line 153 of file ProjectedMetric.h.

◆ WithName() [2/2]

ProjectedMetric& Aws::ComputeOptimizer::Model::ProjectedMetric::WithName ( MetricName &&  value)
inline

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.

Definition at line 173 of file ProjectedMetric.h.

◆ WithTimestamps() [1/2]

ProjectedMetric& Aws::ComputeOptimizer::Model::ProjectedMetric::WithTimestamps ( Aws::Vector< Aws::Utils::DateTime > &&  value)
inline

The timestamps of the projected utilization metric.

Definition at line 204 of file ProjectedMetric.h.

◆ WithTimestamps() [2/2]

ProjectedMetric& Aws::ComputeOptimizer::Model::ProjectedMetric::WithTimestamps ( const Aws::Vector< Aws::Utils::DateTime > &  value)
inline

The timestamps of the projected utilization metric.

Definition at line 199 of file ProjectedMetric.h.

◆ WithValues() [1/2]

ProjectedMetric& Aws::ComputeOptimizer::Model::ProjectedMetric::WithValues ( Aws::Vector< double > &&  value)
inline

The values of the projected utilization metrics.

Definition at line 245 of file ProjectedMetric.h.

◆ WithValues() [2/2]

ProjectedMetric& Aws::ComputeOptimizer::Model::ProjectedMetric::WithValues ( const Aws::Vector< double > &  value)
inline

The values of the projected utilization metrics.

Definition at line 240 of file ProjectedMetric.h.


The documentation for this class was generated from the following file: