WebTests class
表示 WebTests 的类。
构造函数
| Web |
创建 WebTests。 |
方法
构造函数详细信息
WebTests(ApplicationInsightsManagementClientContext)
创建 WebTests。
new WebTests(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
可选参数
返回
Promise<WebTestsCreateOrUpdateResponse>
承诺<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
回调
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
回调
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
可选参数
返回
Promise<WebTestsGetResponse>
承诺<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
回调
get(string, string, ServiceCallback<WebTest>)
function get(resourceGroupName: string, webTestName: string, callback: ServiceCallback<WebTest>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- webTestName
-
string
Application Insights Webtest 资源的名称。
- callback
回调
list(RequestOptionsBase)
获取订阅中的所有 Application Insights Web 测试警报定义。
function list(options?: RequestOptionsBase): Promise<WebTestsListResponse>
参数
- options
- RequestOptionsBase
可选参数
返回
Promise<WebTestsListResponse>
承诺<Models.WebTestsListResponse>
list(RequestOptionsBase, ServiceCallback<WebTestListResult>)
function list(options: RequestOptionsBase, callback: ServiceCallback<WebTestListResult>)
参数
- options
- RequestOptionsBase
可选参数
- callback
回调
list(ServiceCallback<WebTestListResult>)
function list(callback: ServiceCallback<WebTestListResult>)
参数
- callback
回调
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
可选参数
返回
Promise<WebTestsListByComponentResponse>
承诺<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
可选参数
- callback
回调
listByComponent(string, string, ServiceCallback<WebTestListResult>)
function listByComponent(componentName: string, resourceGroupName: string, callback: ServiceCallback<WebTestListResult>)
参数
- componentName
-
string
Application Insights 组件资源的名称。
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- callback
回调
listByComponentNext(string, RequestOptionsBase)
获取为指定组件定义的所有 Application Insights Web 测试。
function listByComponentNext(nextPageLink: string, options?: RequestOptionsBase): Promise<WebTestsListByComponentNextResponse>
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- options
- RequestOptionsBase
可选参数
返回
Promise<WebTestsListByComponentNextResponse>
承诺<Models.WebTestsListByComponentNextResponse>
listByComponentNext(string, RequestOptionsBase, ServiceCallback<WebTestListResult>)
function listByComponentNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<WebTestListResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- options
- RequestOptionsBase
可选参数
- callback
回调
listByComponentNext(string, ServiceCallback<WebTestListResult>)
function listByComponentNext(nextPageLink: string, callback: ServiceCallback<WebTestListResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- callback
回调
listByResourceGroup(string, RequestOptionsBase)
获取在指定资源组中定义的所有 Application Insights Web 测试。
function listByResourceGroup(resourceGroupName: string, options?: RequestOptionsBase): Promise<WebTestsListByResourceGroupResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- options
- RequestOptionsBase
可选参数
返回
Promise<WebTestsListByResourceGroupResponse>
承诺<Models.WebTestsListByResourceGroupResponse>
listByResourceGroup(string, RequestOptionsBase, ServiceCallback<WebTestListResult>)
function listByResourceGroup(resourceGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<WebTestListResult>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- options
- RequestOptionsBase
可选参数
- callback
回调
listByResourceGroup(string, ServiceCallback<WebTestListResult>)
function listByResourceGroup(resourceGroupName: string, callback: ServiceCallback<WebTestListResult>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- callback
回调
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
可选参数
- callback
回调
listByResourceGroupNext(string, ServiceCallback<WebTestListResult>)
function listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback<WebTestListResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- callback
回调
listNext(string, RequestOptionsBase)
获取订阅中的所有 Application Insights Web 测试警报定义。
function listNext(nextPageLink: string, options?: RequestOptionsBase): Promise<WebTestsListNextResponse>
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- options
- RequestOptionsBase
可选参数
返回
Promise<WebTestsListNextResponse>
承诺<Models.WebTestsListNext响应>
listNext(string, RequestOptionsBase, ServiceCallback<WebTestListResult>)
function listNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<WebTestListResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- options
- RequestOptionsBase
可选参数
- callback
回调
listNext(string, ServiceCallback<WebTestListResult>)
function listNext(nextPageLink: string, callback: ServiceCallback<WebTestListResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- callback
回调
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
可选参数
返回
Promise<WebTestsUpdateTagsResponse>
承诺<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
回调
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
回调