amazonka-autoscaling-1.4.1: Amazon Auto Scaling SDK.

Copyright(c) 2013-2016 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.

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:

data EnableMetricsCollection Source #

See: enableMetricsCollection smart constructor.

Instances

Eq EnableMetricsCollection Source # 
Data EnableMetricsCollection Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> EnableMetricsCollection -> c EnableMetricsCollection #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c EnableMetricsCollection #

toConstr :: EnableMetricsCollection -> Constr #

dataTypeOf :: EnableMetricsCollection -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c EnableMetricsCollection) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c EnableMetricsCollection) #

gmapT :: (forall b. Data b => b -> b) -> EnableMetricsCollection -> EnableMetricsCollection #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> EnableMetricsCollection -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> EnableMetricsCollection -> r #

gmapQ :: (forall d. Data d => d -> u) -> EnableMetricsCollection -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> EnableMetricsCollection -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> EnableMetricsCollection -> m EnableMetricsCollection #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> EnableMetricsCollection -> m EnableMetricsCollection #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> EnableMetricsCollection -> m EnableMetricsCollection #

Read EnableMetricsCollection Source # 
Show EnableMetricsCollection Source # 
Generic EnableMetricsCollection Source # 
Hashable EnableMetricsCollection Source # 
NFData EnableMetricsCollection Source # 

Methods

rnf :: EnableMetricsCollection -> () #

AWSRequest EnableMetricsCollection Source # 
ToQuery EnableMetricsCollection Source # 
ToPath EnableMetricsCollection Source # 
ToHeaders EnableMetricsCollection Source # 
type Rep EnableMetricsCollection Source # 
type Rep EnableMetricsCollection = D1 (MetaData "EnableMetricsCollection" "Network.AWS.AutoScaling.EnableMetricsCollection" "amazonka-autoscaling-1.4.1-6n1gZhuATc42fDCbIaB7wz" False) (C1 (MetaCons "EnableMetricsCollection'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_emcMetrics") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_emcAutoScalingGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_emcGranularity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs EnableMetricsCollection Source # 

Request Lenses

emcMetrics :: Lens' EnableMetricsCollection [Text] Source #

One or more of the following 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.

Instances

Eq EnableMetricsCollectionResponse Source # 
Data EnableMetricsCollectionResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> EnableMetricsCollectionResponse -> c EnableMetricsCollectionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c EnableMetricsCollectionResponse #

toConstr :: EnableMetricsCollectionResponse -> Constr #

dataTypeOf :: EnableMetricsCollectionResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c EnableMetricsCollectionResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c EnableMetricsCollectionResponse) #

gmapT :: (forall b. Data b => b -> b) -> EnableMetricsCollectionResponse -> EnableMetricsCollectionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> EnableMetricsCollectionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> EnableMetricsCollectionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> EnableMetricsCollectionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> EnableMetricsCollectionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> EnableMetricsCollectionResponse -> m EnableMetricsCollectionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> EnableMetricsCollectionResponse -> m EnableMetricsCollectionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> EnableMetricsCollectionResponse -> m EnableMetricsCollectionResponse #

Read EnableMetricsCollectionResponse Source # 
Show EnableMetricsCollectionResponse Source # 
Generic EnableMetricsCollectionResponse Source # 
NFData EnableMetricsCollectionResponse Source # 
type Rep EnableMetricsCollectionResponse Source # 
type Rep EnableMetricsCollectionResponse = D1 (MetaData "EnableMetricsCollectionResponse" "Network.AWS.AutoScaling.EnableMetricsCollection" "amazonka-autoscaling-1.4.1-6n1gZhuATc42fDCbIaB7wz" False) (C1 (MetaCons "EnableMetricsCollectionResponse'" PrefixI False) U1)