Interface SavedSearchesClient


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

    • delete

      void delete(String resourceGroupName, String workspaceName, String savedSearchId)
      Deletes the specified saved search in a given workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      savedSearchId - The id of the saved search.
      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 savedSearchId, com.azure.core.util.Context context)
      Deletes the specified saved search in a given workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      savedSearchId - The id of the saved search.
      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.
    • createOrUpdate

      SavedSearchInner createOrUpdate(String resourceGroupName, String workspaceName, String savedSearchId, SavedSearchInner parameters)
      Creates or updates a saved search for a given workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      savedSearchId - The id of the saved search.
      parameters - The parameters required to save a search.
      Returns:
      value object for saved search results.
      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<SavedSearchInner> createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String savedSearchId, SavedSearchInner parameters, com.azure.core.util.Context context)
      Creates or updates a saved search for a given workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      savedSearchId - The id of the saved search.
      parameters - The parameters required to save a search.
      context - The context to associate with this operation.
      Returns:
      value object for saved search results 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

      SavedSearchInner get(String resourceGroupName, String workspaceName, String savedSearchId)
      Gets the specified saved search for a given workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      savedSearchId - The id of the saved search.
      Returns:
      the specified saved search for a given workspace.
      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<SavedSearchInner> getWithResponse(String resourceGroupName, String workspaceName, String savedSearchId, com.azure.core.util.Context context)
      Gets the specified saved search for a given workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      savedSearchId - The id of the saved search.
      context - The context to associate with this operation.
      Returns:
      the specified saved search for a given workspace 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.
    • listByWorkspace

      SavedSearchesListResultInner listByWorkspace(String resourceGroupName, String workspaceName)
      Gets the saved searches for a given Log Analytics Workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      Returns:
      the saved searches for a given Log Analytics Workspace.
      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.
    • listByWorkspaceWithResponse

      com.azure.core.http.rest.Response<SavedSearchesListResultInner> listByWorkspaceWithResponse(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
      Gets the saved searches for a given Log Analytics Workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      context - The context to associate with this operation.
      Returns:
      the saved searches for a given Log Analytics Workspace 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.