public static final class MetricTargetTrackingProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MetricTargetTrackingProps
MetricTargetTrackingProps
MetricTargetTrackingProps.Builder, MetricTargetTrackingProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
Duration |
getCooldown()
Period after a scaling completes before another scaling activity can start.
|
java.lang.Boolean |
getDisableScaleIn()
Indicates whether scale in by the target tracking policy is disabled.
|
Duration |
getEstimatedInstanceWarmup()
Estimated time until a newly launched instance can send metrics to CloudWatch.
|
IMetric |
getMetric()
Metric to track.
|
java.lang.Number |
getTargetValue()
Value to keep the metric around.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final IMetric getMetric()
MetricTargetTrackingProps
The metric must represent a utilization, so that if it's higher than the target value, your ASG should scale out, and if it's lower it should scale in.
getMetric
in interface MetricTargetTrackingProps
public final java.lang.Number getTargetValue()
MetricTargetTrackingProps
getTargetValue
in interface MetricTargetTrackingProps
public final Duration getCooldown()
BaseTargetTrackingProps
Default: - The default cooldown configured on the AutoScalingGroup.
getCooldown
in interface BaseTargetTrackingProps
public final java.lang.Boolean getDisableScaleIn()
BaseTargetTrackingProps
If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the autoscaling group. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the group.
Default: false
getDisableScaleIn
in interface BaseTargetTrackingProps
public final Duration getEstimatedInstanceWarmup()
BaseTargetTrackingProps
Default: - Same as the cooldown.
getEstimatedInstanceWarmup
in interface BaseTargetTrackingProps
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()