AutoHealTriggers Class

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

Implements

public final class AutoHealTriggers
implements JsonSerializable<AutoHealTriggers>

Triggers for auto-heal.

Constructor Summary

Constructor Description
AutoHealTriggers()

Creates an instance of AutoHealTriggers class.

Method Summary

Modifier and Type Method and Description
static AutoHealTriggers fromJson(JsonReader jsonReader)

Reads an instance of AutoHealTriggers from the JsonReader.

Integer privateBytesInKB()

Get the privateBytesInKB property: A rule based on private bytes.

RequestsBasedTrigger requests()

Get the requests property: A rule based on total requests.

SlowRequestsBasedTrigger slowRequests()

Get the slowRequests property: A rule based on request execution time.

List<SlowRequestsBasedTrigger> slowRequestsWithPath()

Get the slowRequestsWithPath property: A rule based on multiple Slow Requests Rule with path.

List<StatusCodesBasedTrigger> statusCodes()

Get the statusCodes property: A rule based on status codes.

List<StatusCodesRangeBasedTrigger> statusCodesRange()

Get the statusCodesRange property: A rule based on status codes ranges.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutoHealTriggers withPrivateBytesInKB(Integer privateBytesInKB)

Set the privateBytesInKB property: A rule based on private bytes.

AutoHealTriggers withRequests(RequestsBasedTrigger requests)

Set the requests property: A rule based on total requests.

AutoHealTriggers withSlowRequests(SlowRequestsBasedTrigger slowRequests)

Set the slowRequests property: A rule based on request execution time.

AutoHealTriggers withSlowRequestsWithPath(List<SlowRequestsBasedTrigger> slowRequestsWithPath)

Set the slowRequestsWithPath property: A rule based on multiple Slow Requests Rule with path.

AutoHealTriggers withStatusCodes(List<StatusCodesBasedTrigger> statusCodes)

Set the statusCodes property: A rule based on status codes.

AutoHealTriggers withStatusCodesRange(List<StatusCodesRangeBasedTrigger> statusCodesRange)

Set the statusCodesRange property: A rule based on status codes ranges.

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:

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.

privateBytesInKB

public Integer privateBytesInKB()

Get the privateBytesInKB property: A rule based on private bytes.

Returns:

the privateBytesInKB value.

requests

public RequestsBasedTrigger requests()

Get the requests property: A rule based on total requests.

Returns:

the requests value.

slowRequests

public SlowRequestsBasedTrigger slowRequests()

Get the slowRequests property: A rule based on request execution time.

Returns:

the slowRequests value.

slowRequestsWithPath

public List slowRequestsWithPath()

Get the slowRequestsWithPath property: A rule based on multiple Slow Requests Rule with path.

Returns:

the slowRequestsWithPath value.

statusCodes

public List statusCodes()

Get the statusCodes property: A rule based on status codes.

Returns:

the statusCodes value.

statusCodesRange

public List statusCodesRange()

Get the statusCodesRange property: A rule based on status codes ranges.

Returns:

the statusCodesRange value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

withSlowRequestsWithPath

public AutoHealTriggers withSlowRequestsWithPath(List 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.

withStatusCodes

public AutoHealTriggers withStatusCodes(List statusCodes)

Set the statusCodes property: A rule based on status codes.

Parameters:

statusCodes - the statusCodes value to set.

Returns:

the AutoHealTriggers object itself.

withStatusCodesRange

public AutoHealTriggers withStatusCodesRange(List statusCodesRange)

Set the statusCodesRange property: A rule based on status codes ranges.

Parameters:

statusCodesRange - the statusCodesRange value to set.

Returns:

the AutoHealTriggers object itself.

Applies to