ResponseBasedOriginErrorDetectionParameters Class

The JSON object that contains the properties to determine origin health using real requests/responses.

Inheritance
ResponseBasedOriginErrorDetectionParameters

Constructor

ResponseBasedOriginErrorDetectionParameters(*, response_based_detected_error_types: Optional[Union[str, azure.mgmt.cdn.models._cdn_management_client_enums.ResponseBasedDetectedErrorTypes]] = None, response_based_failover_threshold_percentage: Optional[int] = None, http_error_ranges: Optional[List[azure.mgmt.cdn.models._models_py3.HttpErrorRangeParameters]] = None, **kwargs)

Variables

response_based_detected_error_types
str or ResponseBasedDetectedErrorTypes

Type of response errors for real user requests for which origin will be deemed unhealthy. Possible values include: "None", "TcpErrorsOnly", "TcpAndHttpErrors".

response_based_failover_threshold_percentage
int

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

http_error_ranges
<xref:http_error_ranges>)<xref: >(list[HttpErrorRangeParameters]

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