Interface CfnScalingPolicy.TargetTrackingMetricDataQueryProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnScalingPolicy.TargetTrackingMetricDataQueryProperty.Jsii$Proxy
Enclosing class:
CfnScalingPolicy

@Stability(Stable) public static interface CfnScalingPolicy.TargetTrackingMetricDataQueryProperty extends software.amazon.jsii.JsiiSerializable
The metric data to return.

Also defines whether this call is returning data for one metric only, or whether it is performing a math expression on the values of returned metric statistics to create a new time series. A time series is a series of data points, each of which is associated with a timestamp.

You can call for a single metric or perform math expressions on multiple metrics. Any expressions used in a metric specification must eventually return a single time series.

For more information and examples, see Create a target tracking scaling policy for Application Auto Scaling using metric math in the Application Auto Scaling User Guide .

TargetTrackingMetricDataQuery is a property of the AWS::ApplicationAutoScaling::ScalingPolicy CustomizedMetricSpecification property type.

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.applicationautoscaling.*;
 TargetTrackingMetricDataQueryProperty targetTrackingMetricDataQueryProperty = TargetTrackingMetricDataQueryProperty.builder()
         .expression("expression")
         .id("id")
         .label("label")
         .metricStat(TargetTrackingMetricStatProperty.builder()
                 .metric(TargetTrackingMetricProperty.builder()
                         .dimensions(List.of(TargetTrackingMetricDimensionProperty.builder()
                                 .name("name")
                                 .value("value")
                                 .build()))
                         .metricName("metricName")
                         .namespace("namespace")
                         .build())
                 .stat("stat")
                 .unit("unit")
                 .build())
         .returnData(false)
         .build();
 

See Also: