public final class LivenessCheck
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 |
---|
LivenessCheck() |
Modifier and Type | Method and Description |
---|---|
LivenessCheck |
clone() |
java.lang.String |
getCheckInterval()
Interval between health checks.
|
java.lang.Long |
getFailureThreshold()
Number of consecutive failed checks required before considering the VM unhealthy.
|
java.lang.String |
getHost()
Host header to send when performing a HTTP Liveness check.
|
java.lang.String |
getInitialDelay()
The initial delay before starting to execute the checks.
|
java.lang.String |
getPath()
The request path.
|
java.lang.Long |
getSuccessThreshold()
Number of consecutive successful checks required before considering the VM healthy.
|
java.lang.String |
getTimeout()
Time before the check is considered failed.
|
LivenessCheck |
set(java.lang.String fieldName,
java.lang.Object value) |
LivenessCheck |
setCheckInterval(java.lang.String checkInterval)
Interval between health checks.
|
LivenessCheck |
setFailureThreshold(java.lang.Long failureThreshold)
Number of consecutive failed checks required before considering the VM unhealthy.
|
LivenessCheck |
setHost(java.lang.String host)
Host header to send when performing a HTTP Liveness check.
|
LivenessCheck |
setInitialDelay(java.lang.String initialDelay)
The initial delay before starting to execute the checks.
|
LivenessCheck |
setPath(java.lang.String path)
The request path.
|
LivenessCheck |
setSuccessThreshold(java.lang.Long successThreshold)
Number of consecutive successful checks required before considering the VM healthy.
|
LivenessCheck |
setTimeout(java.lang.String timeout)
Time before the check is considered failed.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getCheckInterval()
null
for nonepublic LivenessCheck setCheckInterval(java.lang.String checkInterval)
checkInterval
- checkInterval or null
for nonepublic java.lang.Long getFailureThreshold()
null
for nonepublic LivenessCheck setFailureThreshold(java.lang.Long failureThreshold)
failureThreshold
- failureThreshold or null
for nonepublic java.lang.String getHost()
null
for nonepublic LivenessCheck setHost(java.lang.String host)
host
- host or null
for nonepublic java.lang.String getInitialDelay()
null
for nonepublic LivenessCheck setInitialDelay(java.lang.String initialDelay)
initialDelay
- initialDelay or null
for nonepublic java.lang.String getPath()
null
for nonepublic LivenessCheck setPath(java.lang.String path)
path
- path or null
for nonepublic java.lang.Long getSuccessThreshold()
null
for nonepublic LivenessCheck setSuccessThreshold(java.lang.Long successThreshold)
successThreshold
- successThreshold or null
for nonepublic java.lang.String getTimeout()
null
for nonepublic LivenessCheck setTimeout(java.lang.String timeout)
timeout
- timeout or null
for nonepublic LivenessCheck set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public LivenessCheck clone()
clone
in class com.google.api.client.json.GenericJson