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

Probe 构造函数

定义

重载

Probe()

初始化 Probe 类的新实例。

Probe(String, Int32, String, IList<SubResource>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, String, String, String, String, String)

初始化 Probe 类的新实例。

Probe()

初始化 Probe 类的新实例。

public Probe ();
Public Sub New ()

适用于

Probe(String, Int32, String, IList<SubResource>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, String, String, String, String, String)

初始化 Probe 类的新实例。

public Probe (string protocol, int port, string id = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.SubResource> loadBalancingRules = default, int? intervalInSeconds = default, int? numberOfProbes = default, int? probeThreshold = default, string requestPath = default, string provisioningState = default, string name = default, string etag = default, string type = default);
new Microsoft.Azure.Management.Network.Models.Probe : string * int * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.SubResource> * Nullable<int> * Nullable<int> * Nullable<int> * string * string * string * string * string -> Microsoft.Azure.Management.Network.Models.Probe
Public Sub New (protocol As String, port As Integer, Optional id As String = Nothing, Optional loadBalancingRules As IList(Of SubResource) = Nothing, Optional intervalInSeconds As Nullable(Of Integer) = Nothing, Optional numberOfProbes As Nullable(Of Integer) = Nothing, Optional probeThreshold As Nullable(Of Integer) = Nothing, Optional requestPath As String = Nothing, Optional provisioningState As String = Nothing, Optional name As String = Nothing, Optional etag As String = Nothing, Optional type As String = Nothing)

参数

protocol
String

终结点的协议。 如果指定了“Tcp”,则需要接收的 ACK 才能使探测成功。 如果指定了“Http”或“Https”,则需要来自 指定 URI 的 200 OK 响应才能成功探测。 可能的值包括:“Http”、“Tcp”、“Https”

port
Int32

用于传达探测的端口。 可能的值介于 1 和 65535(含)之间。

id
String

资源 ID。

loadBalancingRules
IList<SubResource>

使用此探测的负载均衡器规则。

intervalInSeconds
Nullable<Int32>

探测终结点的运行状况的间隔(以秒为单位)。 通常,该间隔略小于所分配超时期限(以秒为单位)的一半,以便在退出轮转前执行两次完整的探测。 默认值为 15,最小值为 5。

numberOfProbes
Nullable<Int32>

探测数(如果没有响应)将导致停止将更多流量传递到终结点。 此值允许终结点退出旋转的速度比 Azure 中使用的典型时间更快或更慢。

probeThreshold
Nullable<Int32>

为了允许或拒绝将流量传递到此终结点而连续成功或失败的探测数。 在连续探测数等于此值失败后,终结点将从轮换中取出,并要求将相同数量的成功连续探测放回轮换。

requestPath
String

用于从 VM 请求运行状况的 URI。 如果协议设置为 http,则需要路径。 否则,不允许使用该属性。 没有默认值。

provisioningState
String

探测资源的预配状态。 可能的值包括:“Succeeded”、“Updateing”、“删除”、“Failed”

name
String

负载均衡器使用的探测集中唯一的资源的名称。 此名称可用于访问资源。

etag
String

一个唯一的只读字符串,每当资源更新时都会更改。

type
String

资源的类型。

适用于