amazonka-cloudwatch-logs-2.0: Amazon CloudWatch Logs SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudWatchLogs.TestMetricFilter

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

data TestMetricFilter Source #

See: newTestMetricFilter smart constructor.

Constructors

TestMetricFilter' 

Fields

Instances

Instances details
ToJSON TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

ToHeaders TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

ToPath TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

ToQuery TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

AWSRequest TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Associated Types

type AWSResponse TestMetricFilter #

Generic TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Associated Types

type Rep TestMetricFilter :: Type -> Type #

Read TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Show TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

NFData TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Methods

rnf :: TestMetricFilter -> () #

Eq TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Hashable TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

type AWSResponse TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

type Rep TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

type Rep TestMetricFilter = D1 ('MetaData "TestMetricFilter" "Amazonka.CloudWatchLogs.TestMetricFilter" "amazonka-cloudwatch-logs-2.0-6gvDalNFsfE8djZ4aTfA4V" 'False) (C1 ('MetaCons "TestMetricFilter'" 'PrefixI 'True) (S1 ('MetaSel ('Just "filterPattern") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "logEventMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text))))

newTestMetricFilter Source #

Create a value of TestMetricFilter with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

TestMetricFilter, testMetricFilter_filterPattern - Undocumented member.

$sel:logEventMessages:TestMetricFilter', testMetricFilter_logEventMessages - The log event messages to test.

Request Lenses

Destructuring the Response

data TestMetricFilterResponse Source #

See: newTestMetricFilterResponse smart constructor.

Constructors

TestMetricFilterResponse' 

Fields

Instances

Instances details
Generic TestMetricFilterResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Associated Types

type Rep TestMetricFilterResponse :: Type -> Type #

Read TestMetricFilterResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Show TestMetricFilterResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

NFData TestMetricFilterResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Eq TestMetricFilterResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

type Rep TestMetricFilterResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

type Rep TestMetricFilterResponse = D1 ('MetaData "TestMetricFilterResponse" "Amazonka.CloudWatchLogs.TestMetricFilter" "amazonka-cloudwatch-logs-2.0-6gvDalNFsfE8djZ4aTfA4V" 'False) (C1 ('MetaCons "TestMetricFilterResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "matches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MetricFilterMatchRecord])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newTestMetricFilterResponse Source #

Create a value of TestMetricFilterResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:matches:TestMetricFilterResponse', testMetricFilterResponse_matches - The matched events.

$sel:httpStatus:TestMetricFilterResponse', testMetricFilterResponse_httpStatus - The response's http status code.

Response Lenses