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

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
Eq TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Read TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Show TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Generic TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Associated Types

type Rep TestMetricFilter :: Type -> Type #

NFData TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Methods

rnf :: TestMetricFilter -> () #

Hashable TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

ToJSON TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

AWSRequest TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Associated Types

type AWSResponse 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

type Rep TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

type Rep TestMetricFilter = D1 ('MetaData "TestMetricFilter" "Amazonka.CloudWatchLogs.TestMetricFilter" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" '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))))
type AWSResponse TestMetricFilter Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

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:

$sel:filterPattern: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
Eq TestMetricFilterResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Read TestMetricFilterResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Show TestMetricFilterResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Generic TestMetricFilterResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TestMetricFilter

Associated Types

type Rep TestMetricFilterResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" '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