class Amazonite::CloudWatch::AnomalyDetectorConfiguration

Overview

The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude from use for training the model and the time zone to use for the metric.

Included Modules

Defined in:

cloudwatch/anomaly_detector_configuration.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(excluded_time_ranges : Array(Range) | Nil = nil, metric_timezone : String | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def excluded_time_ranges : Array(Range) | Nil #

An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.


[View source]
def excluded_time_ranges=(excluded_time_ranges : Array(Range) | Nil) #

An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def metric_timezone : String | Nil #

The time zone to use for the metric. This is useful to enable the model to automatically account for daylight savings time changes if the metric is sensitive to such time changes.

To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, see tz database.


[View source]
def metric_timezone=(metric_timezone : String | Nil) #

The time zone to use for the metric. This is useful to enable the model to automatically account for daylight savings time changes if the metric is sensitive to such time changes.

To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, see tz database.


[View source]
def validate! : Nil #

[View source]