Table Of Contents

Feedback

User Guide

First time using the AWS CLI? See the User Guide for help getting started.

[ aws . cloudwatch ]

put-anomaly-detector

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.

For more information, see CloudWatch Anomaly Detection .

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis

  put-anomaly-detector
--namespace <value>
--metric-name <value>
[--dimensions <value>]
--stat <value>
[--configuration <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]

Options

--namespace (string)

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

--metric-name (string)

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

--dimensions (list)

The metric dimensions to create the anomaly detection model for.

Shorthand Syntax:

Name=string,Value=string ...

JSON Syntax:

[
  {
    "Name": "string",
    "Value": "string"
  }
  ...
]

--stat (string)

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

--configuration (structure)

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

Shorthand Syntax:

ExcludedTimeRanges=[{StartTime=timestamp,EndTime=timestamp},{StartTime=timestamp,EndTime=timestamp}],MetricTimezone=string

JSON Syntax:

{
  "ExcludedTimeRanges": [
    {
      "StartTime": timestamp,
      "EndTime": timestamp
    }
    ...
  ],
  "MetricTimezone": "string"
}

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.

Output