Interface CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedLoadMetricProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedLoadMetricProperty.Jsii$Proxy
- Enclosing class:
CfnScalingPolicyPropsMixin
@Stability(Stable)
public static interface CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedLoadMetricProperty
extends software.amazon.jsii.JsiiSerializable
Contains load metric information for the
CustomizedLoadMetricSpecification 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.mixins.preview.services.autoscaling.mixins.*;
PredictiveScalingCustomizedLoadMetricProperty predictiveScalingCustomizedLoadMetricProperty = PredictiveScalingCustomizedLoadMetricProperty.builder()
.metricDataQueries(List.of(MetricDataQueryProperty.builder()
.expression("expression")
.id("id")
.label("label")
.metricStat(MetricStatProperty.builder()
.metric(MetricProperty.builder()
.dimensions(List.of(MetricDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.build())
.stat("stat")
.unit("unit")
.build())
.returnData(false)
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnScalingPolicyPropsMixin.PredictiveScalingCustomizedLoadMetricProperty -
Method Summary
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 load metric.Use multiple metric data queries only if you are performing a math expression on returned data.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnScalingPolicyPropsMixin.MetricDataQueryProperty>- See Also:
-
builder
@Stability(Stable) static CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedLoadMetricProperty.Builder builder()
-