AutoscalingPolicy class

Cloud Autoscaler policy.

Constructors

AutoscalingPolicy()
AutoscalingPolicy.fromJson(Map _json)

Properties

coolDownPeriodSec ↔ int
The number of seconds that the autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds. [...]
read / write
cpuUtilization AutoscalingPolicyCpuUtilization
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
read / write
customMetricUtilizations ↔ List<AutoscalingPolicyCustomMetricUtilization>
Configuration parameters of autoscaling based on a custom metric.
read / write
loadBalancingUtilization AutoscalingPolicyLoadBalancingUtilization
Configuration parameters of autoscaling based on load balancer.
read / write
maxNumReplicas ↔ int
The maximum number of instances that the autoscaler can scale up to. This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas.
read / write
minNumReplicas ↔ int
The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() → Map<String, Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited