interface PredictiveScalingPredefinedMetricPairProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.ApplicationAutoScaling.CfnScalingPolicyPropsMixin.PredictiveScalingPredefinedMetricPairProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsapplicationautoscaling#CfnScalingPolicyPropsMixin_PredictiveScalingPredefinedMetricPairProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.applicationautoscaling.CfnScalingPolicyPropsMixin.PredictiveScalingPredefinedMetricPairProperty |
Python | aws_cdk.cfn_property_mixins.aws_applicationautoscaling.CfnScalingPolicyPropsMixin.PredictiveScalingPredefinedMetricPairProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_applicationautoscaling » CfnScalingPolicyPropsMixin » PredictiveScalingPredefinedMetricPairProperty |
Represents a metric pair for a predictive scaling policy.
The following predefined metrics are available for predictive scaling:
ECSServiceAverageCPUUtilizationECSServiceAverageMemoryUtilizationECSServiceCPUUtilizationECSServiceMemoryUtilizationECSServiceTotalCPUUtilizationECSServiceTotalMemoryUtilizationALBRequestCountALBRequestCountPerTargetTotalALBRequestCount
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationautoscaling as applicationautoscaling } from '@aws-cdk/cfn-property-mixins';
const predictiveScalingPredefinedMetricPairProperty: applicationautoscaling.CfnScalingPolicyPropsMixin.PredictiveScalingPredefinedMetricPairProperty = {
predefinedMetricType: 'predefinedMetricType',
resourceLabel: 'resourceLabel',
};
Properties
| Name | Type | Description |
|---|---|---|
| predefined | string | Indicates which metrics to use. |
| resource | string | A label that uniquely identifies a specific target group from which to determine the total and average request count. |
predefinedMetricType?
Type:
string
(optional)
Indicates which metrics to use.
There are two different types of metrics for each metric type: one is a load metric and one is a scaling metric.
resourceLabel?
Type:
string
(optional)
A label that uniquely identifies a specific target group from which to determine the total and average request count.

.NET
Go
Java
Python
TypeScript