WebTests class
Class representing a WebTests.
Web |
Create a WebTests. |
Create a WebTests.
new WebTests(client: ApplicationInsightsManagementClientContext)
Parameters
Reference to the service client.
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<WebTestsCreateOrUpdateResponse>
Promise<Models.WebTestsCreateOrUpdateResponse>
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
The callback
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
The callback
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>
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
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 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<WebTestsGetResponse>
Promise<Models.WebTestsGetResponse>
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
The callback
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
The callback
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<WebTestsListResponse>
Promise<Models.WebTestsListResponse>
function list(options: RequestOptionsBase, callback: ServiceCallback<WebTestListResult>)
Parameters
- options
- RequestOptionsBase
The optional parameters
- callback
The callback
function list(callback: ServiceCallback<WebTestListResult>)
Parameters
- callback
The callback
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<WebTestsListByComponentResponse>
Promise<Models.WebTestsListByComponentResponse>
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
The callback
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
The callback
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<WebTestsListByComponentNextResponse>
Promise<Models.WebTestsListByComponentNextResponse>
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
The callback
function listByComponentNext(nextPageLink: string, callback: ServiceCallback<WebTestListResult>)
Parameters
- nextPageLink
-
string
The NextLink from the previous successful call to List operation.
- callback
The callback
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<WebTestsListByResourceGroupResponse>
Promise<Models.WebTestsListByResourceGroupResponse>
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
The callback
function listByResourceGroup(resourceGroupName: string, callback: ServiceCallback<WebTestListResult>)
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- callback
The callback
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>
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
The callback
function listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback<WebTestListResult>)
Parameters
- nextPageLink
-
string
The NextLink from the previous successful call to List operation.
- callback
The callback
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<WebTestsListNextResponse>
Promise<Models.WebTestsListNextResponse>
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
The callback
function listNext(nextPageLink: string, callback: ServiceCallback<WebTestListResult>)
Parameters
- nextPageLink
-
string
The NextLink from the previous successful call to List operation.
- callback
The callback
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<WebTestsUpdateTagsResponse>
Promise<Models.WebTestsUpdateTagsResponse>
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
The callback
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
The callback