Queries interface

Interface representing a Queries.

Methods

delete(string, string, string, QueriesDeleteOptionalParams)

Deletes a specific Query defined within an Log Analytics QueryPack.

get(string, string, string, QueriesGetOptionalParams)

Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.

list(string, string, QueriesListOptionalParams)

Gets a list of Queries defined within a Log Analytics QueryPack.

listSearch(string, string, LogAnalyticsQueryPackQuerySearchProperties, QueriesSearchOptionalParams)

Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.

put(string, string, string, LogAnalyticsQueryPackQuery, QueriesPutOptionalParams)

Adds or Updates a specific Query within a Log Analytics QueryPack.

update(string, string, string, LogAnalyticsQueryPackQuery, QueriesUpdateOptionalParams)

Adds or Updates a specific Query within a Log Analytics QueryPack.

Method Details

delete(string, string, string, QueriesDeleteOptionalParams)

Deletes a specific Query defined within an Log Analytics QueryPack.

function delete(resourceGroupName: string, queryPackName: string, id: string, options?: QueriesDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

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

queryPackName

string

The name of the Log Analytics QueryPack resource.

id

string

The id of a specific query defined in the Log Analytics QueryPack

options
QueriesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, QueriesGetOptionalParams)

Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.

function get(resourceGroupName: string, queryPackName: string, id: string, options?: QueriesGetOptionalParams): Promise<LogAnalyticsQueryPackQuery>

Parameters

resourceGroupName

string

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

queryPackName

string

The name of the Log Analytics QueryPack resource.

id

string

The id of a specific query defined in the Log Analytics QueryPack

options
QueriesGetOptionalParams

The options parameters.

Returns

list(string, string, QueriesListOptionalParams)

Gets a list of Queries defined within a Log Analytics QueryPack.

function list(resourceGroupName: string, queryPackName: string, options?: QueriesListOptionalParams): PagedAsyncIterableIterator<LogAnalyticsQueryPackQuery, LogAnalyticsQueryPackQuery[], PageSettings>

Parameters

resourceGroupName

string

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

queryPackName

string

The name of the Log Analytics QueryPack resource.

options
QueriesListOptionalParams

The options parameters.

Returns

listSearch(string, string, LogAnalyticsQueryPackQuerySearchProperties, QueriesSearchOptionalParams)

Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.

function listSearch(resourceGroupName: string, queryPackName: string, querySearchProperties: LogAnalyticsQueryPackQuerySearchProperties, options?: QueriesSearchOptionalParams): PagedAsyncIterableIterator<LogAnalyticsQueryPackQuery, LogAnalyticsQueryPackQuery[], PageSettings>

Parameters

resourceGroupName

string

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

queryPackName

string

The name of the Log Analytics QueryPack resource.

querySearchProperties
LogAnalyticsQueryPackQuerySearchProperties

Properties by which to search queries in the given Log Analytics QueryPack.

options
QueriesSearchOptionalParams

The options parameters.

Returns

put(string, string, string, LogAnalyticsQueryPackQuery, QueriesPutOptionalParams)

Adds or Updates a specific Query within a Log Analytics QueryPack.

function put(resourceGroupName: string, queryPackName: string, id: string, queryPayload: LogAnalyticsQueryPackQuery, options?: QueriesPutOptionalParams): Promise<LogAnalyticsQueryPackQuery>

Parameters

resourceGroupName

string

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

queryPackName

string

The name of the Log Analytics QueryPack resource.

id

string

The id of a specific query defined in the Log Analytics QueryPack

queryPayload
LogAnalyticsQueryPackQuery

Properties that need to be specified to create a new query and add it to a Log Analytics QueryPack.

options
QueriesPutOptionalParams

The options parameters.

Returns

update(string, string, string, LogAnalyticsQueryPackQuery, QueriesUpdateOptionalParams)

Adds or Updates a specific Query within a Log Analytics QueryPack.

function update(resourceGroupName: string, queryPackName: string, id: string, queryPayload: LogAnalyticsQueryPackQuery, options?: QueriesUpdateOptionalParams): Promise<LogAnalyticsQueryPackQuery>

Parameters

resourceGroupName

string

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

queryPackName

string

The name of the Log Analytics QueryPack resource.

id

string

The id of a specific query defined in the Log Analytics QueryPack

queryPayload
LogAnalyticsQueryPackQuery

Properties that need to be specified to create a new query and add it to a Log Analytics QueryPack.

options
QueriesUpdateOptionalParams

The options parameters.

Returns