Share via


WebTests class

Class representing a WebTests.

Constructors

Methods

createOrUpdate(string, string, WebTest, RequestOptionsBase)

Creates or updates an Application Insights web test definition.

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

Deletes an Application Insights web test.

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

Get a specific Application Insights web test definition.

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

Get all Application Insights web test alerts definitions within a subscription.

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

Get all Application Insights web tests defined for the specified component.

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

Get all Application Insights web tests defined for the specified component.

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

Get all Application Insights web tests defined within a specified resource group.

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

Get all Application Insights web tests defined within a specified resource group.

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

Get all Application Insights web test alerts definitions within a subscription.

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

Creates or updates an Application Insights web test definition.

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

Constructor Details

WebTests(ApplicationInsightsManagementClientContext)

Create a WebTests.

new WebTests(client: ApplicationInsightsManagementClientContext)

Parameters

client
ApplicationInsightsManagementClientContext

Reference to the service client.

Method Details

createOrUpdate(string, string, WebTest, RequestOptionsBase)

Creates or updates an Application Insights web test definition.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

webTestName

string

The name of the Application Insights webtest resource.

webTestDefinition
WebTest

Properties that need to be specified to create or update an Application Insights web test definition.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WebTestsCreateOrUpdateResponse>

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

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

webTestName

string

The name of the Application Insights webtest resource.

webTestDefinition
WebTest

Properties that need to be specified to create or update an Application Insights web test definition.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<WebTest>

The callback

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

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

webTestName

string

The name of the Application Insights webtest resource.

webTestDefinition
WebTest

Properties that need to be specified to create or update an Application Insights web test definition.

callback

ServiceCallback<WebTest>

The callback

deleteMethod(string, string, RequestOptionsBase)

Deletes an Application Insights web test.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

webTestName

string

The name of the Application Insights webtest resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

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

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

webTestName

string

The name of the Application Insights webtest resource.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

deleteMethod(string, string, ServiceCallback<void>)

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

webTestName

string

The name of the Application Insights webtest resource.

callback

ServiceCallback<void>

The callback

get(string, string, RequestOptionsBase)

Get a specific Application Insights web test definition.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

webTestName

string

The name of the Application Insights webtest resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WebTestsGetResponse>

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

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

webTestName

string

The name of the Application Insights webtest resource.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<WebTest>

The callback

get(string, string, ServiceCallback<WebTest>)

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

webTestName

string

The name of the Application Insights webtest resource.

callback

ServiceCallback<WebTest>

The callback

list(RequestOptionsBase)

Get all Application Insights web test alerts definitions within a subscription.

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

Parameters

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WebTestsListResponse>

list(RequestOptionsBase, ServiceCallback<WebTestListResult>)

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

Parameters

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<WebTestListResult>

The callback

list(ServiceCallback<WebTestListResult>)

function list(callback: ServiceCallback<WebTestListResult>)

Parameters

callback

ServiceCallback<WebTestListResult>

The callback

listByComponent(string, string, RequestOptionsBase)

Get all Application Insights web tests defined for the specified component.

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

Parameters

componentName

string

The name of the Application Insights component resource.

resourceGroupName

string

The name of the resource group. The name is case insensitive.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WebTestsListByComponentResponse>

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

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

Parameters

componentName

string

The name of the Application Insights component resource.

resourceGroupName

string

The name of the resource group. The name is case insensitive.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<WebTestListResult>

The callback

listByComponent(string, string, ServiceCallback<WebTestListResult>)

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

Parameters

componentName

string

The name of the Application Insights component resource.

resourceGroupName

string

The name of the resource group. The name is case insensitive.

callback

ServiceCallback<WebTestListResult>

The callback

listByComponentNext(string, RequestOptionsBase)

Get all Application Insights web tests defined for the specified component.

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WebTestsListByComponentNextResponse>

listByComponentNext(string, RequestOptionsBase, ServiceCallback<WebTestListResult>)

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<WebTestListResult>

The callback

listByComponentNext(string, ServiceCallback<WebTestListResult>)

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<WebTestListResult>

The callback

listByResourceGroup(string, RequestOptionsBase)

Get all Application Insights web tests defined within a specified resource group.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WebTestsListByResourceGroupResponse>

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<WebTestListResult>)

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<WebTestListResult>

The callback

listByResourceGroup(string, ServiceCallback<WebTestListResult>)

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

callback

ServiceCallback<WebTestListResult>

The callback

listByResourceGroupNext(string, RequestOptionsBase)

Get all Application Insights web tests defined within a specified resource group.

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WebTestsListByResourceGroupNextResponse>

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<WebTestListResult>)

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<WebTestListResult>

The callback

listByResourceGroupNext(string, ServiceCallback<WebTestListResult>)

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<WebTestListResult>

The callback

listNext(string, RequestOptionsBase)

Get all Application Insights web test alerts definitions within a subscription.

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WebTestsListNextResponse>

listNext(string, RequestOptionsBase, ServiceCallback<WebTestListResult>)

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<WebTestListResult>

The callback

listNext(string, ServiceCallback<WebTestListResult>)

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<WebTestListResult>

The callback

updateTags(string, string, TagsResource, RequestOptionsBase)

Creates or updates an Application Insights web test definition.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

webTestName

string

The name of the Application Insights webtest resource.

webTestTags
TagsResource

Updated tag information to set into the web test instance.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WebTestsUpdateTagsResponse>

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

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

webTestName

string

The name of the Application Insights webtest resource.

webTestTags
TagsResource

Updated tag information to set into the web test instance.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<WebTest>

The callback

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

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

webTestName

string

The name of the Application Insights webtest resource.

webTestTags
TagsResource

Updated tag information to set into the web test instance.

callback

ServiceCallback<WebTest>

The callback