software.amazon.awscdk.services.applicationautoscaling.PredefinedMetric Maven / Gradle / Ivy
Show all versions of applicationautoscaling Show documentation
package software.amazon.awscdk.services.applicationautoscaling;
/**
* 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());
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.72.0 (build 4b8828b)", date = "2022-12-28T21:57:08.296Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.applicationautoscaling.$Module.class, fqn = "@aws-cdk/aws-applicationautoscaling.PredefinedMetric")
public enum PredefinedMetric {
/**
* Average percentage of instances in an AppStream fleet that are being used.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
APPSTREAM_AVERAGE_CAPACITY_UTILIZATION,
/**
* Percentage of provisioned read capacity units utilized by a Keyspaces table.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
CASSANDRA_READ_CAPACITY_UTILIZATION,
/**
* Percentage of provisioned write capacity units utilized by a Keyspaces table.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
CASSANDRA_WRITE_CAPACITY_UTILIZATION,
/**
* Percentage of provisioned inference units utilized by a Comprehend endpoint.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
COMPREHEND_INFERENCE_UTILIZATION,
/**
* Average CPU Utilization of read replica instances in a Neptune DB cluster.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
NEPTURE_READER_AVERAGE_CPU_UTILIZATION,
/**
* Percentage of provisioned read capacity units consumed by a DynamoDB table.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
DYNAMODB_READ_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.
*
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
DYNAMODB_WRITE_CAPACITY_UTILIZATION,
/**
* (deprecated) DYANMODB_WRITE_CAPACITY_UTILIZATION.
*
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
* @deprecated use `PredefinedMetric.DYNAMODB_WRITE_CAPACITY_UTILIZATION`
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated)
@Deprecated
DYANMODB_WRITE_CAPACITY_UTILIZATION,
/**
* ALB_REQUEST_COUNT_PER_TARGET.
*
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
ALB_REQUEST_COUNT_PER_TARGET,
/**
* RDS_READER_AVERAGE_CPU_UTILIZATION.
*
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
RDS_READER_AVERAGE_CPU_UTILIZATION,
/**
* RDS_READER_AVERAGE_DATABASE_CONNECTIONS.
*
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
RDS_READER_AVERAGE_DATABASE_CONNECTIONS,
/**
* EC2_SPOT_FLEET_REQUEST_AVERAGE_CPU_UTILIZATION.
*
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
EC2_SPOT_FLEET_REQUEST_AVERAGE_CPU_UTILIZATION,
/**
* EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_IN.
*
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_IN,
/**
* EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_OUT.
*
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_OUT,
/**
* SAGEMAKER_VARIANT_INVOCATIONS_PER_INSTANCE.
*
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
SAGEMAKER_VARIANT_INVOCATIONS_PER_INSTANCE,
/**
* ECS_SERVICE_AVERAGE_CPU_UTILIZATION.
*
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
ECS_SERVICE_AVERAGE_CPU_UTILIZATION,
/**
* ECS_SERVICE_AVERAGE_MEMORY_UTILIZATION.
*
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
ECS_SERVICE_AVERAGE_MEMORY_UTILIZATION,
/**
* LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION.
*
* @see https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics.html#monitoring-metrics-concurrency
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION,
/**
* KAFKA_BROKER_STORAGE_UTILIZATION.
*
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
KAFKA_BROKER_STORAGE_UTILIZATION,
/**
* ELASTIC_CACHE_PRIMARY_ENGINE_CPU_UTILIZATION.
*
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION,
/**
* ELASTIC_CACHE_REPLICA_ENGINE_CPU_UTILIZATION.
*
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
ELASTICACHE_REPLICA_ENGINE_CPU_UTILIZATION,
/**
* ELASTIC_CACHE_REPLICA_ENGINE_CPU_UTILIZATION.
*
* @see https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
ELASTICACHE_DATABASE_MEMORY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE,
}