amazonka-autoscaling-0.3.3: Amazon Auto Scaling SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.AutoScaling.EnableMetricsCollection

Contents

Description

Enables monitoring of the specified metrics for the specified Auto Scaling group.

You can only enable metrics collection if InstanceMonitoring in the launch configuration for the group is set to True.

http://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_EnableMetricsCollection.html

Synopsis

Request

Request constructor

Request lenses

emcAutoScalingGroupName :: Lens' EnableMetricsCollection Text Source

The name or ARN of the Auto Scaling group.

emcGranularity :: Lens' EnableMetricsCollection Text Source

The granularity to associate with the metrics to collect. Currently, the only valid value is "1Minute".

emcMetrics :: Lens' EnableMetricsCollection [Text] Source

One or more of the following metrics:

GroupMinSize

GroupMaxSize

GroupDesiredCapacity

GroupInServiceInstances

GroupPendingInstances

GroupStandbyInstances

GroupTerminatingInstances

GroupTotalInstances

If you omit this parameter, all metrics are enabled.

The GroupStandbyInstances metric is not returned by default. You must explicitly request it when calling EnableMetricsCollection.

Response

Response constructor