Class AutoHealTriggers
java.lang.Object
com.azure.resourcemanager.appservice.models.AutoHealTriggers
Triggers for auto-heal.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet 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.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.
-
Constructor Details
-
AutoHealTriggers
public AutoHealTriggers()
-
-
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.
-