Enum PredefinedMetric
java.lang.Object
java.lang.Enum<PredefinedMetric>
software.amazon.awscdk.services.applicationautoscaling.PredefinedMetric
- All Implemented Interfaces:
Serializable
,Comparable<PredefinedMetric>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:37.368Z")
@Stability(Stable)
public enum PredefinedMetric
extends Enum<PredefinedMetric>
One of the predefined autoscaling metrics.
Example:
import software.amazon.awscdk.services.lambda.*; Code code; Function handler = Function.Builder.create(this, "MyFunction") .runtime(Runtime.PYTHON_3_7) .handler("index.handler") .code(code) .reservedConcurrentExecutions(2) .build(); Version fnVer = handler.getCurrentVersion(); ScalableTarget target = ScalableTarget.Builder.create(this, "ScalableTarget") .serviceNamespace(ServiceNamespace.LAMBDA) .maxCapacity(100) .minCapacity(10) .resourceId(String.format("function:%s:%s", handler.getFunctionName(), fnVer.getVersion())) .scalableDimension("lambda:function:ProvisionedConcurrency") .build(); target.scaleToTrackMetric("PceTracking", BasicTargetTrackingScalingPolicyProps.builder() .targetValue(0.9) .predefinedMetric(PredefinedMetric.LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION) .build());
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionALB_REQUEST_COUNT_PER_TARGET.Average percentage of instances in an AppStream fleet that are being used.Percentage of provisioned read capacity units utilized by a Keyspaces table.Percentage of provisioned write capacity units utilized by a Keyspaces table.Percentage of provisioned inference units utilized by a Comprehend endpoint.Deprecated.Percentage of provisioned read capacity units consumed by a DynamoDB table.Percentage of provisioned write capacity units consumed by a DynamoDB table.EC2_SPOT_FLEET_REQUEST_AVERAGE_CPU_UTILIZATION.EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_IN.EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_OUT.ECS_SERVICE_AVERAGE_CPU_UTILIZATION.ECS_SERVICE_AVERAGE_MEMORY_UTILIZATION.ELASTIC_CACHE_REPLICA_ENGINE_CPU_UTILIZATION.ELASTIC_CACHE_PRIMARY_ENGINE_CPU_UTILIZATION.ELASTIC_CACHE_REPLICA_ENGINE_CPU_UTILIZATION.KAFKA_BROKER_STORAGE_UTILIZATION.LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION.Average CPU Utilization of read replica instances in a Neptune DB cluster.RDS_READER_AVERAGE_CPU_UTILIZATION.RDS_READER_AVERAGE_DATABASE_CONNECTIONS.SAGEMAKER_VARIANT_INVOCATIONS_PER_INSTANCE. -
Method Summary
Modifier and TypeMethodDescriptionstatic PredefinedMetric
Returns the enum constant of this type with the specified name.static PredefinedMetric[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
APPSTREAM_AVERAGE_CAPACITY_UTILIZATION
Average percentage of instances in an AppStream fleet that are being used. -
CASSANDRA_READ_CAPACITY_UTILIZATION
Percentage of provisioned read capacity units utilized by a Keyspaces table. -
CASSANDRA_WRITE_CAPACITY_UTILIZATION
Percentage of provisioned write capacity units utilized by a Keyspaces table. -
COMPREHEND_INFERENCE_UTILIZATION
Percentage of provisioned inference units utilized by a Comprehend endpoint. -
NEPTURE_READER_AVERAGE_CPU_UTILIZATION
Average CPU Utilization of read replica instances in a Neptune DB cluster. -
DYNAMODB_READ_CAPACITY_UTILIZATION
Percentage of provisioned read capacity units consumed by a DynamoDB table. -
DYNAMODB_WRITE_CAPACITY_UTILIZATION
Percentage of provisioned write capacity units consumed by a DynamoDB table.Suffix
dummy
is necessary due to jsii bug (https://github.com/aws/jsii/issues/2782). Duplicate values will be dropped, so this suffix is added as a workaround. The value will be replaced when this enum is used. -
DYANMODB_WRITE_CAPACITY_UTILIZATION
@Stability(Deprecated) @Deprecated public static final PredefinedMetric DYANMODB_WRITE_CAPACITY_UTILIZATIONDeprecated.usePredefinedMetric.DYNAMODB_WRITE_CAPACITY_UTILIZATION
(deprecated) DYANMODB_WRITE_CAPACITY_UTILIZATION. -
ALB_REQUEST_COUNT_PER_TARGET
ALB_REQUEST_COUNT_PER_TARGET. -
RDS_READER_AVERAGE_CPU_UTILIZATION
RDS_READER_AVERAGE_CPU_UTILIZATION. -
RDS_READER_AVERAGE_DATABASE_CONNECTIONS
RDS_READER_AVERAGE_DATABASE_CONNECTIONS. -
EC2_SPOT_FLEET_REQUEST_AVERAGE_CPU_UTILIZATION
@Stability(Stable) public static final PredefinedMetric EC2_SPOT_FLEET_REQUEST_AVERAGE_CPU_UTILIZATIONEC2_SPOT_FLEET_REQUEST_AVERAGE_CPU_UTILIZATION. -
EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_IN
EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_IN. -
EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_OUT
EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_OUT. -
SAGEMAKER_VARIANT_INVOCATIONS_PER_INSTANCE
SAGEMAKER_VARIANT_INVOCATIONS_PER_INSTANCE. -
ECS_SERVICE_AVERAGE_CPU_UTILIZATION
ECS_SERVICE_AVERAGE_CPU_UTILIZATION. -
ECS_SERVICE_AVERAGE_MEMORY_UTILIZATION
ECS_SERVICE_AVERAGE_MEMORY_UTILIZATION. -
LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION
LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION. -
KAFKA_BROKER_STORAGE_UTILIZATION
KAFKA_BROKER_STORAGE_UTILIZATION. -
ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION
ELASTIC_CACHE_PRIMARY_ENGINE_CPU_UTILIZATION. -
ELASTICACHE_REPLICA_ENGINE_CPU_UTILIZATION
ELASTIC_CACHE_REPLICA_ENGINE_CPU_UTILIZATION. -
ELASTICACHE_DATABASE_MEMORY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE
@Stability(Stable) public static final PredefinedMetric ELASTICACHE_DATABASE_MEMORY_USAGE_COUNTED_FOR_EVICT_PERCENTAGEELASTIC_CACHE_REPLICA_ENGINE_CPU_UTILIZATION.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
PredefinedMetric.DYNAMODB_WRITE_CAPACITY_UTILIZATION