Skip to content

AzureMonitorQueryClientInterface

A single KQL query against one Log Analytics workspace.

Split from AzureMonitorQueryClient so a consumer like quioteframework/replay-azure’s LogAnalyticsIndex depends on the one operation it actually calls, not the concrete REST client — the same shape AzureTokenProvider already gives token providers.

interface AzureMonitorQueryClientInterface

Implemented byAzureMonitorQueryClient
SourceAzureMonitorQueryClientInterface.php
MethodDescription
query(string $kql): list<array<string, mixed>>Runs $kql and returns its primary result table as one row per array, keyed by column name.

abstract public function query(string $kql): list<array<string, mixed>>

Runs $kql and returns its primary result table as one row per array, keyed by column name.

An empty result set (including a query with no tables at all) is an empty list, not an error.

ParameterTypeDescription
$kqlstring

Returns list``<``array``<``string``, ``mixed``>``>

ThrowsWhen
AzureStorageExceptionOn a non-2xx response, a transport failure that survived the retries, or a response body that was not the JSON shape this expects.