amazonka-cloudwatch-2.0: Amazon CloudWatch SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudWatch.DescribeAnomalyDetectors

Description

Lists the anomaly detection models that you have created in your account. For single metric anomaly detectors, you can list all of the models in your account or filter the results to only the models that are related to a certain namespace, metric name, or metric dimension. For metric math anomaly detectors, you can list them by adding METRIC_MATH to the AnomalyDetectorTypes array. This will return all metric math anomaly detectors in your account.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeAnomalyDetectors Source #

See: newDescribeAnomalyDetectors smart constructor.

Constructors

DescribeAnomalyDetectors' 

Fields

  • anomalyDetectorTypes :: Maybe [AnomalyDetectorType]

    The anomaly detector types to request when using DescribeAnomalyDetectorsInput. If empty, defaults to SINGLE_METRIC.

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

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

Instances

Instances details
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

AWSPager DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

AWSRequest 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 #

Read DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

Show DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

NFData DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

Eq DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

Hashable DescribeAnomalyDetectors Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

type AWSResponse 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" "amazonka-cloudwatch-2.0-9xq2AWTkbYo3pEtgQNn4jD" 'False) (C1 ('MetaCons "DescribeAnomalyDetectors'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "anomalyDetectorTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AnomalyDetectorType])) :*: (S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Dimension])) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) :*: (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))))))

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:anomalyDetectorTypes:DescribeAnomalyDetectors', describeAnomalyDetectors_anomalyDetectorTypes - The anomaly detector types to request when using DescribeAnomalyDetectorsInput. If empty, defaults to SINGLE_METRIC.

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.

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.

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

DescribeAnomalyDetectors, describeAnomalyDetectors_nextToken - Use the token returned by the previous operation to request the next page of results.

Request Lenses

describeAnomalyDetectors_anomalyDetectorTypes :: Lens' DescribeAnomalyDetectors (Maybe [AnomalyDetectorType]) Source #

The anomaly detector types to request when using DescribeAnomalyDetectorsInput. If empty, defaults to SINGLE_METRIC.

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.

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.

Destructuring the Response

data DescribeAnomalyDetectorsResponse Source #

See: newDescribeAnomalyDetectorsResponse smart constructor.

Constructors

DescribeAnomalyDetectorsResponse' 

Fields

Instances

Instances details
Generic DescribeAnomalyDetectorsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

Associated Types

type Rep DescribeAnomalyDetectorsResponse :: Type -> Type #

Read DescribeAnomalyDetectorsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

Show DescribeAnomalyDetectorsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

NFData DescribeAnomalyDetectorsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DescribeAnomalyDetectors

Eq 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" "amazonka-cloudwatch-2.0-9xq2AWTkbYo3pEtgQNn4jD" '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.

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.