/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the compute-optimizer-2019-11-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.ComputeOptimizer.Model { /// /// 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. /// /// /// public partial class ProjectedMetric { private MetricName _name; private List _timestamps = new List(); private List _values = new List(); /// /// Gets and sets the property Name. /// /// 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. /// ///
///
public MetricName Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Timestamps. /// /// The timestamps of the projected utilization metric. /// /// public List Timestamps { get { return this._timestamps; } set { this._timestamps = value; } } // Check to see if Timestamps property is set internal bool IsSetTimestamps() { return this._timestamps != null && this._timestamps.Count > 0; } /// /// Gets and sets the property Values. /// /// The values of the projected utilization metrics. /// /// public List Values { get { return this._values; } set { this._values = value; } } // Check to see if Values property is set internal bool IsSetValues() { return this._values != null && this._values.Count > 0; } } }