Interface AlertProcessingRulesClient


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

    • list

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

      AlertProcessingRuleInner 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

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

      AlertProcessingRuleInner createOrUpdate(String resourceGroupName, String alertProcessingRuleName, AlertProcessingRuleInner alertProcessingRule)
      Create or update 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 created/updated.
      alertProcessingRule - Alert processing rule to be created/updated.
      Returns:
      alert processing rule object containing target scopes, conditions and scheduling logic.
      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

      AlertProcessingRulesCreateOrUpdateResponse createOrUpdateWithResponse(String resourceGroupName, String alertProcessingRuleName, AlertProcessingRuleInner alertProcessingRule, com.azure.core.util.Context context)
      Create or update 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 created/updated.
      alertProcessingRule - Alert processing rule to be created/updated.
      context - The context to associate with this operation.
      Returns:
      alert processing rule object containing target scopes, conditions and scheduling logic.
      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 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.
    • update

      AlertProcessingRuleInner update(String resourceGroupName, String alertProcessingRuleName, PatchObject alertProcessingRulePatch)
      Enable, disable, or update tags for an alert processing rule.
      Parameters:
      resourceGroupName - Resource group name where the resource is created.
      alertProcessingRuleName - The name that needs to be updated.
      alertProcessingRulePatch - Parameters supplied to the operation.
      Returns:
      alert processing rule object containing target scopes, conditions and scheduling logic.
      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.
    • updateWithResponse

      AlertProcessingRulesUpdateResponse updateWithResponse(String resourceGroupName, String alertProcessingRuleName, PatchObject alertProcessingRulePatch, com.azure.core.util.Context context)
      Enable, disable, or update tags for an alert processing rule.
      Parameters:
      resourceGroupName - Resource group name where the resource is created.
      alertProcessingRuleName - The name that needs to be updated.
      alertProcessingRulePatch - Parameters supplied to the operation.
      context - The context to associate with this operation.
      Returns:
      alert processing rule object containing target scopes, conditions and scheduling logic.
      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.