amazonka-cloudwatch-logs-1.6.0: 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.TestMetricFilter

Contents

Description

Tests the filter pattern of a metric filter against a sample of log event messages. You can use this operation to validate the correctness of a metric filter pattern.

Synopsis

Creating a Request

testMetricFilter Source #

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

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

data TestMetricFilter Source #

See: testMetricFilter smart constructor.

Instances

Eq TestMetricFilter Source # 
Data TestMetricFilter Source # 

Methods

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

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

toConstr :: TestMetricFilter -> Constr #

dataTypeOf :: TestMetricFilter -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: TestMetricFilter -> () #

AWSRequest TestMetricFilter Source # 
ToHeaders TestMetricFilter Source # 
ToPath TestMetricFilter Source # 
ToQuery TestMetricFilter Source # 
type Rep TestMetricFilter Source # 
type Rep TestMetricFilter = D1 * (MetaData "TestMetricFilter" "Network.AWS.CloudWatchLogs.TestMetricFilter" "amazonka-cloudwatch-logs-1.6.0-HcMszQeKJF6Iux4ovYYZri" False) (C1 * (MetaCons "TestMetricFilter'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_tmfFilterPattern") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_tmfLogEventMessages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (List1 Text)))))
type Rs TestMetricFilter Source # 

Request Lenses

tmfLogEventMessages :: Lens' TestMetricFilter (NonEmpty Text) Source #

The log event messages to test.

Destructuring the Response

testMetricFilterResponse Source #

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

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

data TestMetricFilterResponse Source #

See: testMetricFilterResponse smart constructor.

Instances

Eq TestMetricFilterResponse Source # 
Data TestMetricFilterResponse Source # 

Methods

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

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

toConstr :: TestMetricFilterResponse -> Constr #

dataTypeOf :: TestMetricFilterResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TestMetricFilterResponse Source # 
Show TestMetricFilterResponse Source # 
Generic TestMetricFilterResponse Source # 
NFData TestMetricFilterResponse Source # 
type Rep TestMetricFilterResponse Source # 
type Rep TestMetricFilterResponse = D1 * (MetaData "TestMetricFilterResponse" "Network.AWS.CloudWatchLogs.TestMetricFilter" "amazonka-cloudwatch-logs-1.6.0-HcMszQeKJF6Iux4ovYYZri" False) (C1 * (MetaCons "TestMetricFilterResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_tmfrsMatches") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [MetricFilterMatchRecord]))) (S1 * (MetaSel (Just Symbol "_tmfrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses