Deletes the specified anomaly detection model from your account¶
Description¶
Deletes the specified anomaly detection model from your account. For more information about how to delete an anomaly detection model, see Deleting an anomaly detection model in the CloudWatch User Guide.
Usage¶
cloudwatch_delete_anomaly_detector(AnomalyDetectorId, Namespace,
MetricName, Dimensions, Stat, SingleMetricAnomalyDetector,
MetricMathAnomalyDetector)
Arguments¶
-
AnomalyDetectorIdSpecifies the unique identifier of the anomaly detector to delete. If you specify this parameter, you do not need to specify a metric to identify the detector.
-
NamespaceThe namespace associated with the anomaly detection model to delete.
-
MetricNameThe metric name associated with the anomaly detection model to delete.
-
DimensionsThe metric dimensions associated with the anomaly detection model to delete.
-
StatThe statistic associated with the anomaly detection model to delete.
-
SingleMetricAnomalyDetectorA single metric anomaly detector to be deleted.
When using
SingleMetricAnomalyDetector, you cannot include the following parameters in the same operation:Dimensions,MetricNameNamespaceStat- the
MetricMathAnomalyDetectorparameters ofDeleteAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part of the
SingleMetricAnomalyDetectorproperty. -
MetricMathAnomalyDetectorThe metric math anomaly detector to be deleted.
When using
MetricMathAnomalyDetector, you cannot include following parameters in the same operation:Dimensions,MetricNameNamespaceStat- the
SingleMetricAnomalyDetectorparameters ofDeleteAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of the
MetricMathAnomalyDetectorproperty.
Value¶
An empty list.
Request syntax¶
svc$delete_anomaly_detector(
AnomalyDetectorId = "string",
Namespace = "string",
MetricName = "string",
Dimensions = list(
list(
Name = "string",
Value = "string"
)
),
Stat = "string",
SingleMetricAnomalyDetector = list(
AccountId = "string",
Namespace = "string",
MetricName = "string",
Dimensions = list(
list(
Name = "string",
Value = "string"
)
),
Stat = "string"
),
MetricMathAnomalyDetector = list(
MetricDataQueries = list(
list(
Id = "string",
MetricStat = list(
Metric = list(
Namespace = "string",
MetricName = "string",
Dimensions = list(
list(
Name = "string",
Value = "string"
)
)
),
Period = 123,
Stat = "string",
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",
Label = "string",
ReturnData = TRUE|FALSE,
Period = 123,
AccountId = "string"
)
)
)
)