public interface WebTests
Resource collection API of WebTests.
  • Method Summary

    Modifier and Type
    Method
    Description
    define(String name)
    Begins definition for a new WebTest resource.
    void
    Deletes an Application Insights web test.
    com.azure.core.http.rest.Response<Void>
    deleteByIdWithResponse(String id, com.azure.core.util.Context context)
    Deletes an Application Insights web test.
    void
    deleteByResourceGroup(String resourceGroupName, String webTestName)
    Deletes an Application Insights web test.
    com.azure.core.http.rest.Response<Void>
    deleteWithResponse(String resourceGroupName, String webTestName, com.azure.core.util.Context context)
    Deletes an Application Insights web test.
    Get a specific Application Insights web test definition.
    com.azure.core.http.rest.Response<WebTest>
    getByIdWithResponse(String id, com.azure.core.util.Context context)
    Get a specific Application Insights web test definition.
    getByResourceGroup(String resourceGroupName, String webTestName)
    Get a specific Application Insights web test definition.
    com.azure.core.http.rest.Response<WebTest>
    getByResourceGroupWithResponse(String resourceGroupName, String webTestName, com.azure.core.util.Context context)
    Get a specific Application Insights web test definition.
    com.azure.core.http.rest.PagedIterable<WebTest>
    Get all Application Insights web test alerts definitions within a subscription.
    com.azure.core.http.rest.PagedIterable<WebTest>
    list(com.azure.core.util.Context context)
    Get all Application Insights web test alerts definitions within a subscription.
    com.azure.core.http.rest.PagedIterable<WebTest>
    listByComponent(String componentName, String resourceGroupName)
    Get all Application Insights web tests defined for the specified component.
    com.azure.core.http.rest.PagedIterable<WebTest>
    listByComponent(String componentName, String resourceGroupName, com.azure.core.util.Context context)
    Get all Application Insights web tests defined for the specified component.
    com.azure.core.http.rest.PagedIterable<WebTest>
    listByResourceGroup(String resourceGroupName)
    Get all Application Insights web tests defined within a specified resource group.
    com.azure.core.http.rest.PagedIterable<WebTest>
    listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
    Get all Application Insights web tests defined within a specified resource group.
  • Method Details

    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<WebTest> listByResourceGroup(String resourceGroupName)
      Get all Application Insights web tests defined within a specified resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      all Application Insights web tests defined within a specified resource group as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<WebTest> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Get all Application Insights web tests defined within a specified resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      all Application Insights web tests defined within a specified resource group as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroup

      WebTest getByResourceGroup(String resourceGroupName, String webTestName)
      Get a specific Application Insights web test definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      webTestName - The name of the Application Insights webtest resource.
      Returns:
      a specific Application Insights web test definition.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<WebTest> getByResourceGroupWithResponse(String resourceGroupName, String webTestName, com.azure.core.util.Context context)
      Get a specific Application Insights web test definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      webTestName - The name of the Application Insights webtest resource.
      context - The context to associate with this operation.
      Returns:
      a specific Application Insights web test definition along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteByResourceGroup

      void deleteByResourceGroup(String resourceGroupName, String webTestName)
      Deletes an Application Insights web test.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      webTestName - The name of the Application Insights webtest resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String webTestName, com.azure.core.util.Context context)
      Deletes an Application Insights web test.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      webTestName - The name of the Application Insights webtest resource.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<WebTest> list()
      Get all Application Insights web test alerts definitions within a subscription.
      Returns:
      all Application Insights web test alerts definitions within a subscription as paginated response with PagedIterable.
      Throws:
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<WebTest> list(com.azure.core.util.Context context)
      Get all Application Insights web test alerts definitions within a subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      all Application Insights web test alerts definitions within a subscription as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByComponent

      com.azure.core.http.rest.PagedIterable<WebTest> listByComponent(String componentName, String resourceGroupName)
      Get all Application Insights web tests defined for the specified component.
      Parameters:
      componentName - The name of the Application Insights component resource.
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      all Application Insights web tests defined for the specified component as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByComponent

      com.azure.core.http.rest.PagedIterable<WebTest> listByComponent(String componentName, String resourceGroupName, com.azure.core.util.Context context)
      Get all Application Insights web tests defined for the specified component.
      Parameters:
      componentName - The name of the Application Insights component resource.
      resourceGroupName - The name of the resource group. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      all Application Insights web tests defined for the specified component as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getById

      WebTest getById(String id)
      Get a specific Application Insights web test definition.
      Parameters:
      id - the resource ID.
      Returns:
      a specific Application Insights web test definition along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<WebTest> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Get a specific Application Insights web test definition.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      a specific Application Insights web test definition along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteById

      void deleteById(String id)
      Deletes an Application Insights web test.
      Parameters:
      id - the resource ID.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteByIdWithResponse

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes an Application Insights web test.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • define

      Begins definition for a new WebTest resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new WebTest definition.