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

WebTests interface

表示 WebTests 的接口。

方法

createOrUpdate(string, string, WebTest, WebTestsCreateOrUpdateOptionalParams)

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

delete(string, string, WebTestsDeleteOptionalParams)

删除 Application Insights Web 测试。

get(string, string, WebTestsGetOptionalParams)

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

list(WebTestsListOptionalParams)

获取指定订阅的所有 Application Insights Web 测试定义。

listByComponent(string, string, WebTestsListByComponentOptionalParams)

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

listByResourceGroup(string, WebTestsListByResourceGroupOptionalParams)

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

updateTags(string, string, TagsResource, WebTestsUpdateTagsOptionalParams)

更新与 Application Insights Web 测试关联的标记。

方法详细信息

createOrUpdate(string, string, WebTest, WebTestsCreateOrUpdateOptionalParams)

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

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

参数

resourceGroupName

string

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

webTestName

string

Application Insights WebTest 资源的名称。

webTestDefinition
WebTest

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

options
WebTestsCreateOrUpdateOptionalParams

选项参数。

返回

Promise<WebTest>

delete(string, string, WebTestsDeleteOptionalParams)

删除 Application Insights Web 测试。

function delete(resourceGroupName: string, webTestName: string, options?: WebTestsDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

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

webTestName

string

Application Insights WebTest 资源的名称。

options
WebTestsDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, WebTestsGetOptionalParams)

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

function get(resourceGroupName: string, webTestName: string, options?: WebTestsGetOptionalParams): Promise<WebTest>

参数

resourceGroupName

string

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

webTestName

string

Application Insights WebTest 资源的名称。

options
WebTestsGetOptionalParams

选项参数。

返回

Promise<WebTest>

list(WebTestsListOptionalParams)

获取指定订阅的所有 Application Insights Web 测试定义。

function list(options?: WebTestsListOptionalParams): PagedAsyncIterableIterator<WebTest, WebTest[], PageSettings>

参数

options
WebTestsListOptionalParams

选项参数。

返回

listByComponent(string, string, WebTestsListByComponentOptionalParams)

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

function listByComponent(componentName: string, resourceGroupName: string, options?: WebTestsListByComponentOptionalParams): PagedAsyncIterableIterator<WebTest, WebTest[], PageSettings>

参数

componentName

string

Application Insights 组件资源的名称。

resourceGroupName

string

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

options
WebTestsListByComponentOptionalParams

选项参数。

返回

listByResourceGroup(string, WebTestsListByResourceGroupOptionalParams)

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

function listByResourceGroup(resourceGroupName: string, options?: WebTestsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<WebTest, WebTest[], PageSettings>

参数

resourceGroupName

string

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

返回

updateTags(string, string, TagsResource, WebTestsUpdateTagsOptionalParams)

更新与 Application Insights Web 测试关联的标记。

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

参数

resourceGroupName

string

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

webTestName

string

Application Insights WebTest 资源的名称。

webTestTags
TagsResource

更新了标记信息以与 Web 测试资源相关联。

options
WebTestsUpdateTagsOptionalParams

选项参数。

返回

Promise<WebTest>