Interface AlertsSuppressionRulesClient


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

    • list

      com.azure.core.http.rest.PagedIterable<AlertsSuppressionRuleInner> list()
      List of all the dismiss rules for the given subscription.
      Returns:
      suppression rules list for 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<AlertsSuppressionRuleInner> list(String alertType, com.azure.core.util.Context context)
      List of all the dismiss rules for the given subscription.
      Parameters:
      alertType - Type of the alert to get rules for.
      context - The context to associate with this operation.
      Returns:
      suppression rules list for 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.
    • getWithResponse

      com.azure.core.http.rest.Response<AlertsSuppressionRuleInner> getWithResponse(String alertsSuppressionRuleName, com.azure.core.util.Context context)
      Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription.
      Parameters:
      alertsSuppressionRuleName - The unique name of the suppression alert rule.
      context - The context to associate with this operation.
      Returns:
      dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription 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

      AlertsSuppressionRuleInner get(String alertsSuppressionRuleName)
      Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription.
      Parameters:
      alertsSuppressionRuleName - The unique name of the suppression alert rule.
      Returns:
      dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription.
      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

      com.azure.core.http.rest.Response<AlertsSuppressionRuleInner> updateWithResponse(String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule, com.azure.core.util.Context context)
      Update existing rule or create new rule if it doesn't exist.
      Parameters:
      alertsSuppressionRuleName - The unique name of the suppression alert rule.
      alertsSuppressionRule - Suppression rule object.
      context - The context to associate with this operation.
      Returns:
      describes the suppression rule 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.
    • update

      AlertsSuppressionRuleInner update(String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule)
      Update existing rule or create new rule if it doesn't exist.
      Parameters:
      alertsSuppressionRuleName - The unique name of the suppression alert rule.
      alertsSuppressionRule - Suppression rule object.
      Returns:
      describes the suppression rule.
      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 alertsSuppressionRuleName, com.azure.core.util.Context context)
      Delete dismiss alert rule for this subscription.
      Parameters:
      alertsSuppressionRuleName - The unique name of the suppression alert rule.
      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.
    • delete

      void delete(String alertsSuppressionRuleName)
      Delete dismiss alert rule for this subscription.
      Parameters:
      alertsSuppressionRuleName - The unique name of the suppression alert rule.
      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.