Interface MetricTargetTrackingProps
- All Superinterfaces:
BaseTargetTrackingProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
MetricTargetTrackingProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:57.428Z")
@Stability(Stable)
public interface MetricTargetTrackingProps
extends software.amazon.jsii.JsiiSerializable, BaseTargetTrackingProps
Properties for enabling tracking of an arbitrary metric.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; import software.amazon.awscdk.services.autoscaling.*; import software.amazon.awscdk.services.cloudwatch.*; 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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forMetricTargetTrackingProps
static final class
An implementation forMetricTargetTrackingProps
-
Method Summary
Methods inherited from interface software.amazon.awscdk.services.autoscaling.BaseTargetTrackingProps
getCooldown, getDisableScaleIn, getEstimatedInstanceWarmup
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMetric
Metric to track.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.
-
getTargetValue
Value to keep the metric around. -
builder
- Returns:
- a
MetricTargetTrackingProps.Builder
ofMetricTargetTrackingProps
-