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.
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.
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() .accountId("accountId") .dimensions(List.of(DimensionProperty.builder() .name("name") .value("value") .build())) .metricName("metricName") .namespace("namespace") .stat("stat") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnAnomalyDetector.SingleMetricAnomalyDetectorProperty
static final class
An implementation forCfnAnomalyDetector.SingleMetricAnomalyDetectorProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
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.default Object
The metric dimensions to create the anomaly detection model for.default String
The name of the metric to create the anomaly detection model for.default String
The namespace of the metric to create the anomaly detection model for.default String
getStat()
The statistic to use for the metric and anomaly detection model.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccountId
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.
- See Also:
-
getDimensions
The metric dimensions to create the anomaly detection model for.- See Also:
-
getMetricName
The name of the metric to create the anomaly detection model for.- See Also:
-
getNamespace
The namespace of the metric to create the anomaly detection model for.- See Also:
-
getStat
The statistic to use for the metric and anomaly detection model.- See Also:
-
builder
-