@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-25T18:29:08.860Z") public interface MetricTargetTrackingProps extends 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.services.autoscaling.*; import software.amazon.awscdk.services.cloudwatch.*; import software.amazon.awscdk.core.*; Metric metric; MetricTargetTrackingProps metricTargetTrackingProps = MetricTargetTrackingProps.builder() .metric(metric) .targetValue(123) // the properties below are optional .cooldown(Duration.minutes(30)) .disableScaleIn(false) .estimatedInstanceWarmup(Duration.minutes(30)) .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()
Metric to track.
|
java.lang.Number |
getTargetValue()
Value to keep the metric around.
|
getCooldown, getDisableScaleIn, getEstimatedInstanceWarmup
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.
java.lang.Number getTargetValue()
static MetricTargetTrackingProps.Builder builder()
builder
in interface BaseTargetTrackingProps
MetricTargetTrackingProps.Builder
of MetricTargetTrackingProps