@Stability(value=Stable)
public static interface CfnAnomalyDetector.MetricMathAnomalyDetectorProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnAnomalyDetector.MetricMathAnomalyDetectorProperty.Builder
A builder for
CfnAnomalyDetector.MetricMathAnomalyDetectorProperty |
static class |
CfnAnomalyDetector.MetricMathAnomalyDetectorProperty.Jsii$Proxy
An implementation for
CfnAnomalyDetector.MetricMathAnomalyDetectorProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnAnomalyDetector.MetricMathAnomalyDetectorProperty.Builder |
builder() |
default Object |
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.
|
@Stability(value=Stable) @Nullable default Object getMetricDataQueries()
Each item in MetricDataQueries gets a metric or performs a math expression. One item in MetricDataQueries is the expression that provides the time series that the anomaly detector uses as input. Designate the expression by setting ReturnData to true for this object in the array. For all other expressions and metrics, set ReturnData to false . The designated expression must return a single time series.
@Stability(value=Stable) static CfnAnomalyDetector.MetricMathAnomalyDetectorProperty.Builder builder()
Copyright © 2023. All rights reserved.