Class ProbeSettings
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.ProbeSettings
-
public final class ProbeSettings extends Object
Deployment container liveness/readiness probe configuration.
-
-
Constructor Summary
Constructors Constructor Description ProbeSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
failureThreshold()
Get the failureThreshold property: The number of failures to allow before returning an unhealthy status.Duration
initialDelay()
Get the initialDelay property: The delay before the first probe in ISO 8601 format.Duration
period()
Get the period property: The length of time between probes in ISO 8601 format.Integer
successThreshold()
Get the successThreshold property: The number of successful probes before returning a healthy status.Duration
timeout()
Get the timeout property: The probe timeout in ISO 8601 format.void
validate()
Validates the instance.ProbeSettings
withFailureThreshold(Integer failureThreshold)
Set the failureThreshold property: The number of failures to allow before returning an unhealthy status.ProbeSettings
withInitialDelay(Duration initialDelay)
Set the initialDelay property: The delay before the first probe in ISO 8601 format.ProbeSettings
withPeriod(Duration period)
Set the period property: The length of time between probes in ISO 8601 format.ProbeSettings
withSuccessThreshold(Integer successThreshold)
Set the successThreshold property: The number of successful probes before returning a healthy status.ProbeSettings
withTimeout(Duration timeout)
Set the timeout property: The probe timeout in ISO 8601 format.
-
-
-
Method Detail
-
failureThreshold
public Integer failureThreshold()
Get the failureThreshold property: The number of failures to allow before returning an unhealthy status.- Returns:
- the failureThreshold value.
-
withFailureThreshold
public ProbeSettings withFailureThreshold(Integer failureThreshold)
Set the failureThreshold property: The number of failures to allow before returning an unhealthy status.- Parameters:
failureThreshold
- the failureThreshold value to set.- Returns:
- the ProbeSettings object itself.
-
initialDelay
public Duration initialDelay()
Get the initialDelay property: The delay before the first probe in ISO 8601 format.- Returns:
- the initialDelay value.
-
withInitialDelay
public ProbeSettings withInitialDelay(Duration initialDelay)
Set the initialDelay property: The delay before the first probe in ISO 8601 format.- Parameters:
initialDelay
- the initialDelay value to set.- Returns:
- the ProbeSettings object itself.
-
period
public Duration period()
Get the period property: The length of time between probes in ISO 8601 format.- Returns:
- the period value.
-
withPeriod
public ProbeSettings withPeriod(Duration period)
Set the period property: The length of time between probes in ISO 8601 format.- Parameters:
period
- the period value to set.- Returns:
- the ProbeSettings object itself.
-
successThreshold
public Integer successThreshold()
Get the successThreshold property: The number of successful probes before returning a healthy status.- Returns:
- the successThreshold value.
-
withSuccessThreshold
public ProbeSettings withSuccessThreshold(Integer successThreshold)
Set the successThreshold property: The number of successful probes before returning a healthy status.- Parameters:
successThreshold
- the successThreshold value to set.- Returns:
- the ProbeSettings object itself.
-
timeout
public Duration timeout()
Get the timeout property: The probe timeout in ISO 8601 format.- Returns:
- the timeout value.
-
withTimeout
public ProbeSettings withTimeout(Duration timeout)
Set the timeout property: The probe timeout in ISO 8601 format.- Parameters:
timeout
- the timeout value to set.- Returns:
- the ProbeSettings object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-