class Aws::AutoScaling::Types::PredictiveScalingMetricSpecification

This structure specifies the metrics and target utilization settings for a predictive scaling policy.

You must specify either a metric pair, or a load metric and a scaling metric individually. Specifying a metric pair instead of individual metrics provides a simpler way to configure metrics for a scaling policy. You choose the metric pair, and the policy automatically knows the correct sum and average statistics to use for the load metric and the scaling metric.

Example

@note When making an API call, you may pass PredictiveScalingMetricSpecification

data as a hash:

    {
      target_value: 1.0, # required
      predefined_metric_pair_specification: {
        predefined_metric_type: "ASGCPUUtilization", # required, accepts ASGCPUUtilization, ASGNetworkIn, ASGNetworkOut, ALBRequestCount
        resource_label: "XmlStringMaxLen1023",
      },
      predefined_scaling_metric_specification: {
        predefined_metric_type: "ASGAverageCPUUtilization", # required, accepts ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, ALBRequestCountPerTarget
        resource_label: "XmlStringMaxLen1023",
      },
      predefined_load_metric_specification: {
        predefined_metric_type: "ASGTotalCPUUtilization", # required, accepts ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
        resource_label: "XmlStringMaxLen1023",
      },
    }

@!attribute [rw] target_value

Specifies the target utilization.
@return [Float]

@!attribute [rw] predefined_metric_pair_specification

The metric pair specification from which Amazon EC2 Auto Scaling
determines the appropriate scaling metric and load metric to use.
@return [Types::PredictiveScalingPredefinedMetricPair]

@!attribute [rw] predefined_scaling_metric_specification

The scaling metric specification.
@return [Types::PredictiveScalingPredefinedScalingMetric]

@!attribute [rw] predefined_load_metric_specification

The load metric specification.
@return [Types::PredictiveScalingPredefinedLoadMetric]

@see docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PredictiveScalingMetricSpecification AWS API Documentation

Constants

SENSITIVE