AutoscalingPolicy class

Cloud Autoscaler policy.


AutoscalingPolicy.fromJson(Map _json)


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
hashCode int
The hash code for this object. [...]
read-only, inherited
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
mode String
Defines operating mode for this policy. Possible string values are: [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scaleInControl AutoscalingPolicyScaleInControl
read / write


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


operator ==(Object other) bool
The equality operator. [...]