Class Probe
java.lang.Object
com.azure.resourcemanager.appplatform.models.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the disableProbe property: Indicate whether the probe is disabled.Get the failureThreshold property: Minimum consecutive failures for the probe to be considered failed after having succeeded.Get the initialDelaySeconds property: Number of seconds after the App Instance has started before probes are initiated.Get the periodSeconds property: How often (in seconds) to perform the probe.Get the probeAction property: The action of the probe.Get the successThreshold property: Minimum consecutive successes for the probe to be considered successful after having failed.Get the timeoutSeconds property: Number of seconds after which the probe times out.voidvalidate()Validates the instance.withDisableProbe(boolean disableProbe) Set the disableProbe property: Indicate whether the probe is disabled.withFailureThreshold(Integer failureThreshold) Set the failureThreshold property: Minimum consecutive failures for the probe to be considered failed after having succeeded.withInitialDelaySeconds(Integer initialDelaySeconds) Set the initialDelaySeconds property: Number of seconds after the App Instance has started before probes are initiated.withPeriodSeconds(Integer periodSeconds) Set the periodSeconds property: How often (in seconds) to perform the probe.withProbeAction(ProbeAction probeAction) Set the probeAction property: The action of the probe.withSuccessThreshold(Integer successThreshold) Set the successThreshold property: Minimum consecutive successes for the probe to be considered successful after having failed.withTimeoutSeconds(Integer timeoutSeconds) Set the timeoutSeconds property: Number of seconds after which the probe times out.
-
Constructor Details
-
Probe
public Probe()
-
-
Method Details
-
probeAction
Get the probeAction property: The action of the probe.- Returns:
- the probeAction value.
-
withProbeAction
Set the probeAction property: The action of the probe.- Parameters:
probeAction- the probeAction value to set.- Returns:
- the Probe object itself.
-
disableProbe
public boolean disableProbe()Get the disableProbe property: Indicate whether the probe is disabled.- Returns:
- the disableProbe value.
-
withDisableProbe
Set the disableProbe property: Indicate whether the probe is disabled.- Parameters:
disableProbe- the disableProbe value to set.- Returns:
- the Probe object itself.
-
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:
- the initialDelaySeconds value.
-
withInitialDelaySeconds
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:
initialDelaySeconds- the initialDelaySeconds value to set.- Returns:
- the Probe object itself.
-
periodSeconds
Get the periodSeconds property: How often (in seconds) to perform the probe. Minimum value is 1.- Returns:
- the periodSeconds value.
-
withPeriodSeconds
Set the periodSeconds property: How often (in seconds) to perform the probe. Minimum value is 1.- Parameters:
periodSeconds- the periodSeconds value to set.- Returns:
- the Probe object itself.
-
timeoutSeconds
Get the timeoutSeconds property: Number of seconds after which the probe times out. Minimum value is 1.- Returns:
- the timeoutSeconds value.
-
withTimeoutSeconds
Set the timeoutSeconds property: Number of seconds after which the probe times out. Minimum value is 1.- Parameters:
timeoutSeconds- the timeoutSeconds value to set.- Returns:
- the Probe object itself.
-
failureThreshold
Get the failureThreshold property: Minimum consecutive failures for the probe to be considered failed after having succeeded. Minimum value is 1.- Returns:
- the failureThreshold value.
-
withFailureThreshold
Set the failureThreshold property: Minimum consecutive failures for the probe to be considered failed after having succeeded. Minimum value is 1.- Parameters:
failureThreshold- the failureThreshold value to set.- Returns:
- the Probe object itself.
-
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:
- the successThreshold value.
-
withSuccessThreshold
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:
successThreshold- the successThreshold value to set.- Returns:
- the Probe object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-