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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
OutlierDetection() |
Modifier and Type | Method and Description |
---|---|
OutlierDetection |
clone() |
Duration |
getBaseEjectionTime()
The base time that a backend endpoint is ejected for.
|
Integer |
getConsecutiveErrors()
Number of consecutive errors before a backend endpoint is ejected from the load balancing pool.
|
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.
|
Integer |
getEnforcingConsecutiveErrors()
The percentage chance that a backend endpoint will be ejected when an outlier status is
detected through consecutive 5xx.
|
Integer |
getEnforcingConsecutiveGatewayFailure()
The percentage chance that a backend endpoint will be ejected when an outlier status is
detected through consecutive gateway failures.
|
Integer |
getEnforcingSuccessRate()
The percentage chance that a backend endpoint will be ejected when an outlier status is
detected through success rate statistics.
|
Duration |
getInterval()
Time interval between ejection analysis sweeps.
|
Integer |
getMaxEjectionPercent()
Maximum percentage of backend endpoints in the load balancing pool for the backend service that
can be ejected if the ejection conditions are met.
|
Integer |
getSuccessRateMinimumHosts()
The number of backend endpoints in the load balancing pool that must have enough request volume
to detect success rate outliers.
|
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 backend endpoint in success rate based outlier
detection.
|
Integer |
getSuccessRateStdevFactor()
This factor is used to determine the ejection threshold for success rate outlier ejection.
|
OutlierDetection |
set(String fieldName,
Object value) |
OutlierDetection |
setBaseEjectionTime(Duration baseEjectionTime)
The base time that a backend endpoint is ejected for.
|
OutlierDetection |
setConsecutiveErrors(Integer consecutiveErrors)
Number of consecutive errors before a backend endpoint is ejected from the load balancing pool.
|
OutlierDetection |
setConsecutiveGatewayFailure(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(Integer enforcingConsecutiveErrors)
The percentage chance that a backend endpoint will be ejected when an outlier status is
detected through consecutive 5xx.
|
OutlierDetection |
setEnforcingConsecutiveGatewayFailure(Integer enforcingConsecutiveGatewayFailure)
The percentage chance that a backend endpoint will be ejected when an outlier status is
detected through consecutive gateway failures.
|
OutlierDetection |
setEnforcingSuccessRate(Integer enforcingSuccessRate)
The percentage chance that a backend endpoint will be ejected when an outlier status is
detected through success rate statistics.
|
OutlierDetection |
setInterval(Duration interval)
Time interval between ejection analysis sweeps.
|
OutlierDetection |
setMaxEjectionPercent(Integer maxEjectionPercent)
Maximum percentage of backend endpoints in the load balancing pool for the backend service that
can be ejected if the ejection conditions are met.
|
OutlierDetection |
setSuccessRateMinimumHosts(Integer successRateMinimumHosts)
The number of backend endpoints in the load balancing pool that must have enough request volume
to detect success rate outliers.
|
OutlierDetection |
setSuccessRateRequestVolume(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 backend endpoint in success rate based outlier
detection.
|
OutlierDetection |
setSuccessRateStdevFactor(Integer successRateStdevFactor)
This factor is used to determine the ejection threshold for success rate outlier ejection.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Duration getBaseEjectionTime()
null
for nonepublic OutlierDetection setBaseEjectionTime(Duration baseEjectionTime)
baseEjectionTime
- baseEjectionTime or null
for nonepublic Integer getConsecutiveErrors()
null
for nonepublic OutlierDetection setConsecutiveErrors(Integer consecutiveErrors)
consecutiveErrors
- consecutiveErrors or null
for nonepublic Integer getConsecutiveGatewayFailure()
null
for nonepublic OutlierDetection setConsecutiveGatewayFailure(Integer consecutiveGatewayFailure)
consecutiveGatewayFailure
- consecutiveGatewayFailure or null
for nonepublic Integer getEnforcingConsecutiveErrors()
null
for nonepublic OutlierDetection setEnforcingConsecutiveErrors(Integer enforcingConsecutiveErrors)
enforcingConsecutiveErrors
- enforcingConsecutiveErrors or null
for nonepublic Integer getEnforcingConsecutiveGatewayFailure()
null
for nonepublic OutlierDetection setEnforcingConsecutiveGatewayFailure(Integer enforcingConsecutiveGatewayFailure)
enforcingConsecutiveGatewayFailure
- enforcingConsecutiveGatewayFailure or null
for nonepublic Integer getEnforcingSuccessRate()
null
for nonepublic OutlierDetection setEnforcingSuccessRate(Integer enforcingSuccessRate)
enforcingSuccessRate
- enforcingSuccessRate or null
for nonepublic Duration getInterval()
null
for nonepublic OutlierDetection setInterval(Duration interval)
interval
- interval or null
for nonepublic Integer getMaxEjectionPercent()
null
for nonepublic OutlierDetection setMaxEjectionPercent(Integer maxEjectionPercent)
maxEjectionPercent
- maxEjectionPercent or null
for nonepublic Integer getSuccessRateMinimumHosts()
null
for nonepublic OutlierDetection setSuccessRateMinimumHosts(Integer successRateMinimumHosts)
successRateMinimumHosts
- successRateMinimumHosts or null
for nonepublic Integer getSuccessRateRequestVolume()
null
for nonepublic OutlierDetection setSuccessRateRequestVolume(Integer successRateRequestVolume)
successRateRequestVolume
- successRateRequestVolume or null
for nonepublic Integer getSuccessRateStdevFactor()
null
for nonepublic OutlierDetection setSuccessRateStdevFactor(Integer successRateStdevFactor)
successRateStdevFactor
- successRateStdevFactor or null
for nonepublic OutlierDetection set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public OutlierDetection clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.