你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
WebTest 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
WebTest()
初始化 WebTest 类的新实例。
public WebTest ();
Public Sub New ()
适用于
WebTest(String, String, String, WebTestKind, IList<WebTestGeolocation>, String, String, String, IDictionary<String,String>, Nullable<WebTestKind>, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, WebTestPropertiesConfiguration, String)
初始化 WebTest 类的新实例。
public WebTest (string location, string syntheticMonitorId, string webTestName, Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTestKind webTestKind, System.Collections.Generic.IList<Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTestGeolocation> locations, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTestKind? kind = default, string description = default, bool? enabled = default, int? frequency = default, int? timeout = default, bool? retryEnabled = default, Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTestPropertiesConfiguration configuration = default, string provisioningState = default);
new Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTest : string * string * string * Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTestKind * System.Collections.Generic.IList<Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTestGeolocation> * string * string * string * System.Collections.Generic.IDictionary<string, string> * Nullable<Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTestKind> * string * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<bool> * Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTestPropertiesConfiguration * string -> Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTest
Public Sub New (location As String, syntheticMonitorId As String, webTestName As String, webTestKind As WebTestKind, locations As IList(Of WebTestGeolocation), Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional kind As Nullable(Of WebTestKind) = Nothing, Optional description As String = Nothing, Optional enabled As Nullable(Of Boolean) = Nothing, Optional frequency As Nullable(Of Integer) = Nothing, Optional timeout As Nullable(Of Integer) = Nothing, Optional retryEnabled As Nullable(Of Boolean) = Nothing, Optional configuration As WebTestPropertiesConfiguration = Nothing, Optional provisioningState As String = Nothing)
参数
- location
- String
资源位置
- syntheticMonitorId
- String
此 WebTest 的唯一 ID。 这通常与“名称”字段的值相同。
- webTestName
- String
如果此 WebTest,则为用户定义的名称。
- webTestKind
- WebTestKind
这是 Web 测试的类型,有效选项是 ping 和 multistep。 可能的值包括:“ping”、“multistep”
- locations
- IList<WebTestGeolocation>
一个列表,其中列出了从何处实际运行测试,以便为应用程序的可访问性提供全球覆盖。
- id
- String
Azure 资源 ID
- name
- String
Azure 资源名称
- type
- String
Azure 资源类型
- tags
- IDictionary<String,String>
资源标记
- kind
- Nullable<WebTestKind>
此 Web 测试监视的 Web 测试类型。 选项包括 ping 和多步骤。 可能的值包括:“ping”、“multistep”
- description
- String
此 WebTest 的用途/用户定义的描述性测试。
- configuration
- WebTestPropertiesConfiguration
WebTest 的 XML 配置规范。
- provisioningState
- String
此组件的当前状态,无论 是否已在定义的资源组中预配。 用户无法更改此值,但可以从中读取此值。 值将包括 Succeeded、Deploying、Canceled 和 Failed。