@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-25T18:29:10.767Z") public interface TrackCustomMetricProps 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.cloudwatch.*; import software.amazon.awscdk.services.ecs.*; import software.amazon.awscdk.core.*; 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.
|
java.lang.Number |
getTargetValue()
The target value for the custom CloudWatch metric.
|
getDisableScaleIn, getPolicyName, getScaleInCooldown, getScaleOutCooldown
IMetric getMetric()
The metric must represent utilization; that is, you will always get the following behavior:
java.lang.Number getTargetValue()
static TrackCustomMetricProps.Builder builder()
builder
in interface BaseTargetTrackingProps
TrackCustomMetricProps.Builder
of TrackCustomMetricProps