Table of Contents

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

Properties

Dimensions

The dimensions for the metric.

object? Dimensions { get; }

Property Value

object

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.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-metric.html#cfn-autoscaling-scalingpolicy-metric-dimensions

MetricName

The name of the metric.

string MetricName { get; }

Property Value

string

Remarks

Namespace

The namespace of the metric.

string Namespace { get; }

Property Value

string

Remarks