Table of Contents

Class CfnScalingPolicy.CustomizedMetricSpecificationProperty

Namespace
Amazon.CDK.AWS.AutoScaling
Assembly
Amazon.CDK.AWS.AutoScaling.dll

Contains customized metric specification information for a target tracking scaling policy for Amazon EC2 Auto Scaling.

public class CfnScalingPolicy.CustomizedMetricSpecificationProperty : CfnScalingPolicy.ICustomizedMetricSpecificationProperty
Inheritance
CfnScalingPolicy.CustomizedMetricSpecificationProperty
Implements
Inherited Members

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 customizedMetricSpecificationProperty = new CustomizedMetricSpecificationProperty {
                 MetricName = "metricName",
                 Namespace = "namespace",
                 Statistic = "statistic",

                 // the properties below are optional
                 Dimensions = new [] { new MetricDimensionProperty {
                     Name = "name",
                     Value = "value"
                 } },
                 Unit = "unit"
             };

Remarks

To create your customized metric specification:

    For more information about CloudWatch, see Amazon CloudWatch Concepts .

    CustomizedMetricSpecification is a property of the AWS::AutoScaling::ScalingPolicy TargetTrackingConfiguration property type.

    Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html

    ExampleMetadata: fixture=_generated

    Constructors

    CustomizedMetricSpecificationProperty()

    public CustomizedMetricSpecificationProperty()

    Properties

    Dimensions

    The dimensions of the metric.

    public object? Dimensions { get; set; }

    Property Value

    object

    Remarks

    MetricName

    The name of the metric.

    public string MetricName { get; set; }

    Property Value

    string

    Remarks

    Namespace

    The namespace of the metric.

    public string Namespace { get; set; }

    Property Value

    string

    Remarks

    Statistic

    The statistic of the metric.

    public string Statistic { get; set; }

    Property Value

    string

    Remarks

    Unit

    The unit of the metric.

    public string? Unit { get; set; }

    Property Value

    string

    Remarks