| Copyright | (c) 2013-2018 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 |
Network.AWS.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
- 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
Arguments
| :: Text | |
| -> NonEmpty Text | |
| -> TestMetricFilter |
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.
Instances
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 #
Arguments
| :: Int | |
| -> TestMetricFilterResponse |
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.
Instances
Response Lenses
tmfrsMatches :: Lens' TestMetricFilterResponse [MetricFilterMatchRecord] Source #
The matched events.
tmfrsResponseStatus :: Lens' TestMetricFilterResponse Int Source #
- - | The response status code.