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

Copyright(c) 2013-2018 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 # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

Data PutMetricFilter Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

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 # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

Show PutMetricFilter Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

Generic PutMetricFilter Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

Associated Types

type Rep PutMetricFilter :: Type -> Type #

Hashable PutMetricFilter Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

ToJSON PutMetricFilter Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

AWSRequest PutMetricFilter Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

Associated Types

type Rs PutMetricFilter :: Type #

ToHeaders PutMetricFilter Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

ToPath PutMetricFilter Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

ToQuery PutMetricFilter Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

NFData PutMetricFilter Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

Methods

rnf :: PutMetricFilter -> () #

type Rep PutMetricFilter Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

type Rep PutMetricFilter = D1 (MetaData "PutMetricFilter" "Network.AWS.CloudWatchLogs.PutMetricFilter" "amazonka-cloudwatch-logs-1.6.1-3MDuvRaDmjeBjiAkGx8qXs" False) (C1 (MetaCons "PutMetricFilter'" PrefixI True) ((S1 (MetaSel (Just "_pmfLogGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pmfFilterName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_pmfFilterPattern") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pmfMetricTransformations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (List1 MetricTransformation)))))
type Rs PutMetricFilter Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

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 # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

Data PutMetricFilterResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

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 # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

Show PutMetricFilterResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

Generic PutMetricFilterResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

Associated Types

type Rep PutMetricFilterResponse :: Type -> Type #

NFData PutMetricFilterResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

Methods

rnf :: PutMetricFilterResponse -> () #

type Rep PutMetricFilterResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchLogs.PutMetricFilter

type Rep PutMetricFilterResponse = D1 (MetaData "PutMetricFilterResponse" "Network.AWS.CloudWatchLogs.PutMetricFilter" "amazonka-cloudwatch-logs-1.6.1-3MDuvRaDmjeBjiAkGx8qXs" False) (C1 (MetaCons "PutMetricFilterResponse'" PrefixI False) (U1 :: Type -> Type))