azure.loganalytics package¶
-
class
azure.loganalytics.
LogAnalyticsDataClient
(credentials, base_url=None)[source]¶ Log Analytics Data Plane Client
- Variables
config (LogAnalyticsDataClientConfiguration) – Configuration for client.
- Parameters
-
query
(workspace_id, body, custom_headers=None, raw=False, **operation_config)[source]¶ Execute an Analytics query.
Executes an Analytics query for data. [Here](https://dev.loganalytics.io/documentation/Using-the-API) is an example for using POST with an Analytics query.
- Parameters
workspace_id (str) – ID of the workspace. This is Workspace ID from the Properties blade in the Azure portal.
body (QueryBody) – The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
QueryResults or ClientRawResponse if raw=true
- Return type
QueryResults or ClientRawResponse
- Raises
Subpackages¶
- azure.loganalytics.models package
- Submodules
- azure.loganalytics.models.column module
- azure.loganalytics.models.column_py3 module
- azure.loganalytics.models.error_detail module
- azure.loganalytics.models.error_detail_py3 module
- azure.loganalytics.models.error_info module
- azure.loganalytics.models.error_info_py3 module
- azure.loganalytics.models.error_response module
- azure.loganalytics.models.error_response_py3 module
- azure.loganalytics.models.query_body module
- azure.loganalytics.models.query_body_py3 module
- azure.loganalytics.models.query_results module
- azure.loganalytics.models.query_results_py3 module
- azure.loganalytics.models.table module
- azure.loganalytics.models.table_py3 module
Submodules¶
azure.loganalytics.log_analytics_data_client module¶
-
class
azure.loganalytics.log_analytics_data_client.
LogAnalyticsDataClient
(credentials, base_url=None)[source]¶ Log Analytics Data Plane Client
- Variables
config (LogAnalyticsDataClientConfiguration) – Configuration for client.
- Parameters
-
query
(workspace_id, body, custom_headers=None, raw=False, **operation_config)[source]¶ Execute an Analytics query.
Executes an Analytics query for data. [Here](https://dev.loganalytics.io/documentation/Using-the-API) is an example for using POST with an Analytics query.
- Parameters
workspace_id (str) – ID of the workspace. This is Workspace ID from the Properties blade in the Azure portal.
body (QueryBody) – The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
QueryResults or ClientRawResponse if raw=true
- Return type
QueryResults or ClientRawResponse
- Raises
-
class
azure.loganalytics.log_analytics_data_client.
LogAnalyticsDataClientConfiguration
(credentials, base_url=None)[source]¶ Configuration for LogAnalyticsDataClient Note that all parameters used to create this instance are saved as instance attributes.
- Parameters
-
add_user_agent
(value: str) → None¶ Add value to current user agent with a space.
- Parameters
value (str) – value to add to user agent.
-
load
(filepath)¶ Load configuration from existing file.
- Parameters
filepath (str) – Path to existing config file.
- Raises
ValueError if supplied config file is invalid.
-
save
(filepath)¶ Save current configuration to file.
- Parameters
filepath (str) – Path to file where settings will be saved.
- Raises
ValueError if supplied filepath cannot be written to.
-
property
enable_http_logger
¶
-
property
user_agent
¶ The current user agent value.