AutoHealTriggers Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. AutoHealTriggers
- com.
Implements
public final class AutoHealTriggers
implements JsonSerializable<AutoHealTriggers>
Triggers for auto-heal.
Constructor Summary
Constructor | Description |
---|---|
AutoHealTriggers() |
Creates an instance of Auto |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Auto |
fromJson(JsonReader jsonReader)
Reads an instance of Auto |
Integer |
privateBytesInKB()
Get the private |
Requests |
requests()
Get the requests property: A rule based on total requests. |
Slow |
slowRequests()
Get the slow |
List<Slow |
slowRequestsWithPath()
Get the slow |
List<Status |
statusCodes()
Get the status |
List<Status |
statusCodesRange()
Get the status |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Auto |
withPrivateBytesInKB(Integer privateBytesInKB)
Set the private |
Auto |
withRequests(RequestsBasedTrigger requests)
Set the requests property: A rule based on total requests. |
Auto |
withSlowRequests(SlowRequestsBasedTrigger slowRequests)
Set the slow |
Auto |
withSlowRequestsWithPath(List<SlowRequestsBasedTrigger> slowRequestsWithPath)
Set the slow |
Auto |
withStatusCodes(List<StatusCodesBasedTrigger> statusCodes)
Set the status |
Auto |
withStatusCodesRange(List<StatusCodesRangeBasedTrigger> statusCodesRange)
Set the status |
Methods inherited from java.lang.Object
Constructor Details
AutoHealTriggers
public AutoHealTriggers()
Creates an instance of AutoHealTriggers class.
Method Details
fromJson
public static AutoHealTriggers fromJson(JsonReader jsonReader)
Reads an instance of AutoHealTriggers from the JsonReader.
Parameters:
Returns:
Throws:
privateBytesInKB
public Integer privateBytesInKB()
Get the privateBytesInKB property: A rule based on private bytes.
Returns:
requests
public RequestsBasedTrigger requests()
Get the requests property: A rule based on total requests.
Returns:
slowRequests
public SlowRequestsBasedTrigger slowRequests()
Get the slowRequests property: A rule based on request execution time.
Returns:
slowRequestsWithPath
public List
Get the slowRequestsWithPath property: A rule based on multiple Slow Requests Rule with path.
Returns:
statusCodes
public List
Get the statusCodes property: A rule based on status codes.
Returns:
statusCodesRange
public List
Get the statusCodesRange property: A rule based on status codes ranges.
Returns:
toJson
validate
public void validate()
Validates the instance.
withPrivateBytesInKB
public AutoHealTriggers withPrivateBytesInKB(Integer privateBytesInKB)
Set the privateBytesInKB property: A rule based on private bytes.
Parameters:
Returns:
withRequests
public AutoHealTriggers withRequests(RequestsBasedTrigger requests)
Set the requests property: A rule based on total requests.
Parameters:
Returns:
withSlowRequests
public AutoHealTriggers withSlowRequests(SlowRequestsBasedTrigger slowRequests)
Set the slowRequests property: A rule based on request execution time.
Parameters:
Returns:
withSlowRequestsWithPath
public AutoHealTriggers withSlowRequestsWithPath(List
Set the slowRequestsWithPath property: A rule based on multiple Slow Requests Rule with path.
Parameters:
Returns:
withStatusCodes
public AutoHealTriggers withStatusCodes(List
Set the statusCodes property: A rule based on status codes.
Parameters:
Returns:
withStatusCodesRange
public AutoHealTriggers withStatusCodesRange(List
Set the statusCodesRange property: A rule based on status codes ranges.
Parameters:
Returns:
Applies to
Azure SDK for Java