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

ResponseBasedOriginErrorDetectionParameters 类

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

public class ResponseBasedOriginErrorDetectionParameters

JSON 对象,该对象包含用于使用实际请求/响应确定源运行状况的属性。

构造函数摘要

构造函数 说明
ResponseBasedOriginErrorDetectionParameters()

方法摘要

修饰符和类型 方法和描述
java.util.List<HttpErrorRangeParameters> httpErrorRanges()

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

ResponseBasedDetectedErrorTypes responseBasedDetectedErrorTypes()

获取将被视为不正常的真实用户请求的响应错误类型。

java.lang.Integer responseBasedFailoverThresholdPercentage()

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

ResponseBasedOriginErrorDetectionParameters withHttpErrorRanges(List<HttpErrorRangeParameters> httpErrorRanges)

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

ResponseBasedOriginErrorDetectionParameters withResponseBasedDetectedErrorTypes(ResponseBasedDetectedErrorTypes responseBasedDetectedErrorTypes)

为实际用户请求设置响应错误的类型,该请求的源将被视为不正常。

ResponseBasedOriginErrorDetectionParameters withResponseBasedFailoverThresholdPercentage(Integer responseBasedFailoverThresholdPercentage)

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

方法继承自 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

构造函数详细信息

ResponseBasedOriginErrorDetectionParameters

public ResponseBasedOriginErrorDetectionParameters()

方法详细信息

httpErrorRanges

public List httpErrorRanges()

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

Returns:

httpErrorRanges 值

responseBasedDetectedErrorTypes

public ResponseBasedDetectedErrorTypes responseBasedDetectedErrorTypes()

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

Returns:

responseBasedDetectedErrorTypes 值

responseBasedFailoverThresholdPercentage

public Integer responseBasedFailoverThresholdPercentage()

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

Returns:

responseBasedFailoverThresholdPercentage 值

withHttpErrorRanges

public ResponseBasedOriginErrorDetectionParameters withHttpErrorRanges(List httpErrorRanges)

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

Parameters:

httpErrorRanges - 要设置的 httpErrorRanges 值

Returns:

ResponseBasedOriginErrorDetectionParameters 对象本身。

withResponseBasedDetectedErrorTypes

public ResponseBasedOriginErrorDetectionParameters withResponseBasedDetectedErrorTypes(ResponseBasedDetectedErrorTypes responseBasedDetectedErrorTypes)

为实际用户请求设置响应错误的类型,该请求的源将被视为不正常。 可能的值包括:“None”、“TcpErrorsOnly”、“TcpAndHttpErrors”。

Parameters:

responseBasedDetectedErrorTypes - 要设置的 responseBasedDetectedErrorTypes 值

Returns:

ResponseBasedOriginErrorDetectionParameters 对象本身。

withResponseBasedFailoverThresholdPercentage

public ResponseBasedOriginErrorDetectionParameters withResponseBasedFailoverThresholdPercentage(Integer responseBasedFailoverThresholdPercentage)

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

Parameters:

responseBasedFailoverThresholdPercentage - 要设置的 responseBasedFailoverThresholdPercentage 值

Returns:

ResponseBasedOriginErrorDetectionParameters 对象本身。

适用于