Interface CfnScalingPolicy.PredictiveScalingCustomizedScalingMetricProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnScalingPolicy.PredictiveScalingCustomizedScalingMetricProperty.Jsii$Proxy
- Enclosing class:
- CfnScalingPolicy
@Stability(Stable)
public static interface CfnScalingPolicy.PredictiveScalingCustomizedScalingMetricProperty
extends software.amazon.jsii.JsiiSerializable
Contains scaling metric information for the
CustomizedScalingMetricSpecification property of the AWS::AutoScaling::ScalingPolicy PredictiveScalingMetricSpecification 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.autoscaling.*;
PredictiveScalingCustomizedScalingMetricProperty predictiveScalingCustomizedScalingMetricProperty = PredictiveScalingCustomizedScalingMetricProperty.builder()
.metricDataQueries(List.of(MetricDataQueryProperty.builder()
.id("id")
// the properties below are optional
.expression("expression")
.label("label")
.metricStat(MetricStatProperty.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
.unit("unit")
.build())
.returnData(false)
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnScalingPolicy.PredictiveScalingCustomizedScalingMetricProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()One or more metric data queries to provide the data points for a scaling metric.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMetricDataQueries
One or more metric data queries to provide the data points for a scaling metric.Use multiple metric data queries only if you are performing a math expression on returned data.
-
builder
@Stability(Stable) static CfnScalingPolicy.PredictiveScalingCustomizedScalingMetricProperty.Builder builder()
-