Skip to content

Delete Anomaly Detector

cloudwatch_delete_anomaly_detector R Documentation

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(Namespace, MetricName, Dimensions,
  Stat, SingleMetricAnomalyDetector, MetricMathAnomalyDetector)

Arguments

Namespace

The namespace associated with the anomaly detection model to delete.

MetricName

The metric name associated with the anomaly detection model to delete.

Dimensions

The metric dimensions associated with the anomaly detection model to delete.

Stat

The statistic associated with the anomaly detection model to delete.

SingleMetricAnomalyDetector

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 MetricMathAnomalyDetector parameters of DeleteAnomalyDetectorInput

Instead, specify the single metric anomaly detector attributes as part of the SingleMetricAnomalyDetector property.

MetricMathAnomalyDetector

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 SingleMetricAnomalyDetector parameters of DeleteAnomalyDetectorInput

Instead, specify the metric math anomaly detector attributes as part of the MetricMathAnomalyDetector property.

Value

An empty list.

Request syntax

svc$delete_anomaly_detector(
  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"
      )
    )
  )
)