@Stability(value=Experimental) @Internal public static final class MetricTargetTrackingProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MetricTargetTrackingProps
MetricTargetTrackingPropssoftware.amazon.jsii.JsiiObject.InitializationModeMetricTargetTrackingProps.Builder, MetricTargetTrackingProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(IMetric metric,
Number targetValue,
Duration cooldown,
Boolean disableScaleIn,
Duration estimatedInstanceWarmup)
Constructor that initializes the object based on literal property values passed by the
MetricTargetTrackingProps.Builder. |
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(Object o) |
Duration |
getCooldown()
(experimental) Period after a scaling completes before another scaling activity can start.
|
Boolean |
getDisableScaleIn()
(experimental) Indicates whether scale in by the target tracking policy is disabled.
|
Duration |
getEstimatedInstanceWarmup()
(experimental) Estimated time until a newly launched instance can send metrics to CloudWatch.
|
IMetric |
getMetric()
(experimental) Metric to track.
|
Number |
getTargetValue()
(experimental) Value to keep the metric around.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.public final IMetric getMetric()
MetricTargetTrackingPropsThe 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 MetricTargetTrackingPropspublic final Number getTargetValue()
MetricTargetTrackingPropsgetTargetValue in interface MetricTargetTrackingPropspublic final Duration getCooldown()
BaseTargetTrackingPropsDefault: - The default cooldown configured on the AutoScalingGroup.
getCooldown in interface BaseTargetTrackingPropspublic final Boolean getDisableScaleIn()
BaseTargetTrackingPropsIf 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 BaseTargetTrackingPropspublic final Duration getEstimatedInstanceWarmup()
BaseTargetTrackingPropsDefault: - Same as the cooldown.
getEstimatedInstanceWarmup in interface BaseTargetTrackingProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.