Interface CfnScalingPolicy.IMetricProperty
- Namespace
- Amazon.CDK.AWS.AutoScaling
- Assembly
- Amazon.CDK.AWS.AutoScaling.dll
Represents a specific metric.
public interface CfnScalingPolicy.IMetricProperty
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AutoScaling;
var metricProperty = new MetricProperty {
MetricName = "metricName",
Namespace = "namespace",
// the properties below are optional
Dimensions = new [] { new MetricDimensionProperty {
Name = "name",
Value = "value"
} }
};
Remarks
Metric
is a property of the AWS::AutoScaling::ScalingPolicy MetricStat property type.
ExampleMetadata: fixture=_generated
Properties
Dimensions
The dimensions for the metric.
object? Dimensions { get; }
Property Value
Remarks
For the list of available dimensions, see the AWS documentation available from the table in AWS services that publish CloudWatch metrics in the Amazon CloudWatch User Guide .
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
MetricName
The name of the metric.
string MetricName { get; }
Property Value
Remarks
Namespace
The namespace of the metric.
string Namespace { get; }
Property Value
Remarks
For more information, see the table in AWS services that publish CloudWatch metrics in the Amazon CloudWatch User Guide .