amazonka-autoscaling-1.4.5: 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 group metrics for the specified Auto Scaling group. For more information, see Monitoring Your Auto Scaling Groups and Instances in the Auto Scaling User Guide .

Synopsis

Creating a Request

enableMetricsCollection #

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:

  • emcMetrics - One or more of the following metrics. If you omit this parameter, all metrics are enabled. * GroupMinSize * GroupMaxSize * GroupDesiredCapacity * GroupInServiceInstances * GroupPendingInstances * GroupStandbyInstances * GroupTerminatingInstances * GroupTotalInstances
  • emcAutoScalingGroupName - The name or ARN of the Auto Scaling group.
  • emcGranularity - The granularity to associate with the metrics to collect. The only valid value is 1Minute .

data EnableMetricsCollection #

Contains the parameters for EnableMetricsCollection.

See: enableMetricsCollection smart constructor.

Instances

Eq EnableMetricsCollection # 
Data EnableMetricsCollection # 

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 # 
Show EnableMetricsCollection # 
Generic EnableMetricsCollection # 
Hashable EnableMetricsCollection # 
NFData EnableMetricsCollection # 

Methods

rnf :: EnableMetricsCollection -> () #

AWSRequest EnableMetricsCollection # 
ToQuery EnableMetricsCollection # 
ToPath EnableMetricsCollection # 
ToHeaders EnableMetricsCollection # 
type Rep EnableMetricsCollection # 
type Rep EnableMetricsCollection = D1 (MetaData "EnableMetricsCollection" "Network.AWS.AutoScaling.EnableMetricsCollection" "amazonka-autoscaling-1.4.5-7eWJWM4Di3O2fihmLpacNP" 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 # 

Request Lenses

emcMetrics :: Lens' EnableMetricsCollection [Text] #

One or more of the following metrics. If you omit this parameter, all metrics are enabled. * GroupMinSize * GroupMaxSize * GroupDesiredCapacity * GroupInServiceInstances * GroupPendingInstances * GroupStandbyInstances * GroupTerminatingInstances * GroupTotalInstances

emcAutoScalingGroupName :: Lens' EnableMetricsCollection Text #

The name or ARN of the Auto Scaling group.

emcGranularity :: Lens' EnableMetricsCollection Text #

The granularity to associate with the metrics to collect. The only valid value is 1Minute .

Destructuring the Response

enableMetricsCollectionResponse :: EnableMetricsCollectionResponse #

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

data EnableMetricsCollectionResponse #

See: enableMetricsCollectionResponse smart constructor.

Instances

Eq EnableMetricsCollectionResponse # 
Data EnableMetricsCollectionResponse # 

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 # 
Show EnableMetricsCollectionResponse # 
Generic EnableMetricsCollectionResponse # 
NFData EnableMetricsCollectionResponse # 
type Rep EnableMetricsCollectionResponse # 
type Rep EnableMetricsCollectionResponse = D1 (MetaData "EnableMetricsCollectionResponse" "Network.AWS.AutoScaling.EnableMetricsCollection" "amazonka-autoscaling-1.4.5-7eWJWM4Di3O2fihmLpacNP" False) (C1 (MetaCons "EnableMetricsCollectionResponse'" PrefixI False) U1)