interface PredictiveScalingPredefinedMetricPairProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ApplicationAutoScaling.Mixins.CfnScalingPolicyPropsMixin.PredictiveScalingPredefinedMetricPairProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsapplicationautoscaling/mixins#CfnScalingPolicyPropsMixin_PredictiveScalingPredefinedMetricPairProperty |
Java | software.amazon.awscdk.mixins.preview.services.applicationautoscaling.mixins.CfnScalingPolicyPropsMixin.PredictiveScalingPredefinedMetricPairProperty |
Python | aws_cdk.mixins_preview.aws_applicationautoscaling.mixins.CfnScalingPolicyPropsMixin.PredictiveScalingPredefinedMetricPairProperty |
TypeScript | @aws-cdk/mixins-preview » aws_applicationautoscaling » mixins » 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 { mixins as applicationautoscaling_mixins } from '@aws-cdk/mixins-preview/aws-applicationautoscaling';
const predictiveScalingPredefinedMetricPairProperty: applicationautoscaling_mixins.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