Learn R Programming

paws.management (version 0.1.8)

cloudwatch_put_anomaly_detector: Creates an anomaly detection model for a CloudWatch metric

Description

Creates an anomaly detection model for a CloudWatch metric. You can use the model to display a band of expected normal values when the metric is graphed.

Usage

cloudwatch_put_anomaly_detector(Namespace, MetricName, Dimensions, Stat,
  Configuration)

Arguments

Namespace

[required] The namespace of the metric to create the anomaly detection model for.

MetricName

[required] The name of the metric to create the anomaly detection model for.

Dimensions

The metric dimensions to create the anomaly detection model for.

Stat

[required] The statistic to use for the metric and the anomaly detection model.

Configuration

The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model. You can specify as many as 10 time ranges.

The configuration can also include the time zone to use for the metric.

You can in

Request syntax

svc$put_anomaly_detector(
  Namespace = "string",
  MetricName = "string",
  Dimensions = list(
    list(
      Name = "string",
      Value = "string"
    )
  ),
  Stat = "string",
  Configuration = list(
    ExcludedTimeRanges = list(
      list(
        StartTime = as.POSIXct(
          "2015-01-01"
        ),
        EndTime = as.POSIXct(
          "2015-01-01"
        )
      )
    ),
    MetricTimezone = "string"
  )
)

Details

For more information, see CloudWatch Anomaly Detection.