amazonka-autoscaling-1.2.0: Amazon Auto Scaling SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
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.

See: AWS API Reference for EnableMetricsCollection.

Synopsis

Creating a Request

enableMetricsCollection Source

Creates a value of EnableMetricsCollection with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

emcMetrics :: Lens' EnableMetricsCollection [Text] Source

One or more metrics. If you omit this parameter, all metrics are enabled.

  • GroupMinSize
  • GroupMaxSize
  • GroupDesiredCapacity
  • GroupInServiceInstances
  • GroupPendingInstances
  • GroupStandbyInstances
  • GroupTerminatingInstances
  • GroupTotalInstances

Note that the GroupStandbyInstances metric is not enabled by default. You must explicitly request this metric.

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. The only valid value is '1Minute'.

Destructuring the Response

enableMetricsCollectionResponse :: EnableMetricsCollectionResponse Source

Creates a value of EnableMetricsCollectionResponse with the minimum fields required to make a request.