Aracılığıyla paylaş


ResponseBasedOriginErrorDetectionParameters Class

  • java.lang.Object
    • com.microsoft.azure.management.cdn.ResponseBasedOriginErrorDetectionParameters

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<HttpErrorRangeParameters> httpErrorRanges()

Get the list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy.

ResponseBasedDetectedErrorTypes 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.

ResponseBasedOriginErrorDetectionParameters 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.

ResponseBasedOriginErrorDetectionParameters withResponseBasedDetectedErrorTypes(ResponseBasedDetectedErrorTypes responseBasedDetectedErrorTypes)

Set type of response errors for real user requests for which origin will be deemed unhealthy.

ResponseBasedOriginErrorDetectionParameters withResponseBasedFailoverThresholdPercentage(Integer responseBasedFailoverThresholdPercentage)

Set the percentage of failed requests in the sample where failover should trigger.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ResponseBasedOriginErrorDetectionParameters

public ResponseBasedOriginErrorDetectionParameters()

Method Details

httpErrorRanges

public List httpErrorRanges()

Get the list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy.

Returns:

the httpErrorRanges value

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:

the responseBasedDetectedErrorTypes value

responseBasedFailoverThresholdPercentage

public Integer responseBasedFailoverThresholdPercentage()

Get the percentage of failed requests in the sample where failover should trigger.

Returns:

the responseBasedFailoverThresholdPercentage value

withHttpErrorRanges

public ResponseBasedOriginErrorDetectionParameters withHttpErrorRanges(List httpErrorRanges)

Set the list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy.

Parameters:

httpErrorRanges - the httpErrorRanges value to set

Returns:

the ResponseBasedOriginErrorDetectionParameters object itself.

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:

responseBasedDetectedErrorTypes - the responseBasedDetectedErrorTypes value to set

Returns:

the ResponseBasedOriginErrorDetectionParameters object itself.

withResponseBasedFailoverThresholdPercentage

public ResponseBasedOriginErrorDetectionParameters withResponseBasedFailoverThresholdPercentage(Integer responseBasedFailoverThresholdPercentage)

Set the percentage of failed requests in the sample where failover should trigger.

Parameters:

responseBasedFailoverThresholdPercentage - the responseBasedFailoverThresholdPercentage value to set

Returns:

the ResponseBasedOriginErrorDetectionParameters object itself.

Applies to