AWSAutoScalingMetric
Objective-C
@interface AWSAutoScalingMetric
Swift
class AWSAutoScalingMetric
Represents a specific metric.
Required parameters: [Namespace, MetricName]
-
The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
Declaration
Objective-C
@property (nonatomic, strong) NSArray<AWSAutoScalingMetricDimension *> *_Nullable dimensions;
Swift
var dimensions: [AWSAutoScalingMetricDimension]? { get set }
-
The name of the metric.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable metricName;
Swift
var metricName: String? { get set }
-
The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable namespace;
Swift
var namespace: String? { get set }