interface PredictiveScalingCustomizedCapacityMetricProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ApplicationAutoScaling.Mixins.CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedCapacityMetricProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsapplicationautoscaling/mixins#CfnScalingPolicyPropsMixin_PredictiveScalingCustomizedCapacityMetricProperty |
Java | software.amazon.awscdk.mixins.preview.services.applicationautoscaling.mixins.CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedCapacityMetricProperty |
Python | aws_cdk.mixins_preview.aws_applicationautoscaling.mixins.CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedCapacityMetricProperty |
TypeScript | @aws-cdk/mixins-preview » aws_applicationautoscaling » mixins » CfnScalingPolicyPropsMixin » PredictiveScalingCustomizedCapacityMetricProperty |
Represents a CloudWatch metric of your choosing for a predictive scaling policy.
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 predictiveScalingCustomizedCapacityMetricProperty: applicationautoscaling_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 | Predictive)[] | One or more metric data queries to provide data points for a metric specification. |
metricDataQueries?
Type:
IResolvable | (IResolvable | Predictive)[]
(optional)
One or more metric data queries to provide data points for a metric specification.

.NET
Go
Java
Python
TypeScript