Interface SavedSearches


public interface SavedSearches
Resource collection API of SavedSearches.
  • 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.
    • get

      SavedSearch 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<SavedSearch> 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

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

      SavedSearch getById(String id)
      Gets the specified saved search for a given workspace.
      Parameters:
      id - the resource ID.
      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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<SavedSearch> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets the specified saved search for a given workspace.
      Parameters:
      id - the resource ID.
      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.
    • deleteById

      void deleteById(String id)
      Deletes the specified saved search in a given workspace.
      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)
      Deletes the specified saved search in a given workspace.
      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

      Begins definition for a new SavedSearch resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new SavedSearch definition.