PredefinedMetric

class aws_cdk.aws_applicationautoscaling.PredefinedMetric(value)

Bases: Enum

One of the predefined autoscaling metrics.

ExampleMetadata:

infused

Example:

shards_scalable_target = appscaling.ScalableTarget(self, "ElastiCacheRedisShardsScalableTarget",
    service_namespace=appscaling.ServiceNamespace.ELASTICACHE,
    scalable_dimension="elasticache:replication-group:NodeGroups",
    min_capacity=2,
    max_capacity=10,
    resource_id="replication-group/main-cluster"
)

shards_scalable_target.scale_to_track_metric("ElastiCacheRedisShardsCPUUtilization",
    target_value=20,
    predefined_metric=appscaling.PredefinedMetric.ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION
)

Attributes

ALB_REQUEST_COUNT_PER_TARGET

ALB_REQUEST_COUNT_PER_TARGET.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

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.

DYANMODB_WRITE_CAPACITY_UTILIZATION

(deprecated) DYANMODB_WRITE_CAPACITY_UTILIZATION.

Deprecated:

use PredefinedMetric.DYNAMODB_WRITE_CAPACITY_UTILIZATION

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

Stability:

deprecated

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.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

EC2_SPOT_FLEET_REQUEST_AVERAGE_CPU_UTILIZATION

EC2_SPOT_FLEET_REQUEST_AVERAGE_CPU_UTILIZATION.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_IN

EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_IN.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_OUT

EC2_SPOT_FLEET_REQUEST_AVERAGE_NETWORK_OUT.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

ECS_SERVICE_AVERAGE_CPU_UTILIZATION

ECS_SERVICE_AVERAGE_CPU_UTILIZATION.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

ECS_SERVICE_AVERAGE_MEMORY_UTILIZATION

ECS_SERVICE_AVERAGE_MEMORY_UTILIZATION.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

ELASTICACHE_DATABASE_CAPACITY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE

ELASTICACHE_DATABASE_CAPACITY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

ELASTICACHE_DATABASE_MEMORY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE

ELASTICACHE_DATABASE_MEMORY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION

ELASTICACHE_PRIMARY_ENGINE_CPU_UTILIZATION.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

ELASTICACHE_REPLICA_ENGINE_CPU_UTILIZATION

ELASTICACHE_REPLICA_ENGINE_CPU_UTILIZATION.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

KAFKA_BROKER_STORAGE_UTILIZATION

KAFKA_BROKER_STORAGE_UTILIZATION.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION

LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION.

See:

https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics.html#monitoring-metrics-concurrency

NEPTURE_READER_AVERAGE_CPU_UTILIZATION

Average CPU Utilization of read replica instances in a Neptune DB cluster.

RDS_READER_AVERAGE_CPU_UTILIZATION

RDS_READER_AVERAGE_CPU_UTILIZATION.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

RDS_READER_AVERAGE_DATABASE_CONNECTIONS

RDS_READER_AVERAGE_DATABASE_CONNECTIONS.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

SAGEMAKER_INFERENCE_COMPONENT_INVOCATIONS_PER_COPY

SAGEMAKER_INFERENCE_COMPONENT_INVOCATIONS_PER_COPY.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

SAGEMAKER_VARIANT_INVOCATIONS_PER_INSTANCE

SAGEMAKER_VARIANT_INVOCATIONS_PER_INSTANCE.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html

SAGEMAKER_VARIANT_PROVISIONED_CONCURRENCY_UTILIZATION

SAGEMAKER_VARIANT_PROVISIONED_CONCURRENCY_UTILIZATION.

See:

https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredefinedMetricSpecification.html