Interface AlertProcessingRules


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

    • list

      com.azure.core.http.rest.PagedIterable<AlertProcessingRule> list()
      List all alert processing rules in a subscription.
      Returns:
      list of alert processing rules 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<AlertProcessingRule> list(com.azure.core.util.Context context)
      List all alert processing rules in a subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      list of alert processing rules 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<AlertProcessingRule> listByResourceGroup(String resourceGroupName)
      List all alert processing rules in a resource group.
      Parameters:
      resourceGroupName - Resource group name where the resource is created.
      Returns:
      list of alert processing rules 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<AlertProcessingRule> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      List all alert processing rules in a resource group.
      Parameters:
      resourceGroupName - Resource group name where the resource is created.
      context - The context to associate with this operation.
      Returns:
      list of alert processing rules 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

      AlertProcessingRule getByResourceGroup(String resourceGroupName, String alertProcessingRuleName)
      Get an alert processing rule by name.
      Parameters:
      resourceGroupName - Resource group name where the resource is created.
      alertProcessingRuleName - The name of the alert processing rule that needs to be fetched.
      Returns:
      an alert processing rule by 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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<AlertProcessingRule> getByResourceGroupWithResponse(String resourceGroupName, String alertProcessingRuleName, com.azure.core.util.Context context)
      Get an alert processing rule by name.
      Parameters:
      resourceGroupName - Resource group name where the resource is created.
      alertProcessingRuleName - The name of the alert processing rule that needs to be fetched.
      context - The context to associate with this operation.
      Returns:
      an alert processing rule by 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.
    • deleteByResourceGroup

      void deleteByResourceGroup(String resourceGroupName, String alertProcessingRuleName)
      Delete an alert processing rule.
      Parameters:
      resourceGroupName - Resource group name where the resource is created.
      alertProcessingRuleName - The name of the alert processing rule that needs to be deleted.
      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

      AlertProcessingRulesDeleteResponse deleteWithResponse(String resourceGroupName, String alertProcessingRuleName, com.azure.core.util.Context context)
      Delete an alert processing rule.
      Parameters:
      resourceGroupName - Resource group name where the resource is created.
      alertProcessingRuleName - The name of the alert processing rule that needs to be deleted.
      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.
    • getById

      Get an alert processing rule by name.
      Parameters:
      id - the resource ID.
      Returns:
      an alert processing rule by 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<AlertProcessingRule> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Get an alert processing rule by name.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      an alert processing rule by 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.
    • deleteById

      void deleteById(String id)
      Delete an alert processing rule.
      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

      AlertProcessingRulesDeleteResponse deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Delete an alert processing rule.
      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 AlertProcessingRule resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new AlertProcessingRule definition.