AutoscalerAutoscalingPolicyCpuUtilizationArgs

data class AutoscalerAutoscalingPolicyCpuUtilizationArgs(val predictiveMethod: Output<String>? = null, val target: Output<Double>) : ConvertibleToJava<AutoscalerAutoscalingPolicyCpuUtilizationArgs>

Constructors

constructor(predictiveMethod: Output<String>? = null, target: Output<Double>)

Properties

Link copied to clipboard
val predictiveMethod: Output<String>? = null

Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are:

Link copied to clipboard
val target: Output<Double>

The target CPU utilization that the autoscaler should maintain. Must be a float value in the range (0, 1]. If not specified, the default is 0.6. If the CPU level is below the target utilization, the autoscaler scales down the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization. If the average CPU is above the target utilization, the autoscaler scales up until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.

Functions

Link copied to clipboard
open override fun toJava(): AutoscalerAutoscalingPolicyCpuUtilizationArgs