AWSAutoScalingCustomizedMetricSpecification Class Reference

Inherits from AWSModel : AWSMTLModel
Declared in AWSAutoScalingModel.h
AWSAutoScalingModel.m

Overview

Represents a CloudWatch metric of your choosing for a target tracking scaling policy to use with Amazon EC2 Auto Scaling.

To create your customized metric specification:

  • Add values for each required parameter from CloudWatch. You can use an existing metric, or a new metric that you create. To use your own metric, you must first publish the metric to CloudWatch. For more information, see Publish Custom Metrics in the Amazon CloudWatch User Guide.

  • Choose a metric that changes proportionally with capacity. The value of the metric should increase or decrease in inverse proportion to the number of capacity units. That is, the value of the metric should decrease when capacity increases.

For more information about CloudWatch, see Amazon CloudWatch Concepts.

Required parameters: [MetricName, Namespace, Statistic]

  dimensions

The dimensions of the metric.

Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.

@property (nonatomic, strong) NSArray<AWSAutoScalingMetricDimension*> *dimensions

Declared In

AWSAutoScalingModel.h

  metricName

The name of the metric.

@property (nonatomic, strong) NSString *metricName

Declared In

AWSAutoScalingModel.h

  namespace

The namespace of the metric.

@property (nonatomic, strong) NSString *namespace

Declared In

AWSAutoScalingModel.h

  statistic

The statistic of the metric.

@property (nonatomic, assign) AWSAutoScalingMetricStatistic statistic

Declared In

AWSAutoScalingModel.h

  unit

The unit of the metric.

@property (nonatomic, strong) NSString *unit

Declared In

AWSAutoScalingModel.h