public final class ResponseBasedOriginErrorDetectionParameters extends Object
| Constructor and Description |
|---|
ResponseBasedOriginErrorDetectionParameters() |
| Modifier and Type | Method and Description |
|---|---|
List<HttpErrorRangeParameters> |
httpErrorRanges()
Get the httpErrorRanges property: The list of Http status code ranges that are considered as server errors for
origin and it is marked as unhealthy.
|
ResponseBasedDetectedErrorTypes |
responseBasedDetectedErrorTypes()
Get the responseBasedDetectedErrorTypes property: Type of response errors for real user requests for which origin
will be deemed unhealthy.
|
Integer |
responseBasedFailoverThresholdPercentage()
Get the responseBasedFailoverThresholdPercentage property: The percentage of failed requests in the sample where
failover should trigger.
|
void |
validate()
Validates the instance.
|
ResponseBasedOriginErrorDetectionParameters |
withHttpErrorRanges(List<HttpErrorRangeParameters> httpErrorRanges)
Set the httpErrorRanges property: The list of Http status code ranges that are considered as server errors for
origin and it is marked as unhealthy.
|
ResponseBasedOriginErrorDetectionParameters |
withResponseBasedDetectedErrorTypes(ResponseBasedDetectedErrorTypes responseBasedDetectedErrorTypes)
Set the responseBasedDetectedErrorTypes property: Type of response errors for real user requests for which origin
will be deemed unhealthy.
|
ResponseBasedOriginErrorDetectionParameters |
withResponseBasedFailoverThresholdPercentage(Integer responseBasedFailoverThresholdPercentage)
Set the responseBasedFailoverThresholdPercentage property: The percentage of failed requests in the sample where
failover should trigger.
|
public ResponseBasedOriginErrorDetectionParameters()
public ResponseBasedDetectedErrorTypes responseBasedDetectedErrorTypes()
public ResponseBasedOriginErrorDetectionParameters withResponseBasedDetectedErrorTypes(ResponseBasedDetectedErrorTypes responseBasedDetectedErrorTypes)
responseBasedDetectedErrorTypes - the responseBasedDetectedErrorTypes value to set.public Integer responseBasedFailoverThresholdPercentage()
public ResponseBasedOriginErrorDetectionParameters withResponseBasedFailoverThresholdPercentage(Integer responseBasedFailoverThresholdPercentage)
responseBasedFailoverThresholdPercentage - the responseBasedFailoverThresholdPercentage value to set.public List<HttpErrorRangeParameters> httpErrorRanges()
public ResponseBasedOriginErrorDetectionParameters withHttpErrorRanges(List<HttpErrorRangeParameters> httpErrorRanges)
httpErrorRanges - the httpErrorRanges value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.