Interface CfnAnomalyDetector.MetricProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAnomalyDetector.MetricProperty.Jsii$Proxy
- Enclosing class:
- CfnAnomalyDetector
@Stability(Stable)
public static interface CfnAnomalyDetector.MetricProperty
extends software.amazon.jsii.JsiiSerializable
Represents a specific metric.
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.*;
MetricProperty metricProperty = MetricProperty.builder()
.metricName("metricName")
.namespace("namespace")
// the properties below are optional
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAnomalyDetector.MetricPropertystatic final classAn implementation forCfnAnomalyDetector.MetricProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMetricName
The name of the metric.This is a required field.
-
getNamespace
The namespace of the metric. -
getDimensions
The dimensions for the metric. -
builder
-