Interface CfnAnomalyDetector.IDimensionProperty
A dimension is a name/value pair that is part of the identity of a metric.
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public interface IDimensionProperty
Syntax (vb)
Public Interface IDimensionProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudWatch;
var dimensionProperty = new DimensionProperty {
Name = "name",
Value = "value"
};
Synopsis
Properties
Name | The name of the dimension. |
Value | The value of the dimension. |
Properties
Name
The name of the dimension.
string Name { get; }
Property Value
System.String
Remarks
Value
The value of the dimension.
string Value { get; }
Property Value
System.String
Remarks
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.