Class ProbeSettings
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ProbeSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ProbeSettings>
public final class ProbeSettings
extends Object
implements com.azure.json.JsonSerializable<ProbeSettings>
Deployment container liveness/readiness probe configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the failureThreshold property: The number of failures to allow before returning an unhealthy status.static ProbeSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ProbeSettings from the JsonReader.Get the initialDelay property: The delay before the first probe in ISO 8601 format.period()Get the period property: The length of time between probes in ISO 8601 format.Get the successThreshold property: The number of successful probes before returning a healthy status.timeout()Get the timeout property: The probe timeout in ISO 8601 format.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withFailureThreshold(Integer failureThreshold) Set the failureThreshold property: The number of failures to allow before returning an unhealthy status.withInitialDelay(Duration initialDelay) Set the initialDelay property: The delay before the first probe in ISO 8601 format.withPeriod(Duration period) Set the period property: The length of time between probes in ISO 8601 format.withSuccessThreshold(Integer successThreshold) Set the successThreshold property: The number of successful probes before returning a healthy status.withTimeout(Duration timeout) Set the timeout property: The probe timeout in ISO 8601 format.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ProbeSettings
public ProbeSettings()Creates an instance of ProbeSettings class.
-
-
Method Details
-
failureThreshold
Get the failureThreshold property: The number of failures to allow before returning an unhealthy status.- Returns:
- the failureThreshold value.
-
withFailureThreshold
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.
-
successThreshold
Get the successThreshold property: The number of successful probes before returning a healthy status.- Returns:
- the successThreshold value.
-
withSuccessThreshold
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
Get the timeout property: The probe timeout in ISO 8601 format.- Returns:
- the timeout value.
-
withTimeout
Set the timeout property: The probe timeout in ISO 8601 format.- Parameters:
timeout- the timeout value to set.- Returns:
- the ProbeSettings object itself.
-
period
Get the period property: The length of time between probes in ISO 8601 format.- Returns:
- the period value.
-
withPeriod
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.
-
initialDelay
Get the initialDelay property: The delay before the first probe in ISO 8601 format.- Returns:
- the initialDelay value.
-
withInitialDelay
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ProbeSettings>- Throws:
IOException
-
fromJson
Reads an instance of ProbeSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ProbeSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ProbeSettings.
-