amazonka-cloudwatch-logs-1.5.0: Amazon CloudWatch Logs SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudWatchLogs.PutMetricFilter

Contents

Description

Creates or updates a metric filter and associates it with the specified log group. Metric filters allow you to configure rules to extract metric data from log events ingested through PutLogEvents .

The maximum number of metric filters that can be associated with a log group is 100.

Synopsis

Creating a Request

putMetricFilter Source #

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

Use one of the following lenses to modify other fields as desired:

data PutMetricFilter Source #

See: putMetricFilter smart constructor.

Instances

Eq PutMetricFilter Source # 
Data PutMetricFilter Source # 

Methods

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

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

toConstr :: PutMetricFilter -> Constr #

dataTypeOf :: PutMetricFilter -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutMetricFilter Source # 
Show PutMetricFilter Source # 
Generic PutMetricFilter Source # 
Hashable PutMetricFilter Source # 
ToJSON PutMetricFilter Source # 
NFData PutMetricFilter Source # 

Methods

rnf :: PutMetricFilter -> () #

AWSRequest PutMetricFilter Source # 
ToQuery PutMetricFilter Source # 
ToPath PutMetricFilter Source # 
ToHeaders PutMetricFilter Source # 
type Rep PutMetricFilter Source # 
type Rep PutMetricFilter = D1 (MetaData "PutMetricFilter" "Network.AWS.CloudWatchLogs.PutMetricFilter" "amazonka-cloudwatch-logs-1.5.0-3vuxaAoYUATHD7OLMfoSU1" False) (C1 (MetaCons "PutMetricFilter'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_pmfLogGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_pmfFilterName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_pmfFilterPattern") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_pmfMetricTransformations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (List1 MetricTransformation))))))
type Rs PutMetricFilter Source # 

Request Lenses

pmfLogGroupName :: Lens' PutMetricFilter Text Source #

The name of the log group.

pmfFilterName :: Lens' PutMetricFilter Text Source #

A name for the metric filter.

pmfFilterPattern :: Lens' PutMetricFilter Text Source #

A filter pattern for extracting metric data out of ingested log events.

pmfMetricTransformations :: Lens' PutMetricFilter (NonEmpty MetricTransformation) Source #

A collection of information that defines how metric data gets emitted.

Destructuring the Response

putMetricFilterResponse :: PutMetricFilterResponse Source #

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

data PutMetricFilterResponse Source #

See: putMetricFilterResponse smart constructor.

Instances

Eq PutMetricFilterResponse Source # 
Data PutMetricFilterResponse Source # 

Methods

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

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

toConstr :: PutMetricFilterResponse -> Constr #

dataTypeOf :: PutMetricFilterResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutMetricFilterResponse Source # 
Show PutMetricFilterResponse Source # 
Generic PutMetricFilterResponse Source # 
NFData PutMetricFilterResponse Source # 

Methods

rnf :: PutMetricFilterResponse -> () #

type Rep PutMetricFilterResponse Source # 
type Rep PutMetricFilterResponse = D1 (MetaData "PutMetricFilterResponse" "Network.AWS.CloudWatchLogs.PutMetricFilter" "amazonka-cloudwatch-logs-1.5.0-3vuxaAoYUATHD7OLMfoSU1" False) (C1 (MetaCons "PutMetricFilterResponse'" PrefixI False) U1)