libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch
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.CloudWatch.DescribeAnomalyDetectors

Description

Lists the anomaly detection models that you have created in your account. You can list all models in your account or filter the results to only the models that are related to a certain namespace, metric name, or metric dimension.

Synopsis

Creating a Request

data DescribeAnomalyDetectors Source #

See: newDescribeAnomalyDetectors smart constructor.

Constructors

DescribeAnomalyDetectors' 

Fields

  • metricName :: Maybe Text

    Limits the results to only the anomaly detection models that are associated with the specified metric name. If there are multiple metrics with this name in different namespaces that have anomaly detection models, they're all returned.

  • namespace :: Maybe Text

    Limits the results to only the anomaly detection models that are associated with the specified namespace.

  • nextToken :: Maybe Text

    Use the token returned by the previous operation to request the next page of results.

  • dimensions :: Maybe [Dimension]

    Limits the results to only the anomaly detection models that are associated with the specified metric dimensions. If there are multiple metrics that have these dimensions and have anomaly detection models associated, they're all returned.

  • maxResults :: Maybe Natural

    The maximum number of results to return in one operation. The maximum value that you can specify is 100.

    To retrieve the remaining results, make another call with the returned NextToken value.

Instances

Instances details
Eq DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

Read DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

Show DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

Generic DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

Associated Types

type Rep DescribeAnomalyDetectors :: Type -> Type #

NFData DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

Hashable DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

AWSRequest DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

ToHeaders DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

ToPath DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

ToQuery DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

type Rep DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

type Rep DescribeAnomalyDetectors = D1 ('MetaData "DescribeAnomalyDetectors" "Amazonka.CloudWatch.DescribeAnomalyDetectors" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "DescribeAnomalyDetectors'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Dimension])) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))))
type AWSResponse DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

newDescribeAnomalyDetectors :: DescribeAnomalyDetectors Source #

Create a value of DescribeAnomalyDetectors 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:metricName:DescribeAnomalyDetectors', describeAnomalyDetectors_metricName - Limits the results to only the anomaly detection models that are associated with the specified metric name. If there are multiple metrics with this name in different namespaces that have anomaly detection models, they're all returned.

$sel:namespace:DescribeAnomalyDetectors', describeAnomalyDetectors_namespace - Limits the results to only the anomaly detection models that are associated with the specified namespace.

$sel:nextToken:DescribeAnomalyDetectors', describeAnomalyDetectors_nextToken - Use the token returned by the previous operation to request the next page of results.

$sel:dimensions:DescribeAnomalyDetectors', describeAnomalyDetectors_dimensions - Limits the results to only the anomaly detection models that are associated with the specified metric dimensions. If there are multiple metrics that have these dimensions and have anomaly detection models associated, they're all returned.

$sel:maxResults:DescribeAnomalyDetectors', describeAnomalyDetectors_maxResults - The maximum number of results to return in one operation. The maximum value that you can specify is 100.

To retrieve the remaining results, make another call with the returned NextToken value.

Request Lenses

describeAnomalyDetectors_metricName :: Lens' DescribeAnomalyDetectors (Maybe Text) Source #

Limits the results to only the anomaly detection models that are associated with the specified metric name. If there are multiple metrics with this name in different namespaces that have anomaly detection models, they're all returned.

describeAnomalyDetectors_namespace :: Lens' DescribeAnomalyDetectors (Maybe Text) Source #

Limits the results to only the anomaly detection models that are associated with the specified namespace.

describeAnomalyDetectors_nextToken :: Lens' DescribeAnomalyDetectors (Maybe Text) Source #

Use the token returned by the previous operation to request the next page of results.

describeAnomalyDetectors_dimensions :: Lens' DescribeAnomalyDetectors (Maybe [Dimension]) Source #

Limits the results to only the anomaly detection models that are associated with the specified metric dimensions. If there are multiple metrics that have these dimensions and have anomaly detection models associated, they're all returned.

describeAnomalyDetectors_maxResults :: Lens' DescribeAnomalyDetectors (Maybe Natural) Source #

The maximum number of results to return in one operation. The maximum value that you can specify is 100.

To retrieve the remaining results, make another call with the returned NextToken value.

Destructuring the Response

data DescribeAnomalyDetectorsResponse Source #

See: newDescribeAnomalyDetectorsResponse smart constructor.

Constructors

DescribeAnomalyDetectorsResponse' 

Fields

Instances

Instances details
Eq DescribeAnomalyDetectorsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

Read DescribeAnomalyDetectorsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

Show DescribeAnomalyDetectorsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

Generic DescribeAnomalyDetectorsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

Associated Types

type Rep DescribeAnomalyDetectorsResponse :: Type -> Type #

NFData DescribeAnomalyDetectorsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

type Rep DescribeAnomalyDetectorsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

type Rep DescribeAnomalyDetectorsResponse = D1 ('MetaData "DescribeAnomalyDetectorsResponse" "Amazonka.CloudWatch.DescribeAnomalyDetectors" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "DescribeAnomalyDetectorsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "anomalyDetectors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AnomalyDetector])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeAnomalyDetectorsResponse Source #

Create a value of DescribeAnomalyDetectorsResponse 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:anomalyDetectors:DescribeAnomalyDetectorsResponse', describeAnomalyDetectorsResponse_anomalyDetectors - The list of anomaly detection models returned by the operation.

$sel:nextToken:DescribeAnomalyDetectors', describeAnomalyDetectorsResponse_nextToken - A token that you can use in a subsequent operation to retrieve the next set of results.

$sel:httpStatus:DescribeAnomalyDetectorsResponse', describeAnomalyDetectorsResponse_httpStatus - The response's http status code.

Response Lenses

describeAnomalyDetectorsResponse_anomalyDetectors :: Lens' DescribeAnomalyDetectorsResponse (Maybe [AnomalyDetector]) Source #

The list of anomaly detection models returned by the operation.

describeAnomalyDetectorsResponse_nextToken :: Lens' DescribeAnomalyDetectorsResponse (Maybe Text) Source #

A token that you can use in a subsequent operation to retrieve the next set of results.