你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ResponseBasedOriginErrorDetectionParameters 构造函数

定义

重载

ResponseBasedOriginErrorDetectionParameters()

初始化 ResponseBasedOriginErrorDetectionParameters 类的新实例。

ResponseBasedOriginErrorDetectionParameters(Nullable<ResponseBasedDetectedErrorTypes>, Nullable<Int32>, IList<HttpErrorRangeParameters>)

初始化 ResponseBasedOriginErrorDetectionParameters 类的新实例。

ResponseBasedOriginErrorDetectionParameters()

初始化 ResponseBasedOriginErrorDetectionParameters 类的新实例。

public ResponseBasedOriginErrorDetectionParameters ();
Public Sub New ()

适用于

ResponseBasedOriginErrorDetectionParameters(Nullable<ResponseBasedDetectedErrorTypes>, Nullable<Int32>, IList<HttpErrorRangeParameters>)

初始化 ResponseBasedOriginErrorDetectionParameters 类的新实例。

public ResponseBasedOriginErrorDetectionParameters (Microsoft.Azure.Management.Cdn.Models.ResponseBasedDetectedErrorTypes? responseBasedDetectedErrorTypes = default, int? responseBasedFailoverThresholdPercentage = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.HttpErrorRangeParameters> httpErrorRanges = default);
new Microsoft.Azure.Management.Cdn.Models.ResponseBasedOriginErrorDetectionParameters : Nullable<Microsoft.Azure.Management.Cdn.Models.ResponseBasedDetectedErrorTypes> * Nullable<int> * System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.HttpErrorRangeParameters> -> Microsoft.Azure.Management.Cdn.Models.ResponseBasedOriginErrorDetectionParameters
Public Sub New (Optional responseBasedDetectedErrorTypes As Nullable(Of ResponseBasedDetectedErrorTypes) = Nothing, Optional responseBasedFailoverThresholdPercentage As Nullable(Of Integer) = Nothing, Optional httpErrorRanges As IList(Of HttpErrorRangeParameters) = Nothing)

参数

responseBasedDetectedErrorTypes
Nullable<ResponseBasedDetectedErrorTypes>

原始用户请求的响应错误类型将被视为不正常。 可能的值包括:“None”、“TcpErrorsOnly”、“TcpAndHttpErrors”

responseBasedFailoverThresholdPercentage
Nullable<Int32>

示例中应触发故障转移的失败请求的百分比。

httpErrorRanges
IList<HttpErrorRangeParameters>

被视为源服务器错误且标记为不正常的 Http 状态代码范围列表。

适用于