Class ResponseBasedOriginErrorDetectionParameters
java.lang.Object
com.microsoft.azure.management.cdn.ResponseBasedOriginErrorDetectionParameters
The JSON object that contains the properties to determine origin health
using real requests/responses.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy.Get type of response errors for real user requests for which origin will be deemed unhealthy.Get the percentage of failed requests in the sample where failover should trigger.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.withResponseBasedDetectedErrorTypes
(ResponseBasedDetectedErrorTypes responseBasedDetectedErrorTypes) Set type of response errors for real user requests for which origin will be deemed unhealthy.withResponseBasedFailoverThresholdPercentage
(Integer responseBasedFailoverThresholdPercentage) Set the percentage of failed requests in the sample where failover should trigger.
-
Constructor Details
-
ResponseBasedOriginErrorDetectionParameters
public ResponseBasedOriginErrorDetectionParameters()
-
-
Method Details
-
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
-
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.
-
responseBasedFailoverThresholdPercentage
Get the percentage of failed requests in the sample where failover should trigger.- Returns:
- the responseBasedFailoverThresholdPercentage value
-
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.
-
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
-
withHttpErrorRanges
public 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.- Parameters:
httpErrorRanges
- the httpErrorRanges value to set- Returns:
- the ResponseBasedOriginErrorDetectionParameters object itself.
-