Interface CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty.Jsii$Proxy
- Enclosing class:
- CfnAnomalyDetector
@Stability(Stable)
public static interface CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty
extends software.amazon.jsii.JsiiSerializable
Designates the CloudWatch metric and statistic that provides the time series the anomaly detector uses as input.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudwatch.*;
SingleMetricAnomalyDetectorProperty singleMetricAnomalyDetectorProperty = SingleMetricAnomalyDetectorProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.stat("stat")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAnomalyDetector.SingleMetricAnomalyDetectorPropertystatic final classAn implementation forCfnAnomalyDetector.SingleMetricAnomalyDetectorProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe metric dimensions to create the anomaly detection model for.default StringThe name of the metric to create the anomaly detection model for.default StringThe namespace of the metric to create the anomaly detection model for.default StringgetStat()The statistic to use for the metric and anomaly detection model.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDimensions
The metric dimensions to create the anomaly detection model for. -
getMetricName
The name of the metric to create the anomaly detection model for. -
getNamespace
The namespace of the metric to create the anomaly detection model for. -
getStat
The statistic to use for the metric and anomaly detection model. -
builder
-