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 |
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
.
The maximum number of metric filters that can be associated with a log group is 100.
- 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:
pmfLogGroupName
- The name of the log group.pmfFilterName
- A name for the metric filter.pmfFilterPattern
- A filter pattern for extracting metric data out of ingested log events.pmfMetricTransformations
- A collection of information that defines how metric data gets emitted.
data PutMetricFilter Source #
See: putMetricFilter
smart constructor.
Request Lenses
pmfLogGroupName :: Lens' PutMetricFilter Text Source #
The name of the log group.
pmfFilterName :: Lens' PutMetricFilter Text Source #
A name for the metric filter.
pmfFilterPattern :: Lens' PutMetricFilter Text Source #
A filter pattern for extracting metric data out of ingested log events.
pmfMetricTransformations :: Lens' PutMetricFilter (NonEmpty MetricTransformation) Source #
A collection of information that defines 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.