Interface TagRules


public interface TagRules
Resource collection API of TagRules.
  • Method Details

    • get

      TagRule get(String resourceGroupName, String monitorName, String ruleSetName)
      Get a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource name.
      Returns:
      a TagRule.
      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.
    • getWithResponse

      com.azure.core.http.rest.Response<TagRule> getWithResponse(String resourceGroupName, String monitorName, String ruleSetName, com.azure.core.util.Context context)
      Get a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource name.
      context - The context to associate with this operation.
      Returns:
      a TagRule 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 monitorName, String ruleSetName)
      Delete a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource name.
      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 monitorName, String ruleSetName, com.azure.core.util.Context context)
      Delete a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource name.
      context - The context to associate with this operation.
      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<TagRule> list(String resourceGroupName, String monitorName)
      List all TagRule by monitorName.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      Returns:
      the response of a TagRule list operation 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.
    • list

      com.azure.core.http.rest.PagedIterable<TagRule> list(String resourceGroupName, String monitorName, com.azure.core.util.Context context)
      List all TagRule by monitorName.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      context - The context to associate with this operation.
      Returns:
      the response of a TagRule list operation 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

      TagRule getById(String id)
      Get a TagRule.
      Parameters:
      id - the resource ID.
      Returns:
      a TagRule 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<TagRule> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Get a TagRule.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      a TagRule 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)
      Delete a TagRule.
      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

      void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Delete a TagRule.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      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 TagRule resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new TagRule definition.