import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchClient"; import type { DescribeAnomalyDetectorsInput, DescribeAnomalyDetectorsOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeAnomalyDetectorsCommand}. */ export interface DescribeAnomalyDetectorsCommandInput extends DescribeAnomalyDetectorsInput { } /** * @public * * The output of {@link DescribeAnomalyDetectorsCommand}. */ export interface DescribeAnomalyDetectorsCommandOutput extends DescribeAnomalyDetectorsOutput, __MetadataBearer { } declare const DescribeAnomalyDetectorsCommand_base: { new (input: DescribeAnomalyDetectorsCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [DescribeAnomalyDetectorsCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudWatchClient, DescribeAnomalyDetectorsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import * // const { CloudWatchClient, DescribeAnomalyDetectorsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import * // import type { CloudWatchClientConfig } from "@aws-sdk/client-cloudwatch"; * const config = {}; // type is CloudWatchClientConfig * const client = new CloudWatchClient(config); * const input = { // DescribeAnomalyDetectorsInput * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * Namespace: "STRING_VALUE", * MetricName: "STRING_VALUE", * Dimensions: [ // Dimensions * { // Dimension * Name: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * AnomalyDetectorTypes: [ // AnomalyDetectorTypes * "SINGLE_METRIC" || "METRIC_MATH", * ], * }; * const command = new DescribeAnomalyDetectorsCommand(input); * const response = await client.send(command); * // { // DescribeAnomalyDetectorsOutput * // AnomalyDetectors: [ // AnomalyDetectors * // { // AnomalyDetector * // Namespace: "STRING_VALUE", * // MetricName: "STRING_VALUE", * // Dimensions: [ // Dimensions * // { // Dimension * // Name: "STRING_VALUE", // required * // Value: "STRING_VALUE", // required * // }, * // ], * // Stat: "STRING_VALUE", * // Configuration: { // AnomalyDetectorConfiguration * // ExcludedTimeRanges: [ // AnomalyDetectorExcludedTimeRanges * // { // Range * // StartTime: new Date("TIMESTAMP"), // required * // EndTime: new Date("TIMESTAMP"), // required * // }, * // ], * // MetricTimezone: "STRING_VALUE", * // }, * // StateValue: "PENDING_TRAINING" || "TRAINED_INSUFFICIENT_DATA" || "TRAINED", * // MetricCharacteristics: { // MetricCharacteristics * // PeriodicSpikes: true || false, * // }, * // SingleMetricAnomalyDetector: { // SingleMetricAnomalyDetector * // AccountId: "STRING_VALUE", * // Namespace: "STRING_VALUE", * // MetricName: "STRING_VALUE", * // Dimensions: [ * // { * // Name: "STRING_VALUE", // required * // Value: "STRING_VALUE", // required * // }, * // ], * // Stat: "STRING_VALUE", * // }, * // MetricMathAnomalyDetector: { // MetricMathAnomalyDetector * // MetricDataQueries: [ // MetricDataQueries * // { // MetricDataQuery * // Id: "STRING_VALUE", // required * // MetricStat: { // MetricStat * // Metric: { // Metric * // Namespace: "STRING_VALUE", * // MetricName: "STRING_VALUE", * // Dimensions: "", * // }, * // Period: Number("int"), // required * // Stat: "STRING_VALUE", // required * // Unit: "Seconds" || "Microseconds" || "Milliseconds" || "Bytes" || "Kilobytes" || "Megabytes" || "Gigabytes" || "Terabytes" || "Bits" || "Kilobits" || "Megabits" || "Gigabits" || "Terabits" || "Percent" || "Count" || "Bytes/Second" || "Kilobytes/Second" || "Megabytes/Second" || "Gigabytes/Second" || "Terabytes/Second" || "Bits/Second" || "Kilobits/Second" || "Megabits/Second" || "Gigabits/Second" || "Terabits/Second" || "Count/Second" || "None", * // }, * // Expression: "STRING_VALUE", * // Label: "STRING_VALUE", * // ReturnData: true || false, * // Period: Number("int"), * // AccountId: "STRING_VALUE", * // }, * // ], * // }, * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param DescribeAnomalyDetectorsCommandInput - {@link DescribeAnomalyDetectorsCommandInput} * @returns {@link DescribeAnomalyDetectorsCommandOutput} * @see {@link DescribeAnomalyDetectorsCommandInput} for command's `input` shape. * @see {@link DescribeAnomalyDetectorsCommandOutput} for command's `response` shape. * @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape. * * @throws {@link InternalServiceFault} (server fault) *

Request processing has failed due to some unknown error, exception, or * failure.

* * @throws {@link InvalidNextToken} (client fault) *

The next token specified is invalid.

* * @throws {@link InvalidParameterCombinationException} (client fault) *

Parameters were used together that cannot be used together.

* * @throws {@link InvalidParameterValueException} (client fault) *

The value of an input parameter is bad or out-of-range.

* * @throws {@link CloudWatchServiceException} *

Base exception class for all service exceptions from CloudWatch service.

* * * @public */ export declare class DescribeAnomalyDetectorsCommand extends DescribeAnomalyDetectorsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeAnomalyDetectorsInput; output: DescribeAnomalyDetectorsOutput; }; sdk: { input: DescribeAnomalyDetectorsCommandInput; output: DescribeAnomalyDetectorsCommandOutput; }; }; }