/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.computeoptimizer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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.
*
* 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.
*
* The timestamps of the projected utilization metric. *
*/ private java.util.List* The values of the projected utilization metrics. *
*/ private java.util.List* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* The timestamps of the projected utilization metric. *
* * @return The timestamps of the projected utilization metric. */ public java.util.List* The timestamps of the projected utilization metric. *
* * @param timestamps * The timestamps of the projected utilization metric. */ public void setTimestamps(java.util.Collection* The timestamps of the projected utilization metric. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTimestamps(java.util.Collection)} or {@link #withTimestamps(java.util.Collection)} if you want to * override the existing values. *
* * @param timestamps * The timestamps of the projected utilization metric. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectedMetric withTimestamps(java.util.Date... timestamps) { if (this.timestamps == null) { setTimestamps(new java.util.ArrayList* The timestamps of the projected utilization metric. *
* * @param timestamps * The timestamps of the projected utilization metric. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectedMetric withTimestamps(java.util.Collection* The values of the projected utilization metrics. *
* * @return The values of the projected utilization metrics. */ public java.util.List* The values of the projected utilization metrics. *
* * @param values * The values of the projected utilization metrics. */ public void setValues(java.util.Collection* The values of the projected utilization metrics. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setValues(java.util.Collection)} or {@link #withValues(java.util.Collection)} if you want to override the * existing values. *
* * @param values * The values of the projected utilization metrics. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectedMetric withValues(Double... values) { if (this.values == null) { setValues(new java.util.ArrayList* The values of the projected utilization metrics. *
* * @param values * The values of the projected utilization metrics. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectedMetric withValues(java.util.Collection