QueryPacks interface
Interface representing a QueryPacks.
Methods
create |
Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. |
create |
Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. |
delete(string, string, Query |
Deletes a Log Analytics QueryPack. |
get(string, string, Query |
Returns a Log Analytics QueryPack. |
list(Query |
Gets a list of all Log Analytics QueryPacks within a subscription. |
list |
Gets a list of Log Analytics QueryPacks within a resource group. |
update |
Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method. |
Method Details
createOrUpdate(string, string, LogAnalyticsQueryPack, QueryPacksCreateOrUpdateOptionalParams)
Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
function createOrUpdate(resourceGroupName: string, queryPackName: string, logAnalyticsQueryPackPayload: LogAnalyticsQueryPack, options?: QueryPacksCreateOrUpdateOptionalParams): Promise<LogAnalyticsQueryPack>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- queryPackName
-
string
The name of the Log Analytics QueryPack resource.
- logAnalyticsQueryPackPayload
- LogAnalyticsQueryPack
Properties that need to be specified to create or update a Log Analytics QueryPack.
The options parameters.
Returns
Promise<LogAnalyticsQueryPack>
createOrUpdateWithoutName(string, LogAnalyticsQueryPack, QueryPacksCreateOrUpdateWithoutNameOptionalParams)
Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
function createOrUpdateWithoutName(resourceGroupName: string, logAnalyticsQueryPackPayload: LogAnalyticsQueryPack, options?: QueryPacksCreateOrUpdateWithoutNameOptionalParams): Promise<LogAnalyticsQueryPack>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- logAnalyticsQueryPackPayload
- LogAnalyticsQueryPack
Properties that need to be specified to create or update a Log Analytics QueryPack.
The options parameters.
Returns
Promise<LogAnalyticsQueryPack>
delete(string, string, QueryPacksDeleteOptionalParams)
Deletes a Log Analytics QueryPack.
function delete(resourceGroupName: string, queryPackName: string, options?: QueryPacksDeleteOptionalParams): 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.
- options
- QueryPacksDeleteOptionalParams
The options parameters.
Returns
Promise<void>
get(string, string, QueryPacksGetOptionalParams)
Returns a Log Analytics QueryPack.
function get(resourceGroupName: string, queryPackName: string, options?: QueryPacksGetOptionalParams): Promise<LogAnalyticsQueryPack>
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
- QueryPacksGetOptionalParams
The options parameters.
Returns
Promise<LogAnalyticsQueryPack>
list(QueryPacksListOptionalParams)
Gets a list of all Log Analytics QueryPacks within a subscription.
function list(options?: QueryPacksListOptionalParams): PagedAsyncIterableIterator<LogAnalyticsQueryPack, LogAnalyticsQueryPack[], PageSettings>
Parameters
- options
- QueryPacksListOptionalParams
The options parameters.
Returns
listByResourceGroup(string, QueryPacksListByResourceGroupOptionalParams)
Gets a list of Log Analytics QueryPacks within a resource group.
function listByResourceGroup(resourceGroupName: string, options?: QueryPacksListByResourceGroupOptionalParams): PagedAsyncIterableIterator<LogAnalyticsQueryPack, LogAnalyticsQueryPack[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
The options parameters.
Returns
updateTags(string, string, TagsResource, QueryPacksUpdateTagsOptionalParams)
Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.
function updateTags(resourceGroupName: string, queryPackName: string, queryPackTags: TagsResource, options?: QueryPacksUpdateTagsOptionalParams): Promise<LogAnalyticsQueryPack>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- queryPackName
-
string
The name of the Log Analytics QueryPack resource.
- queryPackTags
- TagsResource
Updated tag information to set into the QueryPack instance.
The options parameters.
Returns
Promise<LogAnalyticsQueryPack>