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 use TargetTrackingMetricDataQuery structures with a PutScalingPolicy operation when you specify a TargetTrackingConfiguration in the request.

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, see the Create a target tracking scaling policy for Amazon EC2 Auto Scaling using metric math in the Amazon EC2 Auto Scaling 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.*;
 TargetTrackingMetricDataQueryProperty targetTrackingMetricDataQueryProperty = TargetTrackingMetricDataQueryProperty.builder()
         .id("id")
         // the properties below are optional
         .expression("expression")
         .label("label")
         .metricStat(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())
         .period(123)
         .returnData(false)
         .build();
 

See Also: