Interface AlertsSuppressionRules


public interface AlertsSuppressionRules
Resource collection API of AlertsSuppressionRules.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(String alertsSuppressionRuleName)
    Delete dismiss alert rule for this subscription.
    com.azure.core.http.rest.Response<Void>
    deleteWithResponse(String alertsSuppressionRuleName, com.azure.core.util.Context context)
    Delete dismiss alert rule for this subscription.
    get(String alertsSuppressionRuleName)
    Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription.
    com.azure.core.http.rest.Response<AlertsSuppressionRule>
    getWithResponse(String alertsSuppressionRuleName, com.azure.core.util.Context context)
    Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription.
    com.azure.core.http.rest.PagedIterable<AlertsSuppressionRule>
    List of all the dismiss rules for the given subscription.
    com.azure.core.http.rest.PagedIterable<AlertsSuppressionRule>
    list(String alertType, com.azure.core.util.Context context)
    List of all the dismiss rules for the given subscription.
    update(String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule)
    Update existing rule or create new rule if it doesn't exist.
    com.azure.core.http.rest.Response<AlertsSuppressionRule>
    updateWithResponse(String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule, com.azure.core.util.Context context)
    Update existing rule or create new rule if it doesn't exist.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<AlertsSuppressionRule> 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<AlertsSuppressionRule> 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.
    • get

      AlertsSuppressionRule 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.
    • getWithResponse

      com.azure.core.http.rest.Response<AlertsSuppressionRule> 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.
    • update

      AlertsSuppressionRule 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.
    • updateWithResponse

      com.azure.core.http.rest.Response<AlertsSuppressionRule> 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.
    • 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.
    • 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.