Interface CfnScalingPolicy.TargetTrackingMetricStatProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnScalingPolicy.TargetTrackingMetricStatProperty.Jsii$Proxy
- Enclosing class:
CfnScalingPolicy
TargetTrackingMetricStat
is a property of the TargetTrackingMetricDataQuery object.
For more information about the CloudWatch terminology below, see Amazon CloudWatch concepts in the Amazon CloudWatch User Guide .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.autoscaling.*; TargetTrackingMetricStatProperty targetTrackingMetricStatProperty = TargetTrackingMetricStatProperty.builder() .metric(MetricProperty.builder() .metricName("metricName") .namespace("namespace") // the properties below are optional .dimensions(List.of(MetricDimensionProperty.builder() .name("name") .value("value") .build())) .build()) .stat("stat") // the properties below are optional .period(123) .unit("unit") .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnScalingPolicy.TargetTrackingMetricStatProperty
static final class
An implementation forCfnScalingPolicy.TargetTrackingMetricStatProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMetric
The metric to use.- See Also:
-
getStat
The statistic to return.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
.- See Also:
-
getPeriod
The period of the metric in seconds.The default value is 60. Accepted values are 10, 30, and 60. For high resolution metric, set the value to less than 60. For more information, see Create a target tracking policy using high-resolution metrics for faster response .
- See Also:
-
getUnit
The unit to use for the returned data points.For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference .
- See Also:
-
builder
-