Interface CfnAnomalyDetector.MetricMathAnomalyDetectorProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAnomalyDetector.MetricMathAnomalyDetectorProperty.Jsii$Proxy
- Enclosing class:
CfnAnomalyDetector
@Stability(Stable)
public static interface CfnAnomalyDetector.MetricMathAnomalyDetectorProperty
extends software.amazon.jsii.JsiiSerializable
Indicates the CloudWatch math expression that provides the time series the anomaly detector uses as input.
The designated math expression must return a single time series.
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.*; MetricMathAnomalyDetectorProperty metricMathAnomalyDetectorProperty = MetricMathAnomalyDetectorProperty.builder() .metricDataQueries(List.of(MetricDataQueryProperty.builder() .id("id") // the properties below are optional .accountId("accountId") .expression("expression") .label("label") .metricStat(MetricStatProperty.builder() .metric(MetricProperty.builder() .metricName("metricName") .namespace("namespace") // the properties below are optional .dimensions(List.of(DimensionProperty.builder() .name("name") .value("value") .build())) .build()) .period(123) .stat("stat") // the properties below are optional .unit("unit") .build()) .period(123) .returnData(false) .build())) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnAnomalyDetector.MetricMathAnomalyDetectorProperty
static final class
An implementation forCfnAnomalyDetector.MetricMathAnomalyDetectorProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMetricDataQueries
An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression.Each item in
MetricDataQueries
gets a metric or performs a math expression. One item inMetricDataQueries
is the expression that provides the time series that the anomaly detector uses as input. Designate the expression by settingReturnData
totrue
for this object in the array. For all other expressions and metrics, setReturnData
tofalse
. The designated expression must return a single time series.- See Also:
-
builder
-