libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudWatchLogs.DescribeMetricFilters

Description

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

Creating a Request

data DescribeMetricFilters Source #

See: newDescribeMetricFilters smart constructor.

Constructors

DescribeMetricFilters' 

Fields

  • filterNamePrefix :: Maybe Text

    The prefix to match. CloudWatch Logs uses the value you set here only if you also include the logGroupName parameter in your request.

  • metricName :: Maybe Text

    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.

  • logGroupName :: Maybe Text

    The name of the log group.

  • nextToken :: Maybe Text

    The token for the next set of items to return. (You received this token from a previous call.)

  • metricNamespace :: Maybe Text

    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.

  • limit :: Maybe Natural

    The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

Instances

Instances details
Eq DescribeMetricFilters Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

Read DescribeMetricFilters Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

Show DescribeMetricFilters Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

Generic DescribeMetricFilters Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

Associated Types

type Rep DescribeMetricFilters :: Type -> Type #

NFData DescribeMetricFilters Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

Methods

rnf :: DescribeMetricFilters -> () #

Hashable DescribeMetricFilters Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

ToJSON DescribeMetricFilters Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

AWSPager DescribeMetricFilters Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

AWSRequest DescribeMetricFilters Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

Associated Types

type AWSResponse DescribeMetricFilters #

ToHeaders DescribeMetricFilters Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

ToPath DescribeMetricFilters Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

ToQuery DescribeMetricFilters Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

type Rep DescribeMetricFilters Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

type Rep DescribeMetricFilters = D1 ('MetaData "DescribeMetricFilters" "Amazonka.CloudWatchLogs.DescribeMetricFilters" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "DescribeMetricFilters'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filterNamePrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "logGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "metricNamespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))))
type AWSResponse DescribeMetricFilters Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

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_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.

Constructors

DescribeMetricFiltersResponse' 

Fields

Instances

Instances details
Eq DescribeMetricFiltersResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

Read DescribeMetricFiltersResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

Show DescribeMetricFiltersResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

Generic DescribeMetricFiltersResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

Associated Types

type Rep DescribeMetricFiltersResponse :: Type -> Type #

NFData DescribeMetricFiltersResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

type Rep DescribeMetricFiltersResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeMetricFilters

type Rep DescribeMetricFiltersResponse = D1 ('MetaData "DescribeMetricFiltersResponse" "Amazonka.CloudWatchLogs.DescribeMetricFilters" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "DescribeMetricFiltersResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "metricFilters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MetricFilter])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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