Class CfnScalingPolicyPropsMixin.TargetTrackingMetricStatProperty
This structure defines the CloudWatch metric to return, along with the statistic and unit.
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.ApplicationAutoScaling
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnScalingPolicyPropsMixin.TargetTrackingMetricStatProperty : CfnScalingPolicyPropsMixin.ITargetTrackingMetricStatProperty
Syntax (vb)
Public Class CfnScalingPolicyPropsMixin.TargetTrackingMetricStatProperty Implements CfnScalingPolicyPropsMixin.ITargetTrackingMetricStatProperty
Remarks
TargetTrackingMetricStat is a property of the AWS::ApplicationAutoScaling::ScalingPolicy TargetTrackingMetricDataQuery property type.
For more information about the CloudWatch terminology below, see Amazon CloudWatch concepts in the Amazon CloudWatch User Guide .
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 targetTrackingMetricStatProperty = new TargetTrackingMetricStatProperty {
Metric = new TargetTrackingMetricProperty {
Dimensions = new [] { new TargetTrackingMetricDimensionProperty {
Name = "name",
Value = "value"
} },
MetricName = "metricName",
Namespace = "namespace"
},
Stat = "stat",
Unit = "unit"
};
Synopsis
Constructors
| TargetTrackingMetricStatProperty() | 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
TargetTrackingMetricStatProperty()
This structure defines the CloudWatch metric to return, along with the statistic and unit.
public TargetTrackingMetricStatProperty()
Remarks
TargetTrackingMetricStat is a property of the AWS::ApplicationAutoScaling::ScalingPolicy TargetTrackingMetricDataQuery property type.
For more information about the CloudWatch terminology below, see Amazon CloudWatch concepts in the Amazon CloudWatch User Guide .
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 targetTrackingMetricStatProperty = new TargetTrackingMetricStatProperty {
Metric = new TargetTrackingMetricProperty {
Dimensions = new [] { new TargetTrackingMetricDimensionProperty {
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
Remarks
To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics .
Type union: either IResolvable or CfnScalingPolicyPropsMixin.ITargetTrackingMetricProperty
Stat
The statistic to return.
public string? Stat { get; set; }
Property Value
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 metric for scaling is Average .
Unit
The unit to use for the returned data points.
public string? Unit { get; set; }
Property Value
Remarks
For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference .