ScalingPolicyTargetTrackingMetricStatArgs

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

This structure defines the CloudWatch metric to return, along with the statistic and unit. `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.

Constructors

constructor(metric: Output<ScalingPolicyTargetTrackingMetricArgs>? = null, stat: Output<String>? = null, unit: Output<String>? = null)

Properties

Link copied to clipboard

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

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

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