AWSAutoScalingMetricStat
Objective-C
@interface AWSAutoScalingMetricStat
Swift
class AWSAutoScalingMetricStat
This structure defines the CloudWatch metric to return, along with the statistic and unit.
For more information about the CloudWatch terminology below, see Amazon CloudWatch concepts in the Amazon CloudWatch User Guide.
Required parameters: [Metric, Stat]
-
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.
Declaration
Objective-C
@property (nonatomic, strong) AWSAutoScalingMetric *_Nullable metric;
Swift
var metric: AWSAutoScalingMetric? { get set }
-
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
andSum
.Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable stat;
Swift
var stat: String? { get set }
-
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.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable unit;
Swift
var unit: String? { get set }