QueriesOperations Class

QueriesOperations operations.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

Inheritance
builtins.object
QueriesOperations

Constructor

QueriesOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

api_version

The API version to use for this operation. Constant value: "2019-09-01-preview".

Methods

delete

Deletes a specific Query defined within an Log Analytics QueryPack.

get

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

list

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

put

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

search

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

delete

Deletes a specific Query defined within an Log Analytics QueryPack.

delete(resource_group_name, query_pack_name, query_id, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

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

query_pack_name
str
Required

The name of the Log Analytics QueryPack resource.

query_id
str
Required

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

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

None or ClientRawResponse if raw=true

Return type

None,

Exceptions

get

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

get(resource_group_name, query_pack_name, query_id, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

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

query_pack_name
str
Required

The name of the Log Analytics QueryPack resource.

query_id
str
Required

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

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

LogAnalyticsQueryPackQuery or ClientRawResponse if raw=true

Return type

Exceptions

list

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

list(resource_group_name, query_pack_name, top=None, include_body=None, skip_token=None, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

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

query_pack_name
str
Required

The name of the Log Analytics QueryPack resource.

top
int
default value: None

Maximum items returned in page.

include_body
bool
default value: None

Flag indicating whether or not to return the body of each applicable query. If false, only return the query information.

skip_token
str
default value: None

Base64 encoded token used to fetch the next page of items. Default is null.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

An iterator like instance of LogAnalyticsQueryPackQuery

Return type

Exceptions

put

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

put(resource_group_name, query_pack_name, query_id, query_payload, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

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

query_pack_name
str
Required

The name of the Log Analytics QueryPack resource.

query_id
str
Required

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

query_payload
LogAnalyticsQueryPackQuery
Required

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

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

LogAnalyticsQueryPackQuery or ClientRawResponse if raw=true

Return type

Exceptions

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

search(resource_group_name, query_pack_name, query_search_properties, top=None, include_body=None, skip_token=None, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

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

query_pack_name
str
Required

The name of the Log Analytics QueryPack resource.

query_search_properties
LogAnalyticsQueryPackQuerySearchProperties
Required

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

top
int
default value: None

Maximum items returned in page.

include_body
bool
default value: None

Flag indicating whether or not to return the body of each applicable query. If false, only return the query information.

skip_token
str
default value: None

Base64 encoded token used to fetch the next page of items. Default is null.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

An iterator like instance of LogAnalyticsQueryPackQuery

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.applicationinsights.v2019_09_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\applicationinsights\\v2019_09_01_preview\\models\\__init__.py'>