Interface ActionsClient


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

    • listByAlertRule

      com.azure.core.http.rest.PagedIterable<ActionResponseInner> listByAlertRule(String resourceGroupName, String workspaceName, String ruleId)
      Gets all actions of alert rule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      ruleId - Alert rule ID.
      Returns:
      all actions of alert rule 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.
    • listByAlertRule

      com.azure.core.http.rest.PagedIterable<ActionResponseInner> listByAlertRule(String resourceGroupName, String workspaceName, String ruleId, com.azure.core.util.Context context)
      Gets all actions of alert rule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      ruleId - Alert rule ID.
      context - The context to associate with this operation.
      Returns:
      all actions of alert rule 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

      ActionResponseInner get(String resourceGroupName, String workspaceName, String ruleId, String actionId)
      Gets the action of alert rule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      ruleId - Alert rule ID.
      actionId - Action ID.
      Returns:
      the action of 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.
    • getWithResponse

      com.azure.core.http.rest.Response<ActionResponseInner> getWithResponse(String resourceGroupName, String workspaceName, String ruleId, String actionId, com.azure.core.util.Context context)
      Gets the action of alert rule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      ruleId - Alert rule ID.
      actionId - Action ID.
      context - The context to associate with this operation.
      Returns:
      the action of alert 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.
    • createOrUpdate

      ActionResponseInner createOrUpdate(String resourceGroupName, String workspaceName, String ruleId, String actionId, ActionRequest action)
      Creates or updates the action of alert rule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      ruleId - Alert rule ID.
      actionId - Action ID.
      action - The action.
      Returns:
      action for 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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<ActionResponseInner> createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String ruleId, String actionId, ActionRequest action, com.azure.core.util.Context context)
      Creates or updates the action of alert rule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      ruleId - Alert rule ID.
      actionId - Action ID.
      action - The action.
      context - The context to associate with this operation.
      Returns:
      action for alert 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 resourceGroupName, String workspaceName, String ruleId, String actionId)
      Delete the action of alert rule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      ruleId - Alert rule ID.
      actionId - Action 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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, String ruleId, String actionId, com.azure.core.util.Context context)
      Delete the action of alert rule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      ruleId - Alert rule ID.
      actionId - Action 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.