public final class OutlierDetection
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 Compute Engine 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 |
---|
OutlierDetection() |
Modifier and Type | Method and Description |
---|---|
OutlierDetection |
clone() |
Duration |
getBaseEjectionTime()
The base time that a host is ejected for.
|
java.lang.Integer |
getConsecutiveErrors()
Number of errors before a host is ejected from the connection pool.
|
java.lang.Integer |
getConsecutiveGatewayFailure()
The number of consecutive gateway failures (502, 503, 504 status or connection errors that are
mapped to one of those status codes) before a consecutive gateway failure ejection occurs.
|
java.lang.Integer |
getEnforcingConsecutiveErrors()
The percentage chance that a host will be actually ejected when an outlier status is detected
through consecutive 5xx.
|
java.lang.Integer |
getEnforcingConsecutiveGatewayFailure()
The percentage chance that a host will be actually ejected when an outlier status is detected
through consecutive gateway failures.
|
java.lang.Integer |
getEnforcingSuccessRate()
The percentage chance that a host will be actually ejected when an outlier status is detected
through success rate statistics.
|
Duration |
getInterval()
Time interval between ejection sweep analysis.
|
java.lang.Integer |
getMaxEjectionPercent()
Maximum percentage of hosts in the load balancing pool for the backend service that can be
ejected.
|
java.lang.Integer |
getSuccessRateMinimumHosts()
The number of hosts in a cluster that must have enough request volume to detect success rate
outliers.
|
java.lang.Integer |
getSuccessRateRequestVolume()
The minimum number of total requests that must be collected in one interval (as defined by the
interval duration above) to include this host in success rate based outlier detection.
|
java.lang.Integer |
getSuccessRateStdevFactor()
This factor is used to determine the ejection threshold for success rate outlier ejection.
|
OutlierDetection |
set(java.lang.String fieldName,
java.lang.Object value) |
OutlierDetection |
setBaseEjectionTime(Duration baseEjectionTime)
The base time that a host is ejected for.
|
OutlierDetection |
setConsecutiveErrors(java.lang.Integer consecutiveErrors)
Number of errors before a host is ejected from the connection pool.
|
OutlierDetection |
setConsecutiveGatewayFailure(java.lang.Integer consecutiveGatewayFailure)
The number of consecutive gateway failures (502, 503, 504 status or connection errors that are
mapped to one of those status codes) before a consecutive gateway failure ejection occurs.
|
OutlierDetection |
setEnforcingConsecutiveErrors(java.lang.Integer enforcingConsecutiveErrors)
The percentage chance that a host will be actually ejected when an outlier status is detected
through consecutive 5xx.
|
OutlierDetection |
setEnforcingConsecutiveGatewayFailure(java.lang.Integer enforcingConsecutiveGatewayFailure)
The percentage chance that a host will be actually ejected when an outlier status is detected
through consecutive gateway failures.
|
OutlierDetection |
setEnforcingSuccessRate(java.lang.Integer enforcingSuccessRate)
The percentage chance that a host will be actually ejected when an outlier status is detected
through success rate statistics.
|
OutlierDetection |
setInterval(Duration interval)
Time interval between ejection sweep analysis.
|
OutlierDetection |
setMaxEjectionPercent(java.lang.Integer maxEjectionPercent)
Maximum percentage of hosts in the load balancing pool for the backend service that can be
ejected.
|
OutlierDetection |
setSuccessRateMinimumHosts(java.lang.Integer successRateMinimumHosts)
The number of hosts in a cluster that must have enough request volume to detect success rate
outliers.
|
OutlierDetection |
setSuccessRateRequestVolume(java.lang.Integer successRateRequestVolume)
The minimum number of total requests that must be collected in one interval (as defined by the
interval duration above) to include this host in success rate based outlier detection.
|
OutlierDetection |
setSuccessRateStdevFactor(java.lang.Integer successRateStdevFactor)
This factor is used to determine the ejection threshold for success rate outlier ejection.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Duration getBaseEjectionTime()
null
for nonepublic OutlierDetection setBaseEjectionTime(Duration baseEjectionTime)
baseEjectionTime
- baseEjectionTime or null
for nonepublic java.lang.Integer getConsecutiveErrors()
null
for nonepublic OutlierDetection setConsecutiveErrors(java.lang.Integer consecutiveErrors)
consecutiveErrors
- consecutiveErrors or null
for nonepublic java.lang.Integer getConsecutiveGatewayFailure()
null
for nonepublic OutlierDetection setConsecutiveGatewayFailure(java.lang.Integer consecutiveGatewayFailure)
consecutiveGatewayFailure
- consecutiveGatewayFailure or null
for nonepublic java.lang.Integer getEnforcingConsecutiveErrors()
null
for nonepublic OutlierDetection setEnforcingConsecutiveErrors(java.lang.Integer enforcingConsecutiveErrors)
enforcingConsecutiveErrors
- enforcingConsecutiveErrors or null
for nonepublic java.lang.Integer getEnforcingConsecutiveGatewayFailure()
null
for nonepublic OutlierDetection setEnforcingConsecutiveGatewayFailure(java.lang.Integer enforcingConsecutiveGatewayFailure)
enforcingConsecutiveGatewayFailure
- enforcingConsecutiveGatewayFailure or null
for nonepublic java.lang.Integer getEnforcingSuccessRate()
null
for nonepublic OutlierDetection setEnforcingSuccessRate(java.lang.Integer enforcingSuccessRate)
enforcingSuccessRate
- enforcingSuccessRate or null
for nonepublic Duration getInterval()
null
for nonepublic OutlierDetection setInterval(Duration interval)
interval
- interval or null
for nonepublic java.lang.Integer getMaxEjectionPercent()
null
for nonepublic OutlierDetection setMaxEjectionPercent(java.lang.Integer maxEjectionPercent)
maxEjectionPercent
- maxEjectionPercent or null
for nonepublic java.lang.Integer getSuccessRateMinimumHosts()
null
for nonepublic OutlierDetection setSuccessRateMinimumHosts(java.lang.Integer successRateMinimumHosts)
successRateMinimumHosts
- successRateMinimumHosts or null
for nonepublic java.lang.Integer getSuccessRateRequestVolume()
null
for nonepublic OutlierDetection setSuccessRateRequestVolume(java.lang.Integer successRateRequestVolume)
successRateRequestVolume
- successRateRequestVolume or null
for nonepublic java.lang.Integer getSuccessRateStdevFactor()
null
for nonepublic OutlierDetection setSuccessRateStdevFactor(java.lang.Integer successRateStdevFactor)
successRateStdevFactor
- successRateStdevFactor or null
for nonepublic OutlierDetection set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public OutlierDetection clone()
clone
in class com.google.api.client.json.GenericJson