Class CfnScalingPolicy.PredictiveScalingCustomizedLoadMetricProperty
- Namespace
- Amazon.CDK.AWS.AutoScaling
- Assembly
- Amazon.CDK.AWS.AutoScaling.dll
Contains load metric information for the CustomizedLoadMetricSpecification
property of the AWS::AutoScaling::ScalingPolicy PredictiveScalingMetricSpecification property type.
public class CfnScalingPolicy.PredictiveScalingCustomizedLoadMetricProperty : CfnScalingPolicy.IPredictiveScalingCustomizedLoadMetricProperty
- Inheritance
-
CfnScalingPolicy.PredictiveScalingCustomizedLoadMetricProperty
- Implements
- Inherited Members
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AutoScaling;
var predictiveScalingCustomizedLoadMetricProperty = new PredictiveScalingCustomizedLoadMetricProperty {
MetricDataQueries = new [] { new MetricDataQueryProperty {
Id = "id",
// the properties below are optional
Expression = "expression",
Label = "label",
MetricStat = new MetricStatProperty {
Metric = new MetricProperty {
MetricName = "metricName",
Namespace = "namespace",
// the properties below are optional
Dimensions = new [] { new MetricDimensionProperty {
Name = "name",
Value = "value"
} }
},
Stat = "stat",
// the properties below are optional
Unit = "unit"
},
ReturnData = false
} }
};
Remarks
ExampleMetadata: fixture=_generated
Constructors
PredictiveScalingCustomizedLoadMetricProperty()
public PredictiveScalingCustomizedLoadMetricProperty()
Properties
MetricDataQueries
One or more metric data queries to provide the data points for a load metric.
public object MetricDataQueries { get; set; }
Property Value
Remarks
Use multiple metric data queries only if you are performing a math expression on returned data.