@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:01.378Z") @Stability(value=Experimental) public interface MetricTargetTrackingProps extends software.amazon.jsii.JsiiSerializable, BaseTargetTrackingProps
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.services.autoscaling.*;
import software.amazon.awscdk.services.cloudwatch.*;
Duration duration;
Metric metric;
MetricTargetTrackingProps metricTargetTrackingProps = MetricTargetTrackingProps.builder()
.metric(metric)
.targetValue(123)
// the properties below are optional
.cooldown(duration)
.disableScaleIn(false)
.estimatedInstanceWarmup(duration)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
MetricTargetTrackingProps.Builder
A builder for
MetricTargetTrackingProps |
static class |
MetricTargetTrackingProps.Jsii$Proxy
An implementation for
MetricTargetTrackingProps |
| Modifier and Type | Method and Description |
|---|---|
static MetricTargetTrackingProps.Builder |
builder() |
IMetric |
getMetric()
(experimental) Metric to track.
|
Number |
getTargetValue()
(experimental) Value to keep the metric around.
|
getCooldown, getDisableScaleIn, getEstimatedInstanceWarmup@Stability(value=Experimental) @NotNull IMetric getMetric()
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.
@Stability(value=Experimental) @NotNull Number getTargetValue()
@Stability(value=Experimental) static MetricTargetTrackingProps.Builder builder()
builder in interface BaseTargetTrackingPropsMetricTargetTrackingProps.Builder of MetricTargetTrackingPropsCopyright © 2022. All rights reserved.