LogAnalyticsDataClient Class

Log Analytics Data Plane Client

Inheritance
LogAnalyticsDataClient

Constructor

LogAnalyticsDataClient(credentials, base_url=None)

Parameters

credentials
None
Required

Subscription credentials which uniquely identify client subscription.

base_url
str
default value: None

Service URL

Variables

config
LogAnalyticsDataClientConfiguration

Configuration for client.

Methods

query

Execute an Analytics query.

Executes an Analytics query for data. Here is an example for using POST with an Analytics query.

query

Execute an Analytics query.

Executes an Analytics query for data. Here is an example for using POST with an Analytics query.

query(workspace_id, body, custom_headers=None, raw=False, **operation_config)

Parameters

workspace_id
str
Required

ID of the workspace. This is Workspace ID from the Properties blade in the Azure portal.

body
QueryBody
Required

The Analytics query. Learn more about the Analytics query syntax

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

QueryResults or ClientRawResponse if raw=true

Return type

Exceptions