interface PredictiveScalingCustomizedCapacityMetricProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AutoScaling.Mixins.CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedCapacityMetricProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsautoscaling/mixins#CfnScalingPolicyPropsMixin_PredictiveScalingCustomizedCapacityMetricProperty |
Java | software.amazon.awscdk.mixins.preview.services.autoscaling.mixins.CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedCapacityMetricProperty |
Python | aws_cdk.mixins_preview.aws_autoscaling.mixins.CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedCapacityMetricProperty |
TypeScript | @aws-cdk/mixins-preview » aws_autoscaling » mixins » CfnScalingPolicyPropsMixin » PredictiveScalingCustomizedCapacityMetricProperty |
Contains capacity metric information for the CustomizedCapacityMetricSpecification property of the AWS::AutoScaling::ScalingPolicy PredictiveScalingMetricSpecification property type.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as autoscaling_mixins } from '@aws-cdk/mixins-preview/aws-autoscaling';
const predictiveScalingCustomizedCapacityMetricProperty: autoscaling_mixins.CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedCapacityMetricProperty = {
metricDataQueries: [{
expression: 'expression',
id: 'id',
label: 'label',
metricStat: {
metric: {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
},
stat: 'stat',
unit: 'unit',
},
returnData: false,
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| metric | IResolvable | (IResolvable | Metric)[] | One or more metric data queries to provide the data points for a capacity metric. |
metricDataQueries?
Type:
IResolvable | (IResolvable | Metric)[]
(optional)
One or more metric data queries to provide the data points for a capacity metric.
Use multiple metric data queries only if you are performing a math expression on returned data.

.NET
Go
Java
Python
TypeScript