public final class HealthCheck
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.Flags| Constructor and Description |
|---|
HealthCheck() |
| Modifier and Type | Method and Description |
|---|---|
HealthCheck |
clone() |
java.lang.String |
getCheckInterval()
Interval between health checks.
|
java.lang.Boolean |
getDisableHealthCheck()
Whether to explicitly disable health checks for this instance.
|
java.lang.Long |
getHealthyThreshold()
Number of consecutive successful health checks required before receiving traffic.
|
java.lang.String |
getHost()
Host header to send when performing an HTTP health check.
|
java.lang.Long |
getRestartThreshold()
Number of consecutive failed health checks required before an instance is restarted.
|
java.lang.String |
getTimeout()
Time before the health check is considered failed.
|
java.lang.Long |
getUnhealthyThreshold()
Number of consecutive failed health checks required before removing traffic.
|
HealthCheck |
set(java.lang.String fieldName,
java.lang.Object value) |
HealthCheck |
setCheckInterval(java.lang.String checkInterval)
Interval between health checks.
|
HealthCheck |
setDisableHealthCheck(java.lang.Boolean disableHealthCheck)
Whether to explicitly disable health checks for this instance.
|
HealthCheck |
setHealthyThreshold(java.lang.Long healthyThreshold)
Number of consecutive successful health checks required before receiving traffic.
|
HealthCheck |
setHost(java.lang.String host)
Host header to send when performing an HTTP health check.
|
HealthCheck |
setRestartThreshold(java.lang.Long restartThreshold)
Number of consecutive failed health checks required before an instance is restarted.
|
HealthCheck |
setTimeout(java.lang.String timeout)
Time before the health check is considered failed.
|
HealthCheck |
setUnhealthyThreshold(java.lang.Long unhealthyThreshold)
Number of consecutive failed health checks required before removing traffic.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getCheckInterval()
null for nonepublic HealthCheck setCheckInterval(java.lang.String checkInterval)
checkInterval - checkInterval or null for nonepublic java.lang.Boolean getDisableHealthCheck()
null for nonepublic HealthCheck setDisableHealthCheck(java.lang.Boolean disableHealthCheck)
disableHealthCheck - disableHealthCheck or null for nonepublic java.lang.Long getHealthyThreshold()
null for nonepublic HealthCheck setHealthyThreshold(java.lang.Long healthyThreshold)
healthyThreshold - healthyThreshold or null for nonepublic java.lang.String getHost()
null for nonepublic HealthCheck setHost(java.lang.String host)
host - host or null for nonepublic java.lang.Long getRestartThreshold()
null for nonepublic HealthCheck setRestartThreshold(java.lang.Long restartThreshold)
restartThreshold - restartThreshold or null for nonepublic java.lang.String getTimeout()
null for nonepublic HealthCheck setTimeout(java.lang.String timeout)
timeout - timeout or null for nonepublic java.lang.Long getUnhealthyThreshold()
null for nonepublic HealthCheck setUnhealthyThreshold(java.lang.Long unhealthyThreshold)
unhealthyThreshold - unhealthyThreshold or null for nonepublic HealthCheck set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic HealthCheck clone()
clone in class com.google.api.client.json.GenericJson