Class AutoHealTriggers

java.lang.Object
com.azure.resourcemanager.appservice.models.AutoHealTriggers

public final class AutoHealTriggers extends Object
Triggers for auto-heal.
  • Constructor Details

    • AutoHealTriggers

      public AutoHealTriggers()
  • Method Details

    • requests

      public RequestsBasedTrigger requests()
      Get the requests property: A rule based on total requests.
      Returns:
      the requests value.
    • withRequests

      public AutoHealTriggers withRequests(RequestsBasedTrigger requests)
      Set the requests property: A rule based on total requests.
      Parameters:
      requests - the requests value to set.
      Returns:
      the AutoHealTriggers object itself.
    • privateBytesInKB

      public Integer privateBytesInKB()
      Get the privateBytesInKB property: A rule based on private bytes.
      Returns:
      the privateBytesInKB value.
    • withPrivateBytesInKB

      public AutoHealTriggers withPrivateBytesInKB(Integer privateBytesInKB)
      Set the privateBytesInKB property: A rule based on private bytes.
      Parameters:
      privateBytesInKB - the privateBytesInKB value to set.
      Returns:
      the AutoHealTriggers object itself.
    • statusCodes

      public List<StatusCodesBasedTrigger> statusCodes()
      Get the statusCodes property: A rule based on status codes.
      Returns:
      the statusCodes value.
    • withStatusCodes

      public AutoHealTriggers withStatusCodes(List<StatusCodesBasedTrigger> statusCodes)
      Set the statusCodes property: A rule based on status codes.
      Parameters:
      statusCodes - the statusCodes value to set.
      Returns:
      the AutoHealTriggers object itself.
    • slowRequests

      public SlowRequestsBasedTrigger slowRequests()
      Get the slowRequests property: A rule based on request execution time.
      Returns:
      the slowRequests value.
    • withSlowRequests

      public AutoHealTriggers withSlowRequests(SlowRequestsBasedTrigger slowRequests)
      Set the slowRequests property: A rule based on request execution time.
      Parameters:
      slowRequests - the slowRequests value to set.
      Returns:
      the AutoHealTriggers object itself.
    • slowRequestsWithPath

      public List<SlowRequestsBasedTrigger> 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

      public List<StatusCodesRangeBasedTrigger> statusCodesRange()
      Get the statusCodesRange property: A rule based on status codes ranges.
      Returns:
      the statusCodesRange value.
    • withStatusCodesRange

      public AutoHealTriggers withStatusCodesRange(List<StatusCodesRangeBasedTrigger> statusCodesRange)
      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.