class Amazonite::CloudWatch::SingleMetricAnomalyDetector

Overview

Designates the CloudWatch metric and statistic that provides the time series the anomaly detector uses as input. If you have enabled unified cross-account observability, and this account is a monitoring account, the metric can be in the same account or a source account.

Included Modules

Defined in:

cloudwatch/single_metric_anomaly_detector.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(account_id : String | Nil = nil, namespace : String | Nil = nil, metric_name : String | Nil = nil, dimensions : Array(Dimension) | Nil = nil, stat : String | Nil = nil) #

[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 account_id : String | Nil #

If the CloudWatch metric that provides the time series that the anomaly detector uses as input is in another account, specify that account ID here. If you omit this parameter, the current account is used.


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

If the CloudWatch metric that provides the time series that the anomaly detector uses as input is in another account, specify that account ID here. If you omit this parameter, the current account is used.


[View source]
def dimensions : Array(Dimension) | Nil #

The metric dimensions to create the anomaly detection model for.


[View source]
def dimensions=(dimensions : Array(Dimension) | Nil) #

The metric dimensions to create the anomaly detection model for.


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

See Object#hash(hasher)


def metric_name : String | Nil #

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


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

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


[View source]
def namespace : String | Nil #

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


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

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


[View source]
def stat : String | Nil #

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


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

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


[View source]
def validate! : Nil #

[View source]