Class Probe
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.tke.v20180525.models.Probe
-
public class Probe extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetFailureThreshold()Get Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3.LonggetInitialDelaySeconds()Get Number of seconds after the container has started before liveness probes are initiated.LonggetPeriodSeconds()Get How often (in seconds) to perform the probe.LonggetSuccessThreshold()Get Minimum consecutive successes for the probe to be considered successful after having failed.Defaults to 1.LonggetTimeoutSeconds()Get Number of seconds after which the probe times out.voidsetFailureThreshold(Long FailureThreshold)Set Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3.voidsetInitialDelaySeconds(Long InitialDelaySeconds)Set Number of seconds after the container has started before liveness probes are initiated.voidsetPeriodSeconds(Long PeriodSeconds)Set How often (in seconds) to perform the probe.voidsetSuccessThreshold(Long SuccessThreshold)Set Minimum consecutive successes for the probe to be considered successful after having failed.Defaults to 1.voidsetTimeoutSeconds(Long TimeoutSeconds)Set Number of seconds after which the probe times out.voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
Probe
public Probe()
-
Probe
public 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.
-
-
Method Detail
-
getInitialDelaySeconds
public Long getInitialDelaySeconds()
Get Number of seconds after the container has started before liveness probes are initiated. 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- InitialDelaySeconds Number of seconds after the container has started before liveness probes are initiated. 注意:此字段可能返回 null,表示取不到有效值。
-
setInitialDelaySeconds
public void setInitialDelaySeconds(Long InitialDelaySeconds)
Set Number of seconds after the container has started before liveness probes are initiated. 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
InitialDelaySeconds- Number of seconds after the container has started before liveness probes are initiated. 注意:此字段可能返回 null,表示取不到有效值。
-
getTimeoutSeconds
public Long getTimeoutSeconds()
Get Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- TimeoutSeconds Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。
-
setTimeoutSeconds
public void setTimeoutSeconds(Long TimeoutSeconds)
Set Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
TimeoutSeconds- Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。
-
getPeriodSeconds
public Long getPeriodSeconds()
Get How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- PeriodSeconds How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。
-
setPeriodSeconds
public void setPeriodSeconds(Long PeriodSeconds)
Set How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
PeriodSeconds- How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。
-
getSuccessThreshold
public Long getSuccessThreshold()
Get 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,表示取不到有效值。- Returns:
- 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,表示取不到有效值。
-
setSuccessThreshold
public void setSuccessThreshold(Long SuccessThreshold)
Set 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,表示取不到有效值。- Parameters:
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,表示取不到有效值。
-
getFailureThreshold
public Long getFailureThreshold()
Get Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- FailureThreshold Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。
-
setFailureThreshold
public void setFailureThreshold(Long FailureThreshold)
Set Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
FailureThreshold- Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3. Minimum value is 1. 注意:此字段可能返回 null,表示取不到有效值。
-
-