PredictiveScalingCustomizedScalingMetricProperty Struct
Contains scaling metric information for the CustomizedScalingMetricSpecification property of the AWS::AutoScaling::ScalingPolicy PredictiveScalingMetricSpecification property type.
Example
ts
// 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 predictiveScalingCustomizedScalingMetricProperty: autoscaling.CfnScalingPolicy.PredictiveScalingCustomizedScalingMetricProperty = {
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
metricDataQueriesIResolvable | IResolvable | CfnScalingPolicy.MetricDataQueryProperty[]metric_data_queriestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MetricDataQueryProperty]]]metricDataQueriesIResolvableMetricDataQueriesIResolvableMetricDataQueriesinterface{}required#One or more metric data queries to provide the data points for a scaling metric.
Use multiple metric data queries only if you are performing a math expression on returned data.