/* * 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 autoscaling-2011-01-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.AutoScaling.Model { /// /// This structure defines the CloudWatch metric to return, along with the statistic, /// period, and unit. /// /// /// /// For more information about the CloudWatch terminology below, see Amazon /// CloudWatch concepts in the Amazon CloudWatch User Guide. /// /// public partial class MetricStat { private Metric _metric; private string _stat; private string _unit; /// /// Gets and sets the property Metric. /// /// The CloudWatch metric to return, including the metric name, namespace, and dimensions. /// To get the exact metric name, namespace, and dimensions, inspect the Metric /// object that is returned by a call to ListMetrics. /// /// [AWSProperty(Required=true)] public Metric Metric { get { return this._metric; } set { this._metric = value; } } // Check to see if Metric property is set internal bool IsSetMetric() { return this._metric != null; } /// /// Gets and sets the property Stat. /// /// The statistic to return. It can include any CloudWatch statistic or extended statistic. /// For a list of valid values, see the table in Statistics /// in the Amazon CloudWatch User Guide. /// /// /// /// The most commonly used metrics for predictive scaling are Average and /// Sum. /// /// [AWSProperty(Required=true, Min=1, Max=100)] public string Stat { get { return this._stat; } set { this._stat = value; } } // Check to see if Stat property is set internal bool IsSetStat() { return this._stat != null; } /// /// Gets and sets the property Unit. /// /// The unit to use for the returned data points. For a complete list of the units that /// CloudWatch supports, see the MetricDatum /// data type in the Amazon CloudWatch API Reference. /// /// public string Unit { get { return this._unit; } set { this._unit = value; } } // Check to see if Unit property is set internal bool IsSetUnit() { return this._unit != null; } } }