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 Summary
Constructor | Description |
---|---|
Probe() |
Creates an instance of Probe class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean |
disableProbe()
Get the disable |
Integer |
failureThreshold()
Get the failure |
static Probe |
fromJson(JsonReader jsonReader)
Reads an instance of Probe from the Json |
Integer |
initialDelaySeconds()
Get the initial |
Integer |
periodSeconds()
Get the period |
Probe |
probeAction()
Get the probe |
Integer |
successThreshold()
Get the success |
Integer |
timeoutSeconds()
Get the timeout |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Probe |
withDisableProbe(boolean disableProbe)
Set the disable |
Probe |
withFailureThreshold(Integer failureThreshold)
Set the failure |
Probe |
withInitialDelaySeconds(Integer initialDelaySeconds)
Set the initial |
Probe |
withPeriodSeconds(Integer periodSeconds)
Set the period |
Probe |
withProbeAction(ProbeAction probeAction)
Set the probe |
Probe |
withSuccessThreshold(Integer successThreshold)
Set the success |
Probe |
withTimeoutSeconds(Integer timeoutSeconds)
Set the timeout |
Methods inherited from java.lang.Object
Constructor Details
Probe
public Probe()
Creates an instance of Probe class.
Method Details
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:
Applies to
Azure SDK for Java