ResponseBasedOriginErrorDetectionParameters Class
- java.
lang. Object - com.
microsoft. azure. management. cdn. ResponseBasedOriginErrorDetectionParameters
- com.
public class ResponseBasedOriginErrorDetectionParameters
The JSON object that contains the properties to determine origin health using real requests/responses.
Constructor Summary
Constructor | Description | |
---|---|---|
ResponseBasedOriginErrorDetectionParameters() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.util.List<Http |
httpErrorRanges()
Get the list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy. |
Response |
responseBasedDetectedErrorTypes()
Get type of response errors for real user requests for which origin will be deemed unhealthy. |
java.lang.Integer |
responseBasedFailoverThresholdPercentage()
Get the percentage of failed requests in the sample where failover should trigger. |
Response |
withHttpErrorRanges(List<HttpErrorRangeParameters> httpErrorRanges)
Set the list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy. |
Response |
withResponseBasedDetectedErrorTypes(ResponseBasedDetectedErrorTypes responseBasedDetectedErrorTypes)
Set type of response errors for real user requests for which origin will be deemed unhealthy. |
Response |
withResponseBasedFailoverThresholdPercentage(Integer responseBasedFailoverThresholdPercentage)
Set the percentage of failed requests in the sample where failover should trigger. |
Methods inherited from java.lang.Object
Constructor Details
ResponseBasedOriginErrorDetectionParameters
public ResponseBasedOriginErrorDetectionParameters()
Method Details
httpErrorRanges
public List
Get the list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy.
Returns:
responseBasedDetectedErrorTypes
public ResponseBasedDetectedErrorTypes responseBasedDetectedErrorTypes()
Get type of response errors for real user requests for which origin will be deemed unhealthy. Possible values include: 'None', 'TcpErrorsOnly', 'TcpAndHttpErrors'.
Returns:
responseBasedFailoverThresholdPercentage
public Integer responseBasedFailoverThresholdPercentage()
Get the percentage of failed requests in the sample where failover should trigger.
Returns:
withHttpErrorRanges
public ResponseBasedOriginErrorDetectionParameters withHttpErrorRanges(List
Set the list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy.
Parameters:
Returns:
withResponseBasedDetectedErrorTypes
public ResponseBasedOriginErrorDetectionParameters withResponseBasedDetectedErrorTypes(ResponseBasedDetectedErrorTypes responseBasedDetectedErrorTypes)
Set type of response errors for real user requests for which origin will be deemed unhealthy. Possible values include: 'None', 'TcpErrorsOnly', 'TcpAndHttpErrors'.
Parameters:
Returns:
withResponseBasedFailoverThresholdPercentage
public ResponseBasedOriginErrorDetectionParameters withResponseBasedFailoverThresholdPercentage(Integer responseBasedFailoverThresholdPercentage)
Set the percentage of failed requests in the sample where failover should trigger.
Parameters:
Returns:
Applies to
Azure SDK for Java