@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.384Z") @Stability(value=Stable) public interface BasicStepScalingPolicyProps extends software.amazon.jsii.JsiiSerializable
ScalableAttribute capacity;
Metric cpuUtilization;
capacity.scaleOnMetric("ScaleToCPU", BasicStepScalingPolicyProps.builder()
.metric(cpuUtilization)
.scalingSteps(List.of(ScalingInterval.builder().upper(10).change(-1).build(), ScalingInterval.builder().lower(50).change(+1).build(), ScalingInterval.builder().lower(70).change(+3).build()))
// Change this to AdjustmentType.PercentChangeInCapacity to interpret the
// 'change' numbers before as percentages instead of capacity counts.
.adjustmentType(AdjustmentType.CHANGE_IN_CAPACITY)
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
BasicStepScalingPolicyProps.Builder
A builder for
BasicStepScalingPolicyProps |
static class |
BasicStepScalingPolicyProps.Jsii$Proxy
An implementation for
BasicStepScalingPolicyProps |
| Modifier and Type | Method and Description |
|---|---|
static BasicStepScalingPolicyProps.Builder |
builder() |
default AdjustmentType |
getAdjustmentType()
How the adjustment numbers inside 'intervals' are interpreted.
|
default Duration |
getCooldown()
Grace period after scaling activity.
|
default Number |
getDatapointsToAlarm()
The number of data points out of the evaluation periods that must be breaching to trigger a scaling action.
|
default Number |
getEvaluationPeriods()
How many evaluation periods of the metric to wait before triggering a scaling action.
|
IMetric |
getMetric()
Metric to scale on.
|
default MetricAggregationType |
getMetricAggregationType()
Aggregation to apply to all data points over the evaluation periods.
|
default Number |
getMinAdjustmentMagnitude()
Minimum absolute number to adjust capacity with as result of percentage scaling.
|
List<ScalingInterval> |
getScalingSteps()
The intervals for scaling.
|
@Stability(value=Stable) @NotNull IMetric getMetric()
@Stability(value=Stable) @NotNull List<ScalingInterval> getScalingSteps()
Maps a range of metric values to a particular scaling behavior.
@Stability(value=Stable) @Nullable default AdjustmentType getAdjustmentType()
Default: ChangeInCapacity
@Stability(value=Stable) @Nullable default Duration getCooldown()
Subsequent scale outs during the cooldown period are squashed so that only the biggest scale out happens.
Subsequent scale ins during the cooldown period are ignored.
Default: No cooldown period
@Stability(value=Stable) @Nullable default Number getDatapointsToAlarm()
Creates an "M out of N" alarm, where this property is the M and the value set for
evaluationPeriods is the N value.
Only has meaning if evaluationPeriods != 1.
Default: `evaluationPeriods`
@Stability(value=Stable) @Nullable default Number getEvaluationPeriods()
Raising this value can be used to smooth out the metric, at the expense of slower response times.
If datapointsToAlarm is not set, then all data points in the evaluation period
must meet the criteria to trigger a scaling action.
Default: 1
@Stability(value=Stable) @Nullable default MetricAggregationType getMetricAggregationType()
Only has meaning if evaluationPeriods != 1.
Default: - The statistic from the metric if applicable (MIN, MAX, AVERAGE), otherwise AVERAGE.
@Stability(value=Stable) @Nullable default Number getMinAdjustmentMagnitude()
Only when using AdjustmentType = PercentChangeInCapacity, this number controls the minimum absolute effect size.
Default: No minimum scaling effect
@Stability(value=Stable) static BasicStepScalingPolicyProps.Builder builder()
Copyright © 2022. All rights reserved.