Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data TestMetricFilter = TestMetricFilter' {}
- newTestMetricFilter :: Text -> NonEmpty Text -> TestMetricFilter
- testMetricFilter_filterPattern :: Lens' TestMetricFilter Text
- testMetricFilter_logEventMessages :: Lens' TestMetricFilter (NonEmpty Text)
- data TestMetricFilterResponse = TestMetricFilterResponse' {}
- newTestMetricFilterResponse :: Int -> TestMetricFilterResponse
- testMetricFilterResponse_matches :: Lens' TestMetricFilterResponse (Maybe [MetricFilterMatchRecord])
- testMetricFilterResponse_httpStatus :: Lens' TestMetricFilterResponse Int
Creating a Request
data TestMetricFilter Source #
See: newTestMetricFilter
smart constructor.
TestMetricFilter' | |
|
Instances
:: Text | |
-> NonEmpty Text | |
-> TestMetricFilter |
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
testMetricFilter_filterPattern :: Lens' TestMetricFilter Text Source #
Undocumented member.
testMetricFilter_logEventMessages :: Lens' TestMetricFilter (NonEmpty Text) Source #
The log event messages to test.
Destructuring the Response
data TestMetricFilterResponse Source #
See: newTestMetricFilterResponse
smart constructor.
TestMetricFilterResponse' | |
|
Instances
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
testMetricFilterResponse_matches :: Lens' TestMetricFilterResponse (Maybe [MetricFilterMatchRecord]) Source #
The matched events.
testMetricFilterResponse_httpStatus :: Lens' TestMetricFilterResponse Int Source #
The response's http status code.