Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
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.
- testMetricFilter :: Text -> NonEmpty Text -> TestMetricFilter
- data TestMetricFilter
- tmfFilterPattern :: Lens' TestMetricFilter Text
- tmfLogEventMessages :: Lens' TestMetricFilter (NonEmpty Text)
- testMetricFilterResponse :: Int -> TestMetricFilterResponse
- data TestMetricFilterResponse
- tmfrsMatches :: Lens' TestMetricFilterResponse [MetricFilterMatchRecord]
- tmfrsResponseStatus :: Lens' TestMetricFilterResponse Int
Creating a Request
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:
tmfFilterPattern
- Undocumented member.tmfLogEventMessages
- The log event messages to test.
data TestMetricFilter Source #
See: testMetricFilter
smart constructor.
Request Lenses
tmfFilterPattern :: Lens' TestMetricFilter Text Source #
Undocumented member.
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:
tmfrsMatches
- The matched events.tmfrsResponseStatus
- -- | The response status code.
data TestMetricFilterResponse Source #
See: testMetricFilterResponse
smart constructor.
Response Lenses
tmfrsMatches :: Lens' TestMetricFilterResponse [MetricFilterMatchRecord] Source #
The matched events.
tmfrsResponseStatus :: Lens' TestMetricFilterResponse Int Source #
- - | The response status code.