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.objectQueriesOperations
Constructor
QueriesOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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
- operation_config
Operation configuration overrides.
Returns
None or ClientRawResponse if raw=true
Return type
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
- operation_config
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
- include_body
- bool
Flag indicating whether or not to return the body of each applicable query. If false, only return the query information.
- skip_token
- str
Base64 encoded token used to fetch the next page of items. Default is null.
- operation_config
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
- query_payload
- LogAnalyticsQueryPackQuery
Properties that need to be specified to create a new query and add it to a Log Analytics QueryPack.
- operation_config
Operation configuration overrides.
Returns
LogAnalyticsQueryPackQuery or ClientRawResponse if raw=true
Return type
Exceptions
search
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
- query_search_properties
- LogAnalyticsQueryPackQuerySearchProperties
Properties by which to search queries in the given Log Analytics QueryPack.
- include_body
- bool
Flag indicating whether or not to return the body of each applicable query. If false, only return the query information.
- skip_token
- str
Base64 encoded token used to fetch the next page of items. Default is null.
- operation_config
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'>
Feedback
Submit and view feedback for