Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Enables group metrics collection for the specified Auto Scaling group.
You can use these metrics to track changes in an Auto Scaling group and to set alarms on threshold values. You can view group metrics using the Amazon EC2 Auto Scaling console or the CloudWatch console. For more information, see Monitor CloudWatch metrics for your Auto Scaling groups and instances in the Amazon EC2 Auto Scaling User Guide.
Synopsis
- data EnableMetricsCollection = EnableMetricsCollection' {
- metrics :: Maybe [Text]
- autoScalingGroupName :: Text
- granularity :: Text
- newEnableMetricsCollection :: Text -> Text -> EnableMetricsCollection
- enableMetricsCollection_metrics :: Lens' EnableMetricsCollection (Maybe [Text])
- enableMetricsCollection_autoScalingGroupName :: Lens' EnableMetricsCollection Text
- enableMetricsCollection_granularity :: Lens' EnableMetricsCollection Text
- data EnableMetricsCollectionResponse = EnableMetricsCollectionResponse' {
- newEnableMetricsCollectionResponse :: EnableMetricsCollectionResponse
Creating a Request
data EnableMetricsCollection Source #
See: newEnableMetricsCollection
smart constructor.
EnableMetricsCollection' | |
|
Instances
newEnableMetricsCollection Source #
Create a value of EnableMetricsCollection
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
EnableMetricsCollection
, enableMetricsCollection_metrics
- Identifies the metrics to enable.
You can specify one or more of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
GroupInServiceCapacity
GroupPendingCapacity
GroupStandbyCapacity
GroupTerminatingCapacity
GroupTotalCapacity
WarmPoolDesiredCapacity
WarmPoolWarmedCapacity
WarmPoolPendingCapacity
WarmPoolTerminatingCapacity
WarmPoolTotalCapacity
GroupAndWarmPoolDesiredCapacity
GroupAndWarmPoolTotalCapacity
If you specify Granularity
and don't specify any metrics, all metrics
are enabled.
For more information, see Auto Scaling group metrics in the Amazon EC2 Auto Scaling User Guide.
EnableMetricsCollection
, enableMetricsCollection_autoScalingGroupName
- The name of the Auto Scaling group.
EnableMetricsCollection
, enableMetricsCollection_granularity
- The frequency at which Amazon EC2 Auto Scaling sends aggregated data to
CloudWatch. The only valid value is 1Minute
.
Request Lenses
enableMetricsCollection_metrics :: Lens' EnableMetricsCollection (Maybe [Text]) Source #
Identifies the metrics to enable.
You can specify one or more of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
GroupInServiceCapacity
GroupPendingCapacity
GroupStandbyCapacity
GroupTerminatingCapacity
GroupTotalCapacity
WarmPoolDesiredCapacity
WarmPoolWarmedCapacity
WarmPoolPendingCapacity
WarmPoolTerminatingCapacity
WarmPoolTotalCapacity
GroupAndWarmPoolDesiredCapacity
GroupAndWarmPoolTotalCapacity
If you specify Granularity
and don't specify any metrics, all metrics
are enabled.
For more information, see Auto Scaling group metrics in the Amazon EC2 Auto Scaling User Guide.
enableMetricsCollection_autoScalingGroupName :: Lens' EnableMetricsCollection Text Source #
The name of the Auto Scaling group.
enableMetricsCollection_granularity :: Lens' EnableMetricsCollection Text Source #
The frequency at which Amazon EC2 Auto Scaling sends aggregated data to
CloudWatch. The only valid value is 1Minute
.
Destructuring the Response
data EnableMetricsCollectionResponse Source #
See: newEnableMetricsCollectionResponse
smart constructor.
Instances
newEnableMetricsCollectionResponse :: EnableMetricsCollectionResponse Source #
Create a value of EnableMetricsCollectionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.