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

WebTests class

表示 WebTests 的类。

构造函数

WebTests(ApplicationInsightsManagementClientContext)

创建 WebTests。

方法

createOrUpdate(string, string, WebTest, RequestOptionsBase)

创建或更新 Application Insights Web 测试定义。

createOrUpdate(string, string, WebTest, RequestOptionsBase, ServiceCallback<WebTest>)
createOrUpdate(string, string, WebTest, ServiceCallback<WebTest>)
deleteMethod(string, string, RequestOptionsBase)

删除 Application Insights Web 测试。

deleteMethod(string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, ServiceCallback<void>)
get(string, string, RequestOptionsBase)

获取特定的 Application Insights Web 测试定义。

get(string, string, RequestOptionsBase, ServiceCallback<WebTest>)
get(string, string, ServiceCallback<WebTest>)
list(RequestOptionsBase)

获取订阅中的所有 Application Insights Web 测试警报定义。

list(RequestOptionsBase, ServiceCallback<WebTestListResult>)
list(ServiceCallback<WebTestListResult>)
listByComponent(string, string, RequestOptionsBase)

获取为指定组件定义的所有 Application Insights Web 测试。

listByComponent(string, string, RequestOptionsBase, ServiceCallback<WebTestListResult>)
listByComponent(string, string, ServiceCallback<WebTestListResult>)
listByComponentNext(string, RequestOptionsBase)

获取为指定组件定义的所有 Application Insights Web 测试。

listByComponentNext(string, RequestOptionsBase, ServiceCallback<WebTestListResult>)
listByComponentNext(string, ServiceCallback<WebTestListResult>)
listByResourceGroup(string, RequestOptionsBase)

获取在指定资源组中定义的所有 Application Insights Web 测试。

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<WebTestListResult>)
listByResourceGroup(string, ServiceCallback<WebTestListResult>)
listByResourceGroupNext(string, RequestOptionsBase)

获取在指定资源组中定义的所有 Application Insights Web 测试。

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<WebTestListResult>)
listByResourceGroupNext(string, ServiceCallback<WebTestListResult>)
listNext(string, RequestOptionsBase)

获取订阅中的所有 Application Insights Web 测试警报定义。

listNext(string, RequestOptionsBase, ServiceCallback<WebTestListResult>)
listNext(string, ServiceCallback<WebTestListResult>)
updateTags(string, string, TagsResource, RequestOptionsBase)

创建或更新 Application Insights Web 测试定义。

updateTags(string, string, TagsResource, RequestOptionsBase, ServiceCallback<WebTest>)
updateTags(string, string, TagsResource, ServiceCallback<WebTest>)

构造函数详细信息

WebTests(ApplicationInsightsManagementClientContext)

创建 WebTests。

new WebTests(client: ApplicationInsightsManagementClientContext)

参数

client
ApplicationInsightsManagementClientContext

对服务客户端的引用。

方法详细信息

createOrUpdate(string, string, WebTest, RequestOptionsBase)

创建或更新 Application Insights Web 测试定义。

function createOrUpdate(resourceGroupName: string, webTestName: string, webTestDefinition: WebTest, options?: RequestOptionsBase): Promise<WebTestsCreateOrUpdateResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

webTestName

string

Application Insights Webtest 资源的名称。

webTestDefinition
WebTest

需要指定的属性来创建或更新 Application Insights Web 测试定义。

options
RequestOptionsBase

可选参数

返回

承诺<Models.WebTestsCreateOrUpdateResponse>

createOrUpdate(string, string, WebTest, RequestOptionsBase, ServiceCallback<WebTest>)

function createOrUpdate(resourceGroupName: string, webTestName: string, webTestDefinition: WebTest, options: RequestOptionsBase, callback: ServiceCallback<WebTest>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

webTestName

string

Application Insights Webtest 资源的名称。

webTestDefinition
WebTest

需要指定的属性来创建或更新 Application Insights Web 测试定义。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<WebTest>

回调

createOrUpdate(string, string, WebTest, ServiceCallback<WebTest>)

function createOrUpdate(resourceGroupName: string, webTestName: string, webTestDefinition: WebTest, callback: ServiceCallback<WebTest>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

webTestName

string

Application Insights Webtest 资源的名称。

webTestDefinition
WebTest

需要指定的属性来创建或更新 Application Insights Web 测试定义。

callback

ServiceCallback<WebTest>

回调

deleteMethod(string, string, RequestOptionsBase)

删除 Application Insights Web 测试。

function deleteMethod(resourceGroupName: string, webTestName: string, options?: RequestOptionsBase): Promise<RestResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

webTestName

string

Application Insights Webtest 资源的名称。

options
RequestOptionsBase

可选参数

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

deleteMethod(string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, webTestName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

webTestName

string

Application Insights Webtest 资源的名称。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<void>

回调

deleteMethod(string, string, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, webTestName: string, callback: ServiceCallback<void>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

webTestName

string

Application Insights Webtest 资源的名称。

callback

ServiceCallback<void>

回调

get(string, string, RequestOptionsBase)

获取特定的 Application Insights Web 测试定义。

function get(resourceGroupName: string, webTestName: string, options?: RequestOptionsBase): Promise<WebTestsGetResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

webTestName

string

Application Insights Webtest 资源的名称。

options
RequestOptionsBase

可选参数

返回

承诺<Models.WebTestsGetResponse>

get(string, string, RequestOptionsBase, ServiceCallback<WebTest>)

function get(resourceGroupName: string, webTestName: string, options: RequestOptionsBase, callback: ServiceCallback<WebTest>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

webTestName

string

Application Insights Webtest 资源的名称。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<WebTest>

回调

get(string, string, ServiceCallback<WebTest>)

function get(resourceGroupName: string, webTestName: string, callback: ServiceCallback<WebTest>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

webTestName

string

Application Insights Webtest 资源的名称。

callback

ServiceCallback<WebTest>

回调

list(RequestOptionsBase)

获取订阅中的所有 Application Insights Web 测试警报定义。

function list(options?: RequestOptionsBase): Promise<WebTestsListResponse>

参数

options
RequestOptionsBase

可选参数

返回

承诺<Models.WebTestsListResponse>

list(RequestOptionsBase, ServiceCallback<WebTestListResult>)

function list(options: RequestOptionsBase, callback: ServiceCallback<WebTestListResult>)

参数

options
RequestOptionsBase

可选参数

list(ServiceCallback<WebTestListResult>)

function list(callback: ServiceCallback<WebTestListResult>)

参数

listByComponent(string, string, RequestOptionsBase)

获取为指定组件定义的所有 Application Insights Web 测试。

function listByComponent(componentName: string, resourceGroupName: string, options?: RequestOptionsBase): Promise<WebTestsListByComponentResponse>

参数

componentName

string

Application Insights 组件资源的名称。

resourceGroupName

string

资源组的名称。 名称不区分大小写。

options
RequestOptionsBase

可选参数

返回

承诺<Models.WebTestsListByComponentResponse>

listByComponent(string, string, RequestOptionsBase, ServiceCallback<WebTestListResult>)

function listByComponent(componentName: string, resourceGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<WebTestListResult>)

参数

componentName

string

Application Insights 组件资源的名称。

resourceGroupName

string

资源组的名称。 名称不区分大小写。

options
RequestOptionsBase

可选参数

listByComponent(string, string, ServiceCallback<WebTestListResult>)

function listByComponent(componentName: string, resourceGroupName: string, callback: ServiceCallback<WebTestListResult>)

参数

componentName

string

Application Insights 组件资源的名称。

resourceGroupName

string

资源组的名称。 名称不区分大小写。

listByComponentNext(string, RequestOptionsBase)

获取为指定组件定义的所有 Application Insights Web 测试。

function listByComponentNext(nextPageLink: string, options?: RequestOptionsBase): Promise<WebTestsListByComponentNextResponse>

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
RequestOptionsBase

可选参数

返回

承诺<Models.WebTestsListByComponentNextResponse>

listByComponentNext(string, RequestOptionsBase, ServiceCallback<WebTestListResult>)

function listByComponentNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<WebTestListResult>)

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
RequestOptionsBase

可选参数

listByComponentNext(string, ServiceCallback<WebTestListResult>)

function listByComponentNext(nextPageLink: string, callback: ServiceCallback<WebTestListResult>)

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

listByResourceGroup(string, RequestOptionsBase)

获取在指定资源组中定义的所有 Application Insights Web 测试。

function listByResourceGroup(resourceGroupName: string, options?: RequestOptionsBase): Promise<WebTestsListByResourceGroupResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

options
RequestOptionsBase

可选参数

返回

承诺<Models.WebTestsListByResourceGroupResponse>

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<WebTestListResult>)

function listByResourceGroup(resourceGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<WebTestListResult>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

options
RequestOptionsBase

可选参数

listByResourceGroup(string, ServiceCallback<WebTestListResult>)

function listByResourceGroup(resourceGroupName: string, callback: ServiceCallback<WebTestListResult>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

listByResourceGroupNext(string, RequestOptionsBase)

获取在指定资源组中定义的所有 Application Insights Web 测试。

function listByResourceGroupNext(nextPageLink: string, options?: RequestOptionsBase): Promise<WebTestsListByResourceGroupNextResponse>

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
RequestOptionsBase

可选参数

返回

Promise<Models.WebTestsListByResourceGroupNext响应>

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<WebTestListResult>)

function listByResourceGroupNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<WebTestListResult>)

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
RequestOptionsBase

可选参数

listByResourceGroupNext(string, ServiceCallback<WebTestListResult>)

function listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback<WebTestListResult>)

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

listNext(string, RequestOptionsBase)

获取订阅中的所有 Application Insights Web 测试警报定义。

function listNext(nextPageLink: string, options?: RequestOptionsBase): Promise<WebTestsListNextResponse>

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
RequestOptionsBase

可选参数

返回

承诺<Models.WebTestsListNext响应>

listNext(string, RequestOptionsBase, ServiceCallback<WebTestListResult>)

function listNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<WebTestListResult>)

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
RequestOptionsBase

可选参数

listNext(string, ServiceCallback<WebTestListResult>)

function listNext(nextPageLink: string, callback: ServiceCallback<WebTestListResult>)

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

updateTags(string, string, TagsResource, RequestOptionsBase)

创建或更新 Application Insights Web 测试定义。

function updateTags(resourceGroupName: string, webTestName: string, webTestTags: TagsResource, options?: RequestOptionsBase): Promise<WebTestsUpdateTagsResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

webTestName

string

Application Insights Webtest 资源的名称。

webTestTags
TagsResource

更新了要设置为 Web 测试实例的标记信息。

options
RequestOptionsBase

可选参数

返回

承诺<Models.WebTestsUpdateTagsResponse>

updateTags(string, string, TagsResource, RequestOptionsBase, ServiceCallback<WebTest>)

function updateTags(resourceGroupName: string, webTestName: string, webTestTags: TagsResource, options: RequestOptionsBase, callback: ServiceCallback<WebTest>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

webTestName

string

Application Insights Webtest 资源的名称。

webTestTags
TagsResource

更新了要设置为 Web 测试实例的标记信息。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<WebTest>

回调

updateTags(string, string, TagsResource, ServiceCallback<WebTest>)

function updateTags(resourceGroupName: string, webTestName: string, webTestTags: TagsResource, callback: ServiceCallback<WebTest>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

webTestName

string

Application Insights Webtest 资源的名称。

webTestTags
TagsResource

更新了要设置为 Web 测试实例的标记信息。

callback

ServiceCallback<WebTest>

回调