@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.767Z") @Stability(value=Stable) public interface TrackCustomMetricProps 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.*;
import software.amazon.awscdk.services.cloudwatch.*;
import software.amazon.awscdk.services.ecs.*;
Metric metric;
TrackCustomMetricProps trackCustomMetricProps = TrackCustomMetricProps.builder()
.metric(metric)
.targetValue(123)
// the properties below are optional
.disableScaleIn(false)
.policyName("policyName")
.scaleInCooldown(Duration.minutes(30))
.scaleOutCooldown(Duration.minutes(30))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
TrackCustomMetricProps.Builder
A builder for
TrackCustomMetricProps |
static class |
TrackCustomMetricProps.Jsii$Proxy
An implementation for
TrackCustomMetricProps |
| Modifier and Type | Method and Description |
|---|---|
static TrackCustomMetricProps.Builder |
builder() |
IMetric |
getMetric()
The custom CloudWatch metric to track.
|
Number |
getTargetValue()
The target value for the custom CloudWatch metric.
|
getDisableScaleIn, getPolicyName, getScaleInCooldown, getScaleOutCooldown@Stability(value=Stable) @NotNull IMetric getMetric()
The metric must represent utilization; that is, you will always get the following behavior:
@Stability(value=Stable) @NotNull Number getTargetValue()
@Stability(value=Stable) static TrackCustomMetricProps.Builder builder()
builder in interface BaseTargetTrackingPropsTrackCustomMetricProps.Builder of TrackCustomMetricPropsCopyright © 2022. All rights reserved.