interface PredictiveScalingCustomizedCapacityMetricProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AutoScaling.CfnScalingPolicy.PredictiveScalingCustomizedCapacityMetricProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#CfnScalingPolicy_PredictiveScalingCustomizedCapacityMetricProperty |
Java | software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingCustomizedCapacityMetricProperty |
Python | aws_cdk.aws_autoscaling.CfnScalingPolicy.PredictiveScalingCustomizedCapacityMetricProperty |
TypeScript | aws-cdk-lib » aws_autoscaling » CfnScalingPolicy » 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 { aws_autoscaling as autoscaling } from 'aws-cdk-lib';
const predictiveScalingCustomizedCapacityMetricProperty: autoscaling.CfnScalingPolicy.PredictiveScalingCustomizedCapacityMetricProperty = {
metricDataQueries: [{
id: 'id',
// the properties below are optional
expression: 'expression',
label: 'label',
metricStat: {
metric: {
metricName: 'metricName',
namespace: 'namespace',
// the properties below are optional
dimensions: [{
name: 'name',
value: 'value',
}],
},
stat: 'stat',
// the properties below are optional
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
[]
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.