Show / Hide Table of Contents

Class AutoscalingPolicy

Cloud Autoscaler policy.

Inheritance
System.Object
AutoscalingPolicy
Implements
Google.Apis.Requests.IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Compute.v1.Data
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class AutoscalingPolicy : IDirectResponseSchema

Properties

CoolDownPeriodSec

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.

Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.

Declaration
[JsonProperty("coolDownPeriodSec")]
public virtual int? CoolDownPeriodSec { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

CpuUtilization

Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.

Declaration
[JsonProperty("cpuUtilization")]
public virtual AutoscalingPolicyCpuUtilization CpuUtilization { get; set; }
Property Value
Type Description
AutoscalingPolicyCpuUtilization

CustomMetricUtilizations

Configuration parameters of autoscaling based on a custom metric.

Declaration
[JsonProperty("customMetricUtilizations")]
public virtual IList<AutoscalingPolicyCustomMetricUtilization> CustomMetricUtilizations { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<AutoscalingPolicyCustomMetricUtilization>

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

LoadBalancingUtilization

Configuration parameters of autoscaling based on load balancer.

Declaration
[JsonProperty("loadBalancingUtilization")]
public virtual AutoscalingPolicyLoadBalancingUtilization LoadBalancingUtilization { get; set; }
Property Value
Type Description
AutoscalingPolicyLoadBalancingUtilization

MaxNumReplicas

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.

Declaration
[JsonProperty("maxNumReplicas")]
public virtual int? MaxNumReplicas { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

MinNumReplicas

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.

Declaration
[JsonProperty("minNumReplicas")]
public virtual int? MinNumReplicas { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

Mode

Defines operating mode for this policy.

Declaration
[JsonProperty("mode")]
public virtual string Mode { get; set; }
Property Value
Type Description
System.String

Implements

Google.Apis.Requests.IDirectResponseSchema
Back to top