delete_anomaly_detector
¶
delete_anomaly_detector(
*,
config_overrides: Optional[CloudWatchClientConfig] = None,
anomaly_detector_id: Optional[AnomalyDetectorId] = None,
namespace: Optional[Namespace] = None,
metric_name: Optional[MetricName] = None,
dimensions: Optional[Dimensions] = None,
stat: Optional[AnomalyDetectorMetricStat] = None,
single_metric_anomaly_detector: Optional[SingleMetricAnomalyDetector] = None,
metric_math_anomaly_detector: Optional[MetricMathAnomalyDetector] = None,
) -> DeleteAnomalyDetectorOutput
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.
Parameters:
-
anomaly_detector_id(Optional[AnomalyDetectorId], default:None) –Specifies 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.
-
namespace(Optional[Namespace], default:None) –The namespace associated with the anomaly detection model to delete.
-
metric_name(Optional[MetricName], default:None) –The metric name associated with the anomaly detection model to delete.
-
dimensions(Optional[Dimensions], default:None) –The metric dimensions associated with the anomaly detection model to delete.
-
stat(Optional[AnomalyDetectorMetricStat], default:None) –The statistic associated with the anomaly detection model to delete.
-
single_metric_anomaly_detector(Optional[SingleMetricAnomalyDetector], default:None) –A single metric anomaly detector to be deleted.
When using
SingleMetricAnomalyDetector, you cannot include the following parameters in the same operation:-
Dimensions, -
MetricName -
Namespace -
Stat -
the
MetricMathAnomalyDetectorparameters ofDeleteAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part of the
SingleMetricAnomalyDetectorproperty. -
-
metric_math_anomaly_detector(Optional[MetricMathAnomalyDetector], default:None) –The metric math anomaly detector to be deleted.
When using
MetricMathAnomalyDetector, you cannot include following parameters in the same operation:-
Dimensions, -
MetricName -
Namespace -
Stat -
the
SingleMetricAnomalyDetectorparameters ofDeleteAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of the
MetricMathAnomalyDetectorproperty. -
Raises:
-
InternalServiceFault–Request processing has failed due to some unknown error, exception, or failure.
-
InvalidParameterCombinationException–Parameters were used together that cannot be used together.
-
InvalidParameterValueException–The value of an input parameter is bad or out-of-range.
-
MissingRequiredParameterException–An input parameter that is required is missing.
-
ResourceNotFoundException–The named resource does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudwatch/_services/cloud_watch.py
544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 | |