@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:07.915Z") @Stability(value=Experimental) 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.core.*;
import software.amazon.awscdk.services.cloudwatch.*;
import software.amazon.awscdk.services.ecs.*;
Duration duration;
Metric metric;
TrackCustomMetricProps trackCustomMetricProps = TrackCustomMetricProps.builder()
.metric(metric)
.targetValue(123)
// the properties below are optional
.disableScaleIn(false)
.policyName("policyName")
.scaleInCooldown(duration)
.scaleOutCooldown(duration)
.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()
(experimental) The custom CloudWatch metric to track.
|
Number |
getTargetValue()
(experimental) The target value for the custom CloudWatch metric.
|
getDisableScaleIn, getPolicyName, getScaleInCooldown, getScaleOutCooldown@Stability(value=Experimental) @NotNull IMetric getMetric()
The metric must represent utilization; that is, you will always get the following behavior:
@Stability(value=Experimental) @NotNull Number getTargetValue()
@Stability(value=Experimental) static TrackCustomMetricProps.Builder builder()
builder in interface BaseTargetTrackingPropsTrackCustomMetricProps.Builder of TrackCustomMetricPropsCopyright © 2022. All rights reserved.