Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates or updates a metric filter and associates it with the specified
log group. Metric filters allow you to configure rules to extract metric
data from log events ingested through PutLogEvents
requests.
The maximum number of metric filters that can be associated with a log group is 100.
See: AWS API Reference for PutMetricFilter.
- putMetricFilter :: Text -> Text -> Text -> NonEmpty MetricTransformation -> PutMetricFilter
- data PutMetricFilter
- pmfLogGroupName :: Lens' PutMetricFilter Text
- pmfFilterName :: Lens' PutMetricFilter Text
- pmfFilterPattern :: Lens' PutMetricFilter Text
- pmfMetricTransformations :: Lens' PutMetricFilter (NonEmpty MetricTransformation)
- putMetricFilterResponse :: PutMetricFilterResponse
- data PutMetricFilterResponse
Creating a Request
:: Text | |
-> Text | |
-> Text | |
-> NonEmpty MetricTransformation | |
-> PutMetricFilter |
Creates a value of PutMetricFilter
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PutMetricFilter Source
See: putMetricFilter
smart constructor.
Request Lenses
pmfLogGroupName :: Lens' PutMetricFilter Text Source
The name of the log group to associate the metric filter with.
pmfFilterName :: Lens' PutMetricFilter Text Source
A name for the metric filter.
pmfFilterPattern :: Lens' PutMetricFilter Text Source
A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.
pmfMetricTransformations :: Lens' PutMetricFilter (NonEmpty MetricTransformation) Source
A collection of information needed to define how metric data gets emitted.
Destructuring the Response
putMetricFilterResponse :: PutMetricFilterResponse Source
Creates a value of PutMetricFilterResponse
with the minimum fields required to make a request.
data PutMetricFilterResponse Source
See: putMetricFilterResponse
smart constructor.