AutoscalingPolicyResponseComputeV1 class
Cloud Autoscaler policy.
Constructors
-
AutoscalingPolicyResponseComputeV1({required Input<
int> coolDownPeriodSec, required Input<AutoscalingPolicyCpuUtilizationResponseComputeV1> cpuUtilization, required Input<List< customMetricUtilizations, required Input<AutoscalingPolicyCustomMetricUtilizationResponseComputeV1> >AutoscalingPolicyLoadBalancingUtilizationResponseComputeV1> loadBalancingUtilization, required Input<int> maxNumReplicas, required Input<int> minNumReplicas, required Input<String> mode, required Input<AutoscalingPolicyScaleInControlResponseComputeV1> scaleInControl, required Input<Map< scalingSchedules})String, String> > -
Creates a new AutoscalingPolicyResponseComputeV1.
coolDownPeriodSecThe number of seconds that your application takes to initialize on a VM instance. This is referred to as the initialization period. Specifying an accurate initialization period improves autoscaler decisions. For example, when scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs might not yet represent normal usage of your application. The default initialization period is 60 seconds. Initialization periods might vary because of numerous factors. We recommend that you test how long your application takes to initialize. To do this, create a VM and time your application's startup process.cpuUtilizationDefines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.customMetricUtilizationsConfiguration parameters of autoscaling based on a custom metric.loadBalancingUtilizationConfiguration parameters of autoscaling based on load balancer.maxNumReplicasThe maximum number of instances that the autoscaler can scale out to. This is required when creating or updating an autoscaler. The maximum number of replicas must not be lower than minimal number of replicas.minNumReplicasThe minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. If not provided, autoscaler chooses a default value depending on maximum number of instances allowed.modeDefines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler"scaleInControlRequired.scalingSchedulesScaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.const -
AutoscalingPolicyResponseComputeV1.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
coolDownPeriodSec
→ Input<
int> -
The number of seconds that your application takes to initialize on a VM instance. This is referred to as the initialization period. Specifying an accurate initialization period improves autoscaler decisions. For example, when scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs might not yet represent normal usage of your application. The default initialization period is 60 seconds. Initialization periods might vary because of numerous factors. We recommend that you test how long your application takes to initialize. To do this, create a VM and time your application's startup process.
final
-
cpuUtilization
→ Input<
AutoscalingPolicyCpuUtilizationResponseComputeV1> -
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
final
-
customMetricUtilizations
→ Input<
List< AutoscalingPolicyCustomMetricUtilizationResponseComputeV1> > -
Configuration parameters of autoscaling based on a custom metric.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
loadBalancingUtilization
→ Input<
AutoscalingPolicyLoadBalancingUtilizationResponseComputeV1> -
Configuration parameters of autoscaling based on load balancer.
final
-
maxNumReplicas
→ Input<
int> -
The maximum number of instances that the autoscaler can scale out to. This is required when creating or updating an autoscaler. The maximum number of replicas must not be lower than minimal number of replicas.
final
-
minNumReplicas
→ Input<
int> -
The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. If not provided, autoscaler chooses a default value depending on maximum number of instances allowed.
final
-
mode
→ Input<
String> -
Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler"
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scaleInControl
→ Input<
AutoscalingPolicyScaleInControlResponseComputeV1> -
final
-
scalingSchedules
→ Input<
Map< String, String> > -
Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited