Interface WebTestsClient


public interface WebTestsClient
An instance of this class provides access to all the operations defined in WebTestsClient.
  • Method Details

    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<WebTestInner> 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<WebTestInner> 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

      WebTestInner 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<WebTestInner> 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.
    • createOrUpdate

      WebTestInner createOrUpdate(String resourceGroupName, String webTestName, WebTestInner webTestDefinition)
      Creates or updates an 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.
      webTestDefinition - Properties that need to be specified to create or update an Application Insights web test definition.
      Returns:
      an 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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<WebTestInner> createOrUpdateWithResponse(String resourceGroupName, String webTestName, WebTestInner webTestDefinition, com.azure.core.util.Context context)
      Creates or updates an 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.
      webTestDefinition - Properties that need to be specified to create or update an Application Insights web test definition.
      context - The context to associate with this operation.
      Returns:
      an 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.
    • updateTags

      WebTestInner updateTags(String resourceGroupName, String webTestName, TagsResource webTestTags)
      Creates or updates an 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.
      webTestTags - Updated tag information to set into the web test instance.
      Returns:
      an 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.
    • updateTagsWithResponse

      com.azure.core.http.rest.Response<WebTestInner> updateTagsWithResponse(String resourceGroupName, String webTestName, TagsResource webTestTags, com.azure.core.util.Context context)
      Creates or updates an 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.
      webTestTags - Updated tag information to set into the web test instance.
      context - The context to associate with this operation.
      Returns:
      an 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.
    • delete

      void delete(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<WebTestInner> 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<WebTestInner> 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<WebTestInner> 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<WebTestInner> 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.