@Stability(value=Stable)
public static interface CfnAnomalyDetector.DimensionProperty
extends software.amazon.jsii.JsiiSerializable
Because dimensions are part of the unique identifier for a metric, whenever you add a unique name/value pair to one of your metrics, you are creating a new variation of that metric. For example, many Amazon EC2 metrics publish InstanceId as a dimension name, and the actual instance ID as the value for that dimension.
You can assign up to 10 dimensions to a 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.*;
DimensionProperty dimensionProperty = DimensionProperty.builder()
.name("name")
.value("value")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnAnomalyDetector.DimensionProperty.Builder
A builder for
CfnAnomalyDetector.DimensionProperty |
static class |
CfnAnomalyDetector.DimensionProperty.Jsii$Proxy
An implementation for
CfnAnomalyDetector.DimensionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnAnomalyDetector.DimensionProperty.Builder |
builder() |
String |
getName()
The name of the dimension.
|
String |
getValue()
The value of the dimension.
|
@Stability(value=Stable) @NotNull String getName()
@Stability(value=Stable) @NotNull String getValue()
Dimension values must contain only ASCII characters and must include at least one non-whitespace character.
@Stability(value=Stable) static CfnAnomalyDetector.DimensionProperty.Builder builder()
Copyright © 2022. All rights reserved.