Probe Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. Probe
- com.
Implements
public final class Probe
implements JsonSerializable<Probe>
Probe describes a health check to be performed against an App Instance to determine whether it is alive or ready to receive traffic.
Constructor | Description |
---|---|
Probe() |
Creates an instance of Probe class. |
Modifier and Type | Method and Description |
---|---|
boolean |
disable Get the disable |
Integer |
failure Get the failure |
static Probe |
from Reads an instance of Probe from the Json |
Integer |
initial Get the initial |
Integer |
period Get the period |
Probe |
probe Get the probe |
Integer |
success Get the success |
Integer |
timeout Get the timeout |
Json |
to |
void |
validate()
Validates the instance. |
Probe |
with Set the disable |
Probe |
with Set the failure |
Probe |
with Set the initial |
Probe |
with Set the period |
Probe |
with Set the probe |
Probe |
with Set the success |
Probe |
with Set the timeout |
Methods inherited from java.lang.Object
Probe
public Probe()
Creates an instance of Probe class.
disableProbe
public boolean disableProbe()
Get the disableProbe property: Indicate whether the probe is disabled.
Returns:
failureThreshold
public Integer failureThreshold()
Get the failureThreshold property: Minimum consecutive failures for the probe to be considered failed after having succeeded. Minimum value is 1.
Returns:
fromJson
public static Probe fromJson(JsonReader jsonReader)
Reads an instance of Probe from the JsonReader.
Parameters:
Returns:
Throws:
initialDelaySeconds
public Integer initialDelaySeconds()
Get the initialDelaySeconds property: Number of seconds after the App Instance has started before probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle\#container-probes.
Returns:
periodSeconds
public Integer periodSeconds()
Get the periodSeconds property: How often (in seconds) to perform the probe. Minimum value is 1.
Returns:
probeAction
public ProbeAction probeAction()
Get the probeAction property: The action of the probe.
Returns:
successThreshold
public Integer successThreshold()
Get the successThreshold property: Minimum consecutive successes for the probe to be considered successful after having failed. Must be 1 for liveness and startup. Minimum value is 1.
Returns:
timeoutSeconds
public Integer timeoutSeconds()
Get the timeoutSeconds property: Number of seconds after which the probe times out. Minimum value is 1.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDisableProbe
public Probe withDisableProbe(boolean disableProbe)
Set the disableProbe property: Indicate whether the probe is disabled.
Parameters:
Returns:
withFailureThreshold
public Probe withFailureThreshold(Integer failureThreshold)
Set the failureThreshold property: Minimum consecutive failures for the probe to be considered failed after having succeeded. Minimum value is 1.
Parameters:
Returns:
withInitialDelaySeconds
public Probe withInitialDelaySeconds(Integer initialDelaySeconds)
Set the initialDelaySeconds property: Number of seconds after the App Instance has started before probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle\#container-probes.
Parameters:
Returns:
withPeriodSeconds
public Probe withPeriodSeconds(Integer periodSeconds)
Set the periodSeconds property: How often (in seconds) to perform the probe. Minimum value is 1.
Parameters:
Returns:
withProbeAction
public Probe withProbeAction(ProbeAction probeAction)
Set the probeAction property: The action of the probe.
Parameters:
Returns:
withSuccessThreshold
public Probe withSuccessThreshold(Integer successThreshold)
Set the successThreshold property: Minimum consecutive successes for the probe to be considered successful after having failed. Must be 1 for liveness and startup. Minimum value is 1.
Parameters:
Returns:
withTimeoutSeconds
public Probe withTimeoutSeconds(Integer timeoutSeconds)
Set the timeoutSeconds property: Number of seconds after which the probe times out. Minimum value is 1.
Parameters:
Returns:
Azure SDK for Java geri bildirimi
Azure SDK for Java, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: