interface DimensionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudWatch.Mixins.CfnAnomalyDetectorPropsMixin.DimensionProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudwatch/mixins#CfnAnomalyDetectorPropsMixin_DimensionProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudwatch.mixins.CfnAnomalyDetectorPropsMixin.DimensionProperty |
Python | aws_cdk.mixins_preview.aws_cloudwatch.mixins.CfnAnomalyDetectorPropsMixin.DimensionProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudwatch » mixins » CfnAnomalyDetectorPropsMixin » DimensionProperty |
A dimension is a name/value pair that is part of the identity of a metric.
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 30 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 { mixins as cloudwatch_mixins } from '@aws-cdk/mixins-preview/aws-cloudwatch';
const dimensionProperty: cloudwatch_mixins.CfnAnomalyDetectorPropsMixin.DimensionProperty = {
name: 'name',
value: 'value',
};
Properties
| Name | Type | Description |
|---|---|---|
| name? | string | The name of the dimension. |
| value? | string | The value of the dimension. |
name?
Type:
string
(optional)
The name of the dimension.
value?
Type:
string
(optional)
The value of the dimension.
Dimension values must contain only ASCII characters and must include at least one non-whitespace character. ASCII control characters are not supported as part of dimension values.

.NET
Go
Java
Python
TypeScript