interface PredictiveScalingMetricSpecificationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ApplicationAutoScaling.Mixins.CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsapplicationautoscaling/mixins#CfnScalingPolicyPropsMixin_PredictiveScalingMetricSpecificationProperty |
Java | software.amazon.awscdk.mixins.preview.services.applicationautoscaling.mixins.CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty |
Python | aws_cdk.mixins_preview.aws_applicationautoscaling.mixins.CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_applicationautoscaling » mixins » CfnScalingPolicyPropsMixin » PredictiveScalingMetricSpecificationProperty |
This structure specifies the metrics and target utilization settings for a predictive scaling policy.
You must specify either a metric pair, or a load metric and a scaling metric individually. Specifying a metric pair instead of individual metrics provides a simpler way to configure metrics for a scaling policy. You choose the metric pair, and the policy automatically knows the correct sum and average statistics to use for the load metric and the scaling metric.
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 predictiveScalingMetricSpecificationProperty: applicationautoscaling_mixins.CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty = {
customizedCapacityMetricSpecification: {
metricDataQueries: [{
expression: 'expression',
id: 'id',
label: 'label',
metricStat: {
metric: {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
},
stat: 'stat',
unit: 'unit',
},
returnData: false,
}],
},
customizedLoadMetricSpecification: {
metricDataQueries: [{
expression: 'expression',
id: 'id',
label: 'label',
metricStat: {
metric: {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
},
stat: 'stat',
unit: 'unit',
},
returnData: false,
}],
},
customizedScalingMetricSpecification: {
metricDataQueries: [{
expression: 'expression',
id: 'id',
label: 'label',
metricStat: {
metric: {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
},
stat: 'stat',
unit: 'unit',
},
returnData: false,
}],
},
predefinedLoadMetricSpecification: {
predefinedMetricType: 'predefinedMetricType',
resourceLabel: 'resourceLabel',
},
predefinedMetricPairSpecification: {
predefinedMetricType: 'predefinedMetricType',
resourceLabel: 'resourceLabel',
},
predefinedScalingMetricSpecification: {
predefinedMetricType: 'predefinedMetricType',
resourceLabel: 'resourceLabel',
},
targetValue: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| customized | IResolvable | Predictive | The customized capacity metric specification. |
| customized | IResolvable | Predictive | The customized load metric specification. |
| customized | IResolvable | Predictive | The customized scaling metric specification. |
| predefined | IResolvable | Predictive | The predefined load metric specification. |
| predefined | IResolvable | Predictive | The predefined metric pair specification that determines the appropriate scaling metric and load metric to use. |
| predefined | IResolvable | Predictive | The predefined scaling metric specification. |
| target | number | Specifies the target utilization. |
customizedCapacityMetricSpecification?
Type:
IResolvable | Predictive
(optional)
The customized capacity metric specification.
customizedLoadMetricSpecification?
Type:
IResolvable | Predictive
(optional)
The customized load metric specification.
customizedScalingMetricSpecification?
Type:
IResolvable | Predictive
(optional)
The customized scaling metric specification.
predefinedLoadMetricSpecification?
Type:
IResolvable | Predictive
(optional)
The predefined load metric specification.
predefinedMetricPairSpecification?
Type:
IResolvable | Predictive
(optional)
The predefined metric pair specification that determines the appropriate scaling metric and load metric to use.
predefinedScalingMetricSpecification?
Type:
IResolvable | Predictive
(optional)
The predefined scaling metric specification.
targetValue?
Type:
number
(optional)
Specifies the target utilization.

.NET
Go
Java
Python
TypeScript