Show / Hide Table of Contents

Class CfnScalingPolicyPropsMixin.PredictiveScalingMetricStatProperty

This structure defines the CloudWatch metric to return, along with the statistic and unit.

Inheritance
object
CfnScalingPolicyPropsMixin.PredictiveScalingMetricStatProperty
Implements
CfnScalingPolicyPropsMixin.IPredictiveScalingMetricStatProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.ApplicationAutoScaling
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnScalingPolicyPropsMixin.PredictiveScalingMetricStatProperty : CfnScalingPolicyPropsMixin.IPredictiveScalingMetricStatProperty
Syntax (vb)
Public Class CfnScalingPolicyPropsMixin.PredictiveScalingMetricStatProperty Implements CfnScalingPolicyPropsMixin.IPredictiveScalingMetricStatProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predictivescalingmetricstat.html

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.CfnPropertyMixins.AWS.ApplicationAutoScaling;

             var predictiveScalingMetricStatProperty = new PredictiveScalingMetricStatProperty {
                 Metric = new PredictiveScalingMetricProperty {
                     Dimensions = new [] { new PredictiveScalingMetricDimensionProperty {
                         Name = "name",
                         Value = "value"
                     } },
                     MetricName = "metricName",
                     Namespace = "namespace"
                 },
                 Stat = "stat",
                 Unit = "unit"
             };

Synopsis

Constructors

PredictiveScalingMetricStatProperty()

This structure defines the CloudWatch metric to return, along with the statistic and unit.

Properties

Metric

The CloudWatch metric to return, including the metric name, namespace, and dimensions.

Stat

The statistic to return.

Unit

The unit to use for the returned data points.

Constructors

PredictiveScalingMetricStatProperty()

This structure defines the CloudWatch metric to return, along with the statistic and unit.

public PredictiveScalingMetricStatProperty()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predictivescalingmetricstat.html

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.CfnPropertyMixins.AWS.ApplicationAutoScaling;

             var predictiveScalingMetricStatProperty = new PredictiveScalingMetricStatProperty {
                 Metric = new PredictiveScalingMetricProperty {
                     Dimensions = new [] { new PredictiveScalingMetricDimensionProperty {
                         Name = "name",
                         Value = "value"
                     } },
                     MetricName = "metricName",
                     Namespace = "namespace"
                 },
                 Stat = "stat",
                 Unit = "unit"
             };

Properties

Metric

The CloudWatch metric to return, including the metric name, namespace, and dimensions.

public object? Metric { get; set; }
Property Value

object

Remarks

To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predictivescalingmetricstat.html#cfn-applicationautoscaling-scalingpolicy-predictivescalingmetricstat-metric

Type union: either IResolvable or CfnScalingPolicyPropsMixin.IPredictiveScalingMetricProperty

Stat

The statistic to return.

public string? Stat { get; set; }
Property Value

string

Remarks

It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in Statistics in the Amazon CloudWatch User Guide .

The most commonly used metrics for predictive scaling are Average and Sum .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predictivescalingmetricstat.html#cfn-applicationautoscaling-scalingpolicy-predictivescalingmetricstat-stat

Unit

The unit to use for the returned data points.

public string? Unit { get; set; }
Property Value

string

Remarks

For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predictivescalingmetricstat.html#cfn-applicationautoscaling-scalingpolicy-predictivescalingmetricstat-unit

Implements

CfnScalingPolicyPropsMixin.IPredictiveScalingMetricStatProperty
Back to top Generated by DocFX