你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SavedSearches interface

Interface representing a SavedSearches.

Methods

createOrUpdate(string, string, string, SavedSearch, SavedSearchesCreateOrUpdateOptionalParams)

Creates or updates a saved search for a given workspace.

delete(string, string, string, SavedSearchesDeleteOptionalParams)

Deletes the specified saved search in a given workspace.

get(string, string, string, SavedSearchesGetOptionalParams)

Gets the specified saved search for a given workspace.

listByWorkspace(string, string, SavedSearchesListByWorkspaceOptionalParams)

Gets the saved searches for a given Log Analytics Workspace

Method Details

createOrUpdate(string, string, string, SavedSearch, SavedSearchesCreateOrUpdateOptionalParams)

Creates or updates a saved search for a given workspace.

function createOrUpdate(resourceGroupName: string, workspaceName: string, savedSearchId: string, parameters: SavedSearch, options?: SavedSearchesCreateOrUpdateOptionalParams): Promise<SavedSearch>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

The name of the workspace.

savedSearchId

string

The id of the saved search.

parameters
SavedSearch

The parameters required to save a search.

options
SavedSearchesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<SavedSearch>

delete(string, string, string, SavedSearchesDeleteOptionalParams)

Deletes the specified saved search in a given workspace.

function delete(resourceGroupName: string, workspaceName: string, savedSearchId: string, options?: SavedSearchesDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

The name of the workspace.

savedSearchId

string

The id of the saved search.

options
SavedSearchesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, SavedSearchesGetOptionalParams)

Gets the specified saved search for a given workspace.

function get(resourceGroupName: string, workspaceName: string, savedSearchId: string, options?: SavedSearchesGetOptionalParams): Promise<SavedSearch>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

The name of the workspace.

savedSearchId

string

The id of the saved search.

options
SavedSearchesGetOptionalParams

The options parameters.

Returns

Promise<SavedSearch>

listByWorkspace(string, string, SavedSearchesListByWorkspaceOptionalParams)

Gets the saved searches for a given Log Analytics Workspace

function listByWorkspace(resourceGroupName: string, workspaceName: string, options?: SavedSearchesListByWorkspaceOptionalParams): Promise<SavedSearchesListResult>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

The name of the workspace.

options
SavedSearchesListByWorkspaceOptionalParams

The options parameters.

Returns