Class AutoHealTriggers
java.lang.Object
com.azure.resourcemanager.appservice.models.AutoHealTriggers
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AutoHealTriggers>
public final class AutoHealTriggers
extends Object
implements com.azure.json.JsonSerializable<AutoHealTriggers>
Triggers for auto-heal.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AutoHealTriggers
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AutoHealTriggers from the JsonReader.Get the privateBytesInKB property: A rule based on private bytes.requests()
Get the requests property: A rule based on total requests.Get the slowRequests property: A rule based on request execution time.Get the slowRequestsWithPath property: A rule based on multiple Slow Requests Rule with path.Get the statusCodes property: A rule based on status codes.Get the statusCodesRange property: A rule based on status codes ranges.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withPrivateBytesInKB
(Integer privateBytesInKB) Set the privateBytesInKB property: A rule based on private bytes.withRequests
(RequestsBasedTrigger requests) Set the requests property: A rule based on total requests.withSlowRequests
(SlowRequestsBasedTrigger slowRequests) Set the slowRequests property: A rule based on request execution time.withSlowRequestsWithPath
(List<SlowRequestsBasedTrigger> slowRequestsWithPath) Set the slowRequestsWithPath property: A rule based on multiple Slow Requests Rule with path.withStatusCodes
(List<StatusCodesBasedTrigger> statusCodes) Set the statusCodes property: A rule based on status codes.withStatusCodesRange
(List<StatusCodesRangeBasedTrigger> statusCodesRange) Set the statusCodesRange property: A rule based on status codes ranges.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AutoHealTriggers
public AutoHealTriggers()Creates an instance of AutoHealTriggers class.
-
-
Method Details
-
requests
Get the requests property: A rule based on total requests.- Returns:
- the requests value.
-
withRequests
Set the requests property: A rule based on total requests.- Parameters:
requests
- the requests value to set.- Returns:
- the AutoHealTriggers object itself.
-
privateBytesInKB
Get the privateBytesInKB property: A rule based on private bytes.- Returns:
- the privateBytesInKB value.
-
withPrivateBytesInKB
Set the privateBytesInKB property: A rule based on private bytes.- Parameters:
privateBytesInKB
- the privateBytesInKB value to set.- Returns:
- the AutoHealTriggers object itself.
-
statusCodes
Get the statusCodes property: A rule based on status codes.- Returns:
- the statusCodes value.
-
withStatusCodes
Set the statusCodes property: A rule based on status codes.- Parameters:
statusCodes
- the statusCodes value to set.- Returns:
- the AutoHealTriggers object itself.
-
slowRequests
Get the slowRequests property: A rule based on request execution time.- Returns:
- the slowRequests value.
-
withSlowRequests
Set the slowRequests property: A rule based on request execution time.- Parameters:
slowRequests
- the slowRequests value to set.- Returns:
- the AutoHealTriggers object itself.
-
slowRequestsWithPath
Get the slowRequestsWithPath property: A rule based on multiple Slow Requests Rule with path.- Returns:
- the slowRequestsWithPath value.
-
withSlowRequestsWithPath
public AutoHealTriggers withSlowRequestsWithPath(List<SlowRequestsBasedTrigger> slowRequestsWithPath) Set the slowRequestsWithPath property: A rule based on multiple Slow Requests Rule with path.- Parameters:
slowRequestsWithPath
- the slowRequestsWithPath value to set.- Returns:
- the AutoHealTriggers object itself.
-
statusCodesRange
Get the statusCodesRange property: A rule based on status codes ranges.- Returns:
- the statusCodesRange value.
-
withStatusCodesRange
Set the statusCodesRange property: A rule based on status codes ranges.- Parameters:
statusCodesRange
- the statusCodesRange value to set.- Returns:
- the AutoHealTriggers object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AutoHealTriggers>
- Throws:
IOException
-
fromJson
Reads an instance of AutoHealTriggers from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AutoHealTriggers 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 AutoHealTriggers.
-