public class Probe extends AbstractModel
skipSign
Constructor and Description |
---|
Probe() |
Probe(Probe source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getFailureThreshold()
Get Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3.
|
Long |
getInitialDelaySeconds()
Get Number of seconds after the container has started before liveness probes are initiated.
|
Long |
getPeriodSeconds()
Get How often (in seconds) to perform the probe.
|
Long |
getSuccessThreshold()
Get Minimum consecutive successes for the probe to be considered successful after having failed.Defaults to 1.
|
Long |
getTimeoutSeconds()
Get Number of seconds after which the probe times out.
|
void |
setFailureThreshold(Long FailureThreshold)
Set Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3.
|
void |
setInitialDelaySeconds(Long InitialDelaySeconds)
Set Number of seconds after the container has started before liveness probes are initiated.
|
void |
setPeriodSeconds(Long PeriodSeconds)
Set How often (in seconds) to perform the probe.
|
void |
setSuccessThreshold(Long SuccessThreshold)
Set Minimum consecutive successes for the probe to be considered successful after having failed.Defaults to 1.
|
void |
setTimeoutSeconds(Long TimeoutSeconds)
Set Number of seconds after which the probe times out.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, getSkipSign, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public Probe()
public Probe(Probe source)
public Long getInitialDelaySeconds()
public void setInitialDelaySeconds(Long InitialDelaySeconds)
InitialDelaySeconds
- Number of seconds after the container has started before liveness probes are initiated.
注意:此字段可能返回 null,表示取不到有效值。public Long getTimeoutSeconds()
public void setTimeoutSeconds(Long TimeoutSeconds)
TimeoutSeconds
- Number of seconds after which the probe times out.
Defaults to 1 second. Minimum value is 1.
注意:此字段可能返回 null,表示取不到有效值。public Long getPeriodSeconds()
public void setPeriodSeconds(Long PeriodSeconds)
PeriodSeconds
- How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.
注意:此字段可能返回 null,表示取不到有效值。public Long getSuccessThreshold()
public void setSuccessThreshold(Long SuccessThreshold)
SuccessThreshold
- Minimum consecutive successes for the probe to be considered successful after having failed.Defaults to 1. Must be 1 for liveness. Minimum value is 1.
注意:此字段可能返回 null,表示取不到有效值。public Long getFailureThreshold()
public void setFailureThreshold(Long FailureThreshold)
FailureThreshold
- Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3. Minimum value is 1.
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2023. All rights reserved.