Class: Aws::CloudWatch::Types::PutAnomalyDetectorInput

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-cloudwatch/types.rb

Overview

Note:

When making an API call, you may pass PutAnomalyDetectorInput data as a hash:

{
  namespace: "Namespace", # required
  metric_name: "MetricName", # required
  dimensions: [
    {
      name: "DimensionName", # required
      value: "DimensionValue", # required
    },
  ],
  stat: "AnomalyDetectorMetricStat", # required
  configuration: {
    excluded_time_ranges: [
      {
        start_time: Time.now, # required
        end_time: Time.now, # required
      },
    ],
    metric_timezone: "AnomalyDetectorMetricTimezone",
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#configurationTypes::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.


3127
3128
3129
3130
3131
3132
3133
3134
3135
# File 'lib/aws-sdk-cloudwatch/types.rb', line 3127

class PutAnomalyDetectorInput < Struct.new(
  :namespace,
  :metric_name,
  :dimensions,
  :stat,
  :configuration)
  SENSITIVE = []
  include Aws::Structure
end

#dimensionsArray<Types::Dimension>

The metric dimensions to create the anomaly detection model for.

Returns:


3127
3128
3129
3130
3131
3132
3133
3134
3135
# File 'lib/aws-sdk-cloudwatch/types.rb', line 3127

class PutAnomalyDetectorInput < Struct.new(
  :namespace,
  :metric_name,
  :dimensions,
  :stat,
  :configuration)
  SENSITIVE = []
  include Aws::Structure
end

#metric_nameString

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

Returns:

  • (String)

3127
3128
3129
3130
3131
3132
3133
3134
3135
# File 'lib/aws-sdk-cloudwatch/types.rb', line 3127

class PutAnomalyDetectorInput < Struct.new(
  :namespace,
  :metric_name,
  :dimensions,
  :stat,
  :configuration)
  SENSITIVE = []
  include Aws::Structure
end

#namespaceString

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

Returns:

  • (String)

3127
3128
3129
3130
3131
3132
3133
3134
3135
# File 'lib/aws-sdk-cloudwatch/types.rb', line 3127

class PutAnomalyDetectorInput < Struct.new(
  :namespace,
  :metric_name,
  :dimensions,
  :stat,
  :configuration)
  SENSITIVE = []
  include Aws::Structure
end

#statString

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

Returns:

  • (String)

3127
3128
3129
3130
3131
3132
3133
3134
3135
# File 'lib/aws-sdk-cloudwatch/types.rb', line 3127

class PutAnomalyDetectorInput < Struct.new(
  :namespace,
  :metric_name,
  :dimensions,
  :stat,
  :configuration)
  SENSITIVE = []
  include Aws::Structure
end