Interface Actions


  • public interface Actions
    Resource collection API of Actions.
    • Method Detail

      • listByAlertRule

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

        ActionResponse 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<ActionResponse> 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.
      • 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.
      • getById

        ActionResponse getById​(String id)
        Gets the action of alert rule.
        Parameters:
        id - the resource ID.
        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.
      • getByIdWithResponse

        com.azure.core.http.rest.Response<ActionResponse> getByIdWithResponse​(String id,
                                                                              com.azure.core.util.Context context)
        Gets the action of alert rule.
        Parameters:
        id - the resource 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.
      • deleteById

        void deleteById​(String id)
        Delete the action of alert 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

        com.azure.core.http.rest.Response<Void> deleteByIdWithResponse​(String id,
                                                                       com.azure.core.util.Context context)
        Delete the action of alert 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

        ActionResponse.DefinitionStages.Blank define​(String name)
        Begins definition for a new ActionResponse resource.
        Parameters:
        name - resource name.
        Returns:
        the first stage of the new ActionResponse definition.