public final class AutomaticScaling
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the App Engine Admin API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
AutomaticScaling() |
| Modifier and Type | Method and Description |
|---|---|
AutomaticScaling |
clone() |
String |
getCoolDownPeriod()
The time period that the Autoscaler (https://cloud.google.com/compute/docs/autoscaler/) should
wait before it starts collecting information from a new instance.
|
CpuUtilization |
getCpuUtilization()
Target scaling by CPU usage.
|
DiskUtilization |
getDiskUtilization()
Target scaling by disk usage.
|
Integer |
getMaxConcurrentRequests()
Number of concurrent requests an automatic scaling instance can accept before the scheduler
spawns a new instance.Defaults to a runtime-specific value.
|
Integer |
getMaxIdleInstances()
Maximum number of idle instances that should be maintained for this version.
|
String |
getMaxPendingLatency()
Maximum amount of time that a request should wait in the pending queue before starting a new
instance to handle it.
|
Integer |
getMaxTotalInstances()
Maximum number of instances that should be started to handle requests for this version.
|
Integer |
getMinIdleInstances()
Minimum number of idle instances that should be maintained for this version.
|
String |
getMinPendingLatency()
Minimum amount of time a request should wait in the pending queue before starting a new
instance to handle it.
|
Integer |
getMinTotalInstances()
Minimum number of running instances that should be maintained for this version.
|
NetworkUtilization |
getNetworkUtilization()
Target scaling by network usage.
|
RequestUtilization |
getRequestUtilization()
Target scaling by request utilization.
|
StandardSchedulerSettings |
getStandardSchedulerSettings()
Scheduler settings for standard environment.
|
AutomaticScaling |
set(String fieldName,
Object value) |
AutomaticScaling |
setCoolDownPeriod(String coolDownPeriod)
The time period that the Autoscaler (https://cloud.google.com/compute/docs/autoscaler/) should
wait before it starts collecting information from a new instance.
|
AutomaticScaling |
setCpuUtilization(CpuUtilization cpuUtilization)
Target scaling by CPU usage.
|
AutomaticScaling |
setDiskUtilization(DiskUtilization diskUtilization)
Target scaling by disk usage.
|
AutomaticScaling |
setMaxConcurrentRequests(Integer maxConcurrentRequests)
Number of concurrent requests an automatic scaling instance can accept before the scheduler
spawns a new instance.Defaults to a runtime-specific value.
|
AutomaticScaling |
setMaxIdleInstances(Integer maxIdleInstances)
Maximum number of idle instances that should be maintained for this version.
|
AutomaticScaling |
setMaxPendingLatency(String maxPendingLatency)
Maximum amount of time that a request should wait in the pending queue before starting a new
instance to handle it.
|
AutomaticScaling |
setMaxTotalInstances(Integer maxTotalInstances)
Maximum number of instances that should be started to handle requests for this version.
|
AutomaticScaling |
setMinIdleInstances(Integer minIdleInstances)
Minimum number of idle instances that should be maintained for this version.
|
AutomaticScaling |
setMinPendingLatency(String minPendingLatency)
Minimum amount of time a request should wait in the pending queue before starting a new
instance to handle it.
|
AutomaticScaling |
setMinTotalInstances(Integer minTotalInstances)
Minimum number of running instances that should be maintained for this version.
|
AutomaticScaling |
setNetworkUtilization(NetworkUtilization networkUtilization)
Target scaling by network usage.
|
AutomaticScaling |
setRequestUtilization(RequestUtilization requestUtilization)
Target scaling by request utilization.
|
AutomaticScaling |
setStandardSchedulerSettings(StandardSchedulerSettings standardSchedulerSettings)
Scheduler settings for standard environment.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getCoolDownPeriod()
null for nonepublic AutomaticScaling setCoolDownPeriod(String coolDownPeriod)
coolDownPeriod - coolDownPeriod or null for nonepublic CpuUtilization getCpuUtilization()
null for nonepublic AutomaticScaling setCpuUtilization(CpuUtilization cpuUtilization)
cpuUtilization - cpuUtilization or null for nonepublic DiskUtilization getDiskUtilization()
null for nonepublic AutomaticScaling setDiskUtilization(DiskUtilization diskUtilization)
diskUtilization - diskUtilization or null for nonepublic Integer getMaxConcurrentRequests()
null for nonepublic AutomaticScaling setMaxConcurrentRequests(Integer maxConcurrentRequests)
maxConcurrentRequests - maxConcurrentRequests or null for nonepublic Integer getMaxIdleInstances()
null for nonepublic AutomaticScaling setMaxIdleInstances(Integer maxIdleInstances)
maxIdleInstances - maxIdleInstances or null for nonepublic String getMaxPendingLatency()
null for nonepublic AutomaticScaling setMaxPendingLatency(String maxPendingLatency)
maxPendingLatency - maxPendingLatency or null for nonepublic Integer getMaxTotalInstances()
null for nonepublic AutomaticScaling setMaxTotalInstances(Integer maxTotalInstances)
maxTotalInstances - maxTotalInstances or null for nonepublic Integer getMinIdleInstances()
null for nonepublic AutomaticScaling setMinIdleInstances(Integer minIdleInstances)
minIdleInstances - minIdleInstances or null for nonepublic String getMinPendingLatency()
null for nonepublic AutomaticScaling setMinPendingLatency(String minPendingLatency)
minPendingLatency - minPendingLatency or null for nonepublic Integer getMinTotalInstances()
null for nonepublic AutomaticScaling setMinTotalInstances(Integer minTotalInstances)
minTotalInstances - minTotalInstances or null for nonepublic NetworkUtilization getNetworkUtilization()
null for nonepublic AutomaticScaling setNetworkUtilization(NetworkUtilization networkUtilization)
networkUtilization - networkUtilization or null for nonepublic RequestUtilization getRequestUtilization()
null for nonepublic AutomaticScaling setRequestUtilization(RequestUtilization requestUtilization)
requestUtilization - requestUtilization or null for nonepublic StandardSchedulerSettings getStandardSchedulerSettings()
null for nonepublic AutomaticScaling setStandardSchedulerSettings(StandardSchedulerSettings standardSchedulerSettings)
standardSchedulerSettings - standardSchedulerSettings or null for nonepublic AutomaticScaling set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic AutomaticScaling clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.