Paws::CloudWatch::PutAnomalyDetector - Arguments for method PutAnomalyDetector on Paws::CloudWatch


This class represents the parameters used for calling the method PutAnomalyDetector on the Amazon CloudWatch service. Use the attributes of this class as arguments to method PutAnomalyDetector.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutAnomalyDetector.


    my $monitoring = Paws->service('CloudWatch');
    my $PutAnomalyDetectorOutput = $monitoring->PutAnomalyDetector(
      MetricName    => 'MyMetricName',
      Namespace     => 'MyNamespace',
      Stat          => 'MyStat',
      Configuration => {
        ExcludedTimeRanges => [
            EndTime   => '1970-01-01T01:00:00',
            StartTime => '1970-01-01T01:00:00',

        ],    # OPTIONAL
        MetricTimezone => 'MyAnomalyDetectorMetricTimezone',    # OPTIONAL
      },    # OPTIONAL
      Dimensions => [
          Name  => 'MyDimensionName',     # min: 1, max: 255
          Value => 'MyDimensionValue',    # min: 1, max: 255

      ],                                  # OPTIONAL

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see


Configuration => Paws::CloudWatch::AnomalyDetectorConfiguration

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

Dimensions => ArrayRef[Paws::CloudWatch::Dimension]

The metric dimensions to create the anomaly detection model for.

REQUIRED MetricName => Str

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

REQUIRED Namespace => Str

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

REQUIRED Stat => Str

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


This class forms part of Paws, documenting arguments for method PutAnomalyDetector in Paws::CloudWatch


The source code is located here:

Please report bugs to: