通过


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

ApplicationGatewayProbeInner 类

public final class ApplicationGatewayProbeInner
extends SubResource

应用程序网关的探测。

构造函数摘要

构造函数 说明
ApplicationGatewayProbeInner()

创建应用程序网关探测内部类的实例。

方法摘要

修饰符和类型 方法和描述
String etag()

获取 etag 属性:一个唯一的只读字符串,每当资源更新时都会更改。

String host()

获取主机属性:要向其发送探测的主机名。

Integer interval()

获取 interval 属性:探测间隔(以秒为单位)。

ApplicationGatewayProbeHealthResponseMatch match()

获取匹配属性:对正常探测响应进行分类的条件。

Integer minServers()

获取最小服务器属性:始终标记为正常的最小服务器数。

String name()

获取 name 属性:在应用程序网关中唯一的探测的名称。

String path()

获取路径属性:探测的相对路径。

Boolean pickHostnameFromBackendHttpSettings()

获取“从后端Http设置中选取主机名”属性:是否应从后端 http 设置中选取主机标头。

Boolean pickHostnameFromBackendSettings()

获取“从后端设置中选取主机名”属性:是否应从 Tls 协议的后端设置中选取服务器名称指示。

Integer port()

获取端口属性:将用于探测后端服务器的自定义端口。

ApplicationGatewayProtocol protocol()

获取协议属性:用于探测的协议。

ProvisioningState provisioningState()

获取预配状态属性:探测资源的预配状态。

Integer timeout()

获取 timeout 属性:探测超时(以秒为单位)。

String type()

获取类型属性:资源的类型。

Integer unhealthyThreshold()

获取不正常的阈值属性:探测重试计数。

void validate()

验证实例。

ApplicationGatewayProbeInner withHost(String host)

设置主机属性:要向其发送探测的主机名。

ApplicationGatewayProbeInner withId(String id)
ApplicationGatewayProbeInner withInterval(Integer interval)

设置 interval 属性:探测间隔(以秒为单位)。

ApplicationGatewayProbeInner withMatch(ApplicationGatewayProbeHealthResponseMatch match)

设置 match 属性:用于对正常探测响应进行分类的条件。

ApplicationGatewayProbeInner withMinServers(Integer minServers)

设置 minServers 属性:始终标记为正常的最小服务器数。

ApplicationGatewayProbeInner withName(String name)

设置 name 属性:在应用程序网关中唯一的探测的名称。

ApplicationGatewayProbeInner withPath(String path)

设置 path 属性:探测的相对路径。

ApplicationGatewayProbeInner withPickHostnameFromBackendHttpSettings(Boolean pickHostnameFromBackendHttpSettings)

设置“从后端Http设置选取主机名”属性:是否应从后端 http 设置中选取主机标头。

ApplicationGatewayProbeInner withPickHostnameFromBackendSettings(Boolean pickHostnameFromBackendSettings)

设置“从后端设置选取主机名”属性:是否应从 Tls 协议的后端设置中选取服务器名称指示。

ApplicationGatewayProbeInner withPort(Integer port)

设置端口属性:将用于探测后端服务器的自定义端口。

ApplicationGatewayProbeInner withProtocol(ApplicationGatewayProtocol protocol)

设置协议属性:用于探测的协议。

ApplicationGatewayProbeInner withTimeout(Integer timeout)

设置 timeout 属性:探测超时(以秒为单位)。

ApplicationGatewayProbeInner withUnhealthyThreshold(Integer unhealthyThreshold)

设置不正常的阈值属性:探测重试计数。

方法继承自 SubResource

方法继承自 java.lang.Object

构造函数详细信息

ApplicationGatewayProbeInner

public ApplicationGatewayProbeInner()

创建 ApplicationGatewayProbeInner 类的实例。

方法详细信息

etag

public String etag()

获取 etag 属性:一个唯一的只读字符串,每当资源更新时都会更改。

Returns:

etag 值。

host

public String host()

获取主机属性:要向其发送探测的主机名。

Returns:

主机值。

interval

public Integer interval()

获取 interval 属性:探测间隔(以秒为单位)。 这是每两次连续探测之间的时间间隔。 可接受的值为 1 秒到 86400 秒。

Returns:

间隔值。

match

public ApplicationGatewayProbeHealthResponseMatch match()

获取匹配属性:对正常探测响应进行分类的条件。

Returns:

匹配值。

minServers

public Integer minServers()

获取 minServers 属性:始终标记为正常的最小服务器数。 默认值为 0。

Returns:

minServers 值。

name

public String name()

获取 name 属性:在应用程序网关中唯一的探测的名称。

Returns:

名称值。

path

public String path()

获取路径属性:探测的相对路径。 有效路径从“/”开始。 探测将发送到 ://:。

Returns:

路径值。

pickHostnameFromBackendHttpSettings

public Boolean pickHostnameFromBackendHttpSettings()

获取 pickHostnameFromBackendHttpSettings 属性:是否应从后端 http 设置中选取主机标头。 默认值为 false。

Returns:

pickHostnameFromBackendHttpSettings 值。

pickHostnameFromBackendSettings

public Boolean pickHostnameFromBackendSettings()

获取 pickHostnameFromBackendSettings 属性:是否应从 Tls 协议的后端设置中选取服务器名称指示。 默认值为 false。

Returns:

pickHostnameFromBackendSettings 值。

port

public Integer port()

获取 port 属性:将用于探测后端服务器的自定义端口。 有效值的范围从 1 到 65535。 如果未设置,将使用 http 设置中的端口。 此属性仅适用于 Basic、Standard_v2 和 WAF_v2。

Returns:

端口值。

protocol

public ApplicationGatewayProtocol protocol()

获取协议属性:用于探测的协议。

Returns:

协议值。

provisioningState

public ProvisioningState provisioningState()

获取 provisioningState 属性:探测资源的预配状态。

Returns:

provisioningState 值。

timeout

public Integer timeout()

获取 timeout 属性:探测超时(以秒为单位)。 如果在此超时期限内未收到有效响应,则探测标记为失败。 可接受的值为 1 秒到 86400 秒。

Returns:

超时值。

type

public String type()

获取类型属性:资源的类型。

Returns:

类型值。

unhealthyThreshold

public Integer unhealthyThreshold()

获取 unhealthyThreshold 属性:探测重试计数。 在连续探测失败计数达到 UnhealthyThreshold 后,后端服务器被标记为关闭。 可接受的值为 1 秒到 20 秒。

Returns:

unhealthyThreshold 值。

validate

public void validate()

验证实例。

withHost

public ApplicationGatewayProbeInner withHost(String host)

设置主机属性:要向其发送探测的主机名。

Parameters:

host - 要设置的主机值。

Returns:

ApplicationGatewayProbeInner 对象本身。

withId

public ApplicationGatewayProbeInner withId(String id)

Overrides:

ApplicationGatewayProbeInner.withId(String id)

Parameters:

id

withInterval

public ApplicationGatewayProbeInner withInterval(Integer interval)

设置 interval 属性:探测间隔(以秒为单位)。 这是每两次连续探测之间的时间间隔。 可接受的值为 1 秒到 86400 秒。

Parameters:

interval - 要设置的间隔值。

Returns:

ApplicationGatewayProbeInner 对象本身。

withMatch

public ApplicationGatewayProbeInner withMatch(ApplicationGatewayProbeHealthResponseMatch match)

设置 match 属性:用于对正常探测响应进行分类的条件。

Parameters:

match - 要设置的匹配值。

Returns:

ApplicationGatewayProbeInner 对象本身。

withMinServers

public ApplicationGatewayProbeInner withMinServers(Integer minServers)

设置 minServers 属性:始终标记为正常的最小服务器数。 默认值为 0。

Parameters:

minServers - 要设置的 minServers 值。

Returns:

ApplicationGatewayProbeInner 对象本身。

withName

public ApplicationGatewayProbeInner withName(String name)

设置 name 属性:在应用程序网关中唯一的探测的名称。

Parameters:

name - 要设置的名称值。

Returns:

ApplicationGatewayProbeInner 对象本身。

withPath

public ApplicationGatewayProbeInner withPath(String path)

设置 path 属性:探测的相对路径。 有效路径从“/”开始。 探测将发送到 ://:。

Parameters:

path - 要设置的路径值。

Returns:

ApplicationGatewayProbeInner 对象本身。

withPickHostnameFromBackendHttpSettings

public ApplicationGatewayProbeInner withPickHostnameFromBackendHttpSettings(Boolean pickHostnameFromBackendHttpSettings)

设置 pickHostnameFromBackendHttpSettings 属性:是否应从后端 http 设置中选取主机标头。 默认值为 false。

Parameters:

pickHostnameFromBackendHttpSettings - 要设置的 pickHostnameFromBackendHttpSettings 值。

Returns:

ApplicationGatewayProbeInner 对象本身。

withPickHostnameFromBackendSettings

public ApplicationGatewayProbeInner withPickHostnameFromBackendSettings(Boolean pickHostnameFromBackendSettings)

设置 pickHostnameFromBackendSettings 属性:是否应从 Tls 协议的后端设置中选取服务器名称指示。 默认值为 false。

Parameters:

pickHostnameFromBackendSettings - 要设置的 pickHostnameFromBackendSettings 值。

Returns:

ApplicationGatewayProbeInner 对象本身。

withPort

public ApplicationGatewayProbeInner withPort(Integer port)

设置端口属性:将用于探测后端服务器的自定义端口。 有效值的范围从 1 到 65535。 如果未设置,将使用 http 设置中的端口。 此属性仅适用于 Basic、Standard_v2 和 WAF_v2。

Parameters:

port - 要设置的端口值。

Returns:

ApplicationGatewayProbeInner 对象本身。

withProtocol

public ApplicationGatewayProbeInner withProtocol(ApplicationGatewayProtocol protocol)

设置协议属性:用于探测的协议。

Parameters:

protocol - 要设置的协议值。

Returns:

ApplicationGatewayProbeInner 对象本身。

withTimeout

public ApplicationGatewayProbeInner withTimeout(Integer timeout)

设置 timeout 属性:探测超时(以秒为单位)。 如果在此超时期限内未收到有效响应,则探测标记为失败。 可接受的值为 1 秒到 86400 秒。

Parameters:

timeout - 要设置的超时值。

Returns:

ApplicationGatewayProbeInner 对象本身。

withUnhealthyThreshold

public ApplicationGatewayProbeInner withUnhealthyThreshold(Integer unhealthyThreshold)

设置 unhealthyThreshold 属性:探测重试计数。 在连续探测失败计数达到 UnhealthyThreshold 后,后端服务器被标记为关闭。 可接受的值为 1 秒到 20 秒。

Parameters:

unhealthyThreshold - 要设置的 unhealthyThreshold 值。

Returns:

ApplicationGatewayProbeInner 对象本身。

适用于