WebTests class
Class representing a WebTests.
Constructors
Web |
Create a WebTests. |
Methods
Constructor Details
WebTests(ApplicationInsightsManagementClientContext)
Create a WebTests.
new WebTests(client: ApplicationInsightsManagementClientContext)
Parameters
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<WebTestsCreateOrUpdateResponse>
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
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
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<WebTestsGetResponse>
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
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
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<WebTestsListResponse>
Promise<Models.WebTestsListResponse>
list(RequestOptionsBase, ServiceCallback<WebTestListResult>)
function list(options: RequestOptionsBase, callback: ServiceCallback<WebTestListResult>)
Parameters
- options
- RequestOptionsBase
The optional parameters
- callback
The callback
list(ServiceCallback<WebTestListResult>)
function list(callback: ServiceCallback<WebTestListResult>)
Parameters
- callback
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<WebTestsListByComponentResponse>
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
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
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<WebTestsListByComponentNextResponse>
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
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
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<WebTestsListByResourceGroupResponse>
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
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
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
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
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<WebTestsListNextResponse>
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
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
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<WebTestsUpdateTagsResponse>
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
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
The callback