class
Amazonite::CloudWatch::SingleMetricAnomalyDetector
- Amazonite::CloudWatch::SingleMetricAnomalyDetector
- Reference
- Object
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
- JSON::Serializable
Defined in:
cloudwatch/single_metric_anomaly_detector.crConstructors
- .new(pull : JSON::PullParser)
- .new(account_id : String | Nil = nil, namespace : String | Nil = nil, metric_name : String | Nil = nil, dimensions : Array(Dimension) | Nil = nil, stat : String | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#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.
-
#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.
-
#dimensions : Array(Dimension) | Nil
The metric dimensions to create the anomaly detection model for.
-
#dimensions=(dimensions : Array(Dimension) | Nil)
The metric dimensions to create the anomaly detection model for.
-
#hash(hasher)
See
Object#hash(hasher) -
#metric_name : String | Nil
The name of the metric to create the anomaly detection model for.
-
#metric_name=(metric_name : String | Nil)
The name of the metric to create the anomaly detection model for.
-
#namespace : String | Nil
The namespace of the metric to create the anomaly detection model for.
-
#namespace=(namespace : String | Nil)
The namespace of the metric to create the anomaly detection model for.
-
#stat : String | Nil
The statistic to use for the metric and anomaly detection model.
-
#stat=(stat : String | Nil)
The statistic to use for the metric and anomaly detection model.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
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.
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.
The metric dimensions to create the anomaly detection model for.
The metric dimensions to create the anomaly detection model for.
The name of the metric to create the anomaly detection model for.
The namespace of the metric to create the anomaly detection model for.
The namespace of the metric to create the anomaly detection model for.