Safe Haskell | None |
---|---|
Language | Haskell2010 |
Network.AWS.AutoScaling.EnableMetricsCollection
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
- data EnableMetricsCollection
- enableMetricsCollection :: Text -> Text -> EnableMetricsCollection
- emcAutoScalingGroupName :: Lens' EnableMetricsCollection Text
- emcGranularity :: Lens' EnableMetricsCollection Text
- emcMetrics :: Lens' EnableMetricsCollection [Text]
- data EnableMetricsCollectionResponse
- enableMetricsCollectionResponse :: EnableMetricsCollectionResponse
Request
data EnableMetricsCollection Source
Instances
Request constructor
enableMetricsCollection Source
Arguments
:: Text | |
-> Text | |
-> EnableMetricsCollection |
EnableMetricsCollection
constructor.
The fields accessible through corresponding lenses are:
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
.