ScalingPolicyTargetTrackingMetricStatArgs

data class ScalingPolicyTargetTrackingMetricStatArgs(val metric: Output<ScalingPolicyMetricArgs>, val period: Output<Int>? = null, val stat: Output<String>, val unit: Output<String>? = null) : ConvertibleToJava<ScalingPolicyTargetTrackingMetricStatArgs>

Constructors

constructor(metric: Output<ScalingPolicyMetricArgs>, period: Output<Int>? = null, stat: Output<String>, unit: Output<String>? = null)

Properties

Link copied to clipboard

The metric to use.

Link copied to clipboard
val period: Output<Int>? = null

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 .

Link copied to clipboard
val stat: Output<String>

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 .

Link copied to clipboard
val unit: Output<String>? = null

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 .

Functions

Link copied to clipboard
open override fun toJava(): ScalingPolicyTargetTrackingMetricStatArgs