Autoscaler class

Represents an Autoscaler resource.

Google Compute Engine has two Autoscaler resources: * [Zonal](/compute/docs/reference/rest/v1/autoscalers) * [Regional](/compute/docs/reference/rest/v1/regionAutoscalers) Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances. For zonal managed instance groups resource, use the autoscaler resource. For regional managed instance groups, use the regionAutoscalers resource.

Constructors

Autoscaler({AutoscalingPolicy? autoscalingPolicy, String? creationTimestamp, String? description, String? id, String? kind, String? name, int? recommendedSize, String? region, Map<String, ScalingScheduleStatus>? scalingScheduleStatus, String? selfLink, String? status, List<AutoscalerStatusDetails>? statusDetails, String? target, String? zone})
Autoscaler.fromJson(Map json_)

Properties

autoscalingPolicy AutoscalingPolicy?
The configuration parameters for the autoscaling algorithm.
getter/setter pair
creationTimestamp String?
Creation timestamp in RFC3339 text format.
getter/setter pair
description String?
An optional description of this resource.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
The unique identifier for the resource.
getter/setter pair
kind String?
Type of the resource.
getter/setter pair
name String?
Name of the resource.
getter/setter pair
recommendedSize int?
Target recommended MIG size (number of instances) computed by autoscaler.
getter/setter pair
region String?
URL of the region where the instance group resides (for autoscalers living in regional scope).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scalingScheduleStatus Map<String, ScalingScheduleStatus>?
Status information of existing scaling schedules.
getter/setter pair
Server-defined URL for the resource.
getter/setter pair
status String?
The status of the autoscaler configuration.
getter/setter pair
statusDetails List<AutoscalerStatusDetails>?
Human-readable details about the current state of the autoscaler.
getter/setter pair
target String?
URL of the managed instance group that this autoscaler will scale.
getter/setter pair
zone String?
URL of the zone where the instance group resides (for autoscalers living in zonal scope).
getter/setter pair

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited