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 |
Lists the specified metric filters. You can list all of the metric filters or filter the results by log name, prefix, metric name, or metric namespace. The results are ASCII-sorted by filter name.
This operation returns paginated results.
Synopsis
- data DescribeMetricFilters = DescribeMetricFilters' {}
- newDescribeMetricFilters :: DescribeMetricFilters
- describeMetricFilters_filterNamePrefix :: Lens' DescribeMetricFilters (Maybe Text)
- describeMetricFilters_metricName :: Lens' DescribeMetricFilters (Maybe Text)
- describeMetricFilters_logGroupName :: Lens' DescribeMetricFilters (Maybe Text)
- describeMetricFilters_nextToken :: Lens' DescribeMetricFilters (Maybe Text)
- describeMetricFilters_metricNamespace :: Lens' DescribeMetricFilters (Maybe Text)
- describeMetricFilters_limit :: Lens' DescribeMetricFilters (Maybe Natural)
- data DescribeMetricFiltersResponse = DescribeMetricFiltersResponse' {
- nextToken :: Maybe Text
- metricFilters :: Maybe [MetricFilter]
- httpStatus :: Int
- newDescribeMetricFiltersResponse :: Int -> DescribeMetricFiltersResponse
- describeMetricFiltersResponse_nextToken :: Lens' DescribeMetricFiltersResponse (Maybe Text)
- describeMetricFiltersResponse_metricFilters :: Lens' DescribeMetricFiltersResponse (Maybe [MetricFilter])
- describeMetricFiltersResponse_httpStatus :: Lens' DescribeMetricFiltersResponse Int
Creating a Request
data DescribeMetricFilters Source #
See: newDescribeMetricFilters
smart constructor.
DescribeMetricFilters' | |
|
Instances
newDescribeMetricFilters :: DescribeMetricFilters Source #
Create a value of DescribeMetricFilters
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:filterNamePrefix:DescribeMetricFilters'
, describeMetricFilters_filterNamePrefix
- The prefix to match. CloudWatch Logs uses the value you set here only if
you also include the logGroupName
parameter in your request.
$sel:metricName:DescribeMetricFilters'
, describeMetricFilters_metricName
- Filters results to include only those with the specified metric name. If
you include this parameter in your request, you must also include the
metricNamespace
parameter.
$sel:logGroupName:DescribeMetricFilters'
, describeMetricFilters_logGroupName
- The name of the log group.
$sel:nextToken:DescribeMetricFilters'
, describeMetricFilters_nextToken
- The token for the next set of items to return. (You received this token
from a previous call.)
$sel:metricNamespace:DescribeMetricFilters'
, describeMetricFilters_metricNamespace
- Filters results to include only those in the specified namespace. If you
include this parameter in your request, you must also include the
metricName
parameter.
$sel:limit:DescribeMetricFilters'
, describeMetricFilters_limit
- The maximum number of items returned. If you don't specify a value, the
default is up to 50 items.
Request Lenses
describeMetricFilters_filterNamePrefix :: Lens' DescribeMetricFilters (Maybe Text) Source #
The prefix to match. CloudWatch Logs uses the value you set here only if
you also include the logGroupName
parameter in your request.
describeMetricFilters_metricName :: Lens' DescribeMetricFilters (Maybe Text) Source #
Filters results to include only those with the specified metric name. If
you include this parameter in your request, you must also include the
metricNamespace
parameter.
describeMetricFilters_logGroupName :: Lens' DescribeMetricFilters (Maybe Text) Source #
The name of the log group.
describeMetricFilters_nextToken :: Lens' DescribeMetricFilters (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
describeMetricFilters_metricNamespace :: Lens' DescribeMetricFilters (Maybe Text) Source #
Filters results to include only those in the specified namespace. If you
include this parameter in your request, you must also include the
metricName
parameter.
describeMetricFilters_limit :: Lens' DescribeMetricFilters (Maybe Natural) Source #
The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
Destructuring the Response
data DescribeMetricFiltersResponse Source #
See: newDescribeMetricFiltersResponse
smart constructor.
DescribeMetricFiltersResponse' | |
|
Instances
newDescribeMetricFiltersResponse Source #
Create a value of DescribeMetricFiltersResponse
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:nextToken:DescribeMetricFilters'
, describeMetricFiltersResponse_nextToken
- Undocumented member.
$sel:metricFilters:DescribeMetricFiltersResponse'
, describeMetricFiltersResponse_metricFilters
- The metric filters.
$sel:httpStatus:DescribeMetricFiltersResponse'
, describeMetricFiltersResponse_httpStatus
- The response's http status code.
Response Lenses
describeMetricFiltersResponse_nextToken :: Lens' DescribeMetricFiltersResponse (Maybe Text) Source #
Undocumented member.
describeMetricFiltersResponse_metricFilters :: Lens' DescribeMetricFiltersResponse (Maybe [MetricFilter]) Source #
The metric filters.
describeMetricFiltersResponse_httpStatus :: Lens' DescribeMetricFiltersResponse Int Source #
The response's http status code.