Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- enableMetricsCollection :: Text -> Text -> EnableMetricsCollection
- data EnableMetricsCollection
- emcMetrics :: Lens' EnableMetricsCollection [Text]
- emcAutoScalingGroupName :: Lens' EnableMetricsCollection Text
- emcGranularity :: Lens' EnableMetricsCollection Text
- enableMetricsCollectionResponse :: EnableMetricsCollectionResponse
- data EnableMetricsCollectionResponse
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:
data EnableMetricsCollection Source
See: enableMetricsCollection
smart constructor.
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.
data EnableMetricsCollectionResponse Source
See: enableMetricsCollectionResponse
smart constructor.