public interface AutoscalingPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsScalingSchedules(String key)
Scaling schedules defined for an autoscaler.
|
int |
getCoolDownPeriodSec()
The number of seconds that the autoscaler waits before it starts collecting information from a new instance.
|
AutoscalingPolicyCpuUtilization |
getCpuUtilization()
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
|
AutoscalingPolicyCpuUtilizationOrBuilder |
getCpuUtilizationOrBuilder()
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
|
AutoscalingPolicyCustomMetricUtilization |
getCustomMetricUtilizations(int index)
Configuration parameters of autoscaling based on a custom metric.
|
int |
getCustomMetricUtilizationsCount()
Configuration parameters of autoscaling based on a custom metric.
|
List<AutoscalingPolicyCustomMetricUtilization> |
getCustomMetricUtilizationsList()
Configuration parameters of autoscaling based on a custom metric.
|
AutoscalingPolicyCustomMetricUtilizationOrBuilder |
getCustomMetricUtilizationsOrBuilder(int index)
Configuration parameters of autoscaling based on a custom metric.
|
List<? extends AutoscalingPolicyCustomMetricUtilizationOrBuilder> |
getCustomMetricUtilizationsOrBuilderList()
Configuration parameters of autoscaling based on a custom metric.
|
AutoscalingPolicyLoadBalancingUtilization |
getLoadBalancingUtilization()
Configuration parameters of autoscaling based on load balancer.
|
AutoscalingPolicyLoadBalancingUtilizationOrBuilder |
getLoadBalancingUtilizationOrBuilder()
Configuration parameters of autoscaling based on load balancer.
|
int |
getMaxNumReplicas()
The maximum number of instances that the autoscaler can scale out to.
|
int |
getMinNumReplicas()
The minimum number of replicas that the autoscaler can scale in to.
|
String |
getMode()
Defines operating mode for this policy.
|
com.google.protobuf.ByteString |
getModeBytes()
Defines operating mode for this policy.
|
AutoscalingPolicyScaleInControl |
getScaleInControl()
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
|
AutoscalingPolicyScaleInControlOrBuilder |
getScaleInControlOrBuilder()
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
|
Map<String,AutoscalingPolicyScalingSchedule> |
getScalingSchedules()
Deprecated.
|
int |
getScalingSchedulesCount()
Scaling schedules defined for an autoscaler.
|
Map<String,AutoscalingPolicyScalingSchedule> |
getScalingSchedulesMap()
Scaling schedules defined for an autoscaler.
|
AutoscalingPolicyScalingSchedule |
getScalingSchedulesOrDefault(String key,
AutoscalingPolicyScalingSchedule defaultValue)
Scaling schedules defined for an autoscaler.
|
AutoscalingPolicyScalingSchedule |
getScalingSchedulesOrThrow(String key)
Scaling schedules defined for an autoscaler.
|
boolean |
hasCoolDownPeriodSec()
The number of seconds that the autoscaler waits before it starts collecting information from a new instance.
|
boolean |
hasCpuUtilization()
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
|
boolean |
hasLoadBalancingUtilization()
Configuration parameters of autoscaling based on load balancer.
|
boolean |
hasMaxNumReplicas()
The maximum number of instances that the autoscaler can scale out to.
|
boolean |
hasMinNumReplicas()
The minimum number of replicas that the autoscaler can scale in to.
|
boolean |
hasMode()
Defines operating mode for this policy.
|
boolean |
hasScaleInControl()
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasCoolDownPeriodSec()
The number of seconds that the autoscaler waits 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.
optional int32 cool_down_period_sec = 107692954;int getCoolDownPeriodSec()
The number of seconds that the autoscaler waits 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.
optional int32 cool_down_period_sec = 107692954;boolean hasCpuUtilization()
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
optional .google.cloud.compute.v1.AutoscalingPolicyCpuUtilization cpu_utilization = 381211147;
AutoscalingPolicyCpuUtilization getCpuUtilization()
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
optional .google.cloud.compute.v1.AutoscalingPolicyCpuUtilization cpu_utilization = 381211147;
AutoscalingPolicyCpuUtilizationOrBuilder getCpuUtilizationOrBuilder()
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
optional .google.cloud.compute.v1.AutoscalingPolicyCpuUtilization cpu_utilization = 381211147;
List<AutoscalingPolicyCustomMetricUtilization> getCustomMetricUtilizationsList()
Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
AutoscalingPolicyCustomMetricUtilization getCustomMetricUtilizations(int index)
Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
int getCustomMetricUtilizationsCount()
Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
List<? extends AutoscalingPolicyCustomMetricUtilizationOrBuilder> getCustomMetricUtilizationsOrBuilderList()
Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
AutoscalingPolicyCustomMetricUtilizationOrBuilder getCustomMetricUtilizationsOrBuilder(int index)
Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
boolean hasLoadBalancingUtilization()
Configuration parameters of autoscaling based on load balancer.
optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403;
AutoscalingPolicyLoadBalancingUtilization getLoadBalancingUtilization()
Configuration parameters of autoscaling based on load balancer.
optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403;
AutoscalingPolicyLoadBalancingUtilizationOrBuilder getLoadBalancingUtilizationOrBuilder()
Configuration parameters of autoscaling based on load balancer.
optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403;
boolean hasMaxNumReplicas()
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.
optional int32 max_num_replicas = 62327375;int getMaxNumReplicas()
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.
optional int32 max_num_replicas = 62327375;boolean hasMinNumReplicas()
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.
optional int32 min_num_replicas = 535329825;int getMinNumReplicas()
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.
optional int32 min_num_replicas = 535329825;boolean hasMode()
Defines operating mode for this policy. Check the Mode enum for the list of possible values.
optional string mode = 3357091;String getMode()
Defines operating mode for this policy. Check the Mode enum for the list of possible values.
optional string mode = 3357091;com.google.protobuf.ByteString getModeBytes()
Defines operating mode for this policy. Check the Mode enum for the list of possible values.
optional string mode = 3357091;boolean hasScaleInControl()
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
AutoscalingPolicyScaleInControl getScaleInControl()
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
AutoscalingPolicyScaleInControlOrBuilder getScaleInControlOrBuilder()
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
int getScalingSchedulesCount()
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.
map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
boolean containsScalingSchedules(String key)
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.
map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
@Deprecated Map<String,AutoscalingPolicyScalingSchedule> getScalingSchedules()
getScalingSchedulesMap() instead.Map<String,AutoscalingPolicyScalingSchedule> getScalingSchedulesMap()
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.
map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
AutoscalingPolicyScalingSchedule getScalingSchedulesOrDefault(String key, AutoscalingPolicyScalingSchedule defaultValue)
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.
map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
AutoscalingPolicyScalingSchedule getScalingSchedulesOrThrow(String key)
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.
map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
Copyright © 2023 Google LLC. All rights reserved.