Interface TagRulesClient


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

    • list

      com.azure.core.http.rest.PagedIterable<MonitoringTagRulesInner> list(String resourceGroupName, String monitorName)
      List the tag rules for a given monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the Elastic resource belongs.
      monitorName - Monitor resource name.
      Returns:
      response of a 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<MonitoringTagRulesInner> list(String resourceGroupName, String monitorName, com.azure.core.util.Context context)
      List the tag rules for a given monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the Elastic resource belongs.
      monitorName - Monitor resource name.
      context - The context to associate with this operation.
      Returns:
      response of a 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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<MonitoringTagRulesInner> createOrUpdateWithResponse(String resourceGroupName, String monitorName, String ruleSetName, MonitoringTagRulesInner body, com.azure.core.util.Context context)
      Create or update a tag rule set for a given monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the Elastic resource belongs.
      monitorName - Monitor resource name.
      ruleSetName - Tag Rule Set resource name.
      body - request body of MonitoringTagRules.
      context - The context to associate with this operation.
      Returns:
      capture logs and metrics of Azure resources based on ARM tags 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

      MonitoringTagRulesInner createOrUpdate(String resourceGroupName, String monitorName, String ruleSetName)
      Create or update a tag rule set for a given monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the Elastic resource belongs.
      monitorName - Monitor resource name.
      ruleSetName - Tag Rule Set resource name.
      Returns:
      capture logs and metrics of Azure resources based on ARM tags.
      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<MonitoringTagRulesInner> getWithResponse(String resourceGroupName, String monitorName, String ruleSetName, com.azure.core.util.Context context)
      Get a tag rule set for a given monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the Elastic resource belongs.
      monitorName - Monitor resource name.
      ruleSetName - Tag Rule Set resource name.
      context - The context to associate with this operation.
      Returns:
      a tag rule set for a given monitor resource 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.
    • get

      MonitoringTagRulesInner get(String resourceGroupName, String monitorName, String ruleSetName)
      Get a tag rule set for a given monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the Elastic resource belongs.
      monitorName - Monitor resource name.
      ruleSetName - Tag Rule Set resource name.
      Returns:
      a tag rule set for a given monitor 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName, String ruleSetName)
      Delete a tag rule set for a given monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the Elastic resource belongs.
      monitorName - Monitor resource name.
      ruleSetName - Tag Rule Set resource name.
      Returns:
      the SyncPoller for polling of long-running 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName, String ruleSetName, com.azure.core.util.Context context)
      Delete a tag rule set for a given monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the Elastic resource belongs.
      monitorName - Monitor resource name.
      ruleSetName - Tag Rule Set resource name.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running 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.
    • delete

      void delete(String resourceGroupName, String monitorName, String ruleSetName)
      Delete a tag rule set for a given monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the Elastic resource belongs.
      monitorName - Monitor resource name.
      ruleSetName - Tag Rule Set 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 tag rule set for a given monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the Elastic resource belongs.
      monitorName - Monitor resource name.
      ruleSetName - Tag Rule Set 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.