LogsBatchQuery Class

  • java.lang.Object
    • com.azure.monitor.query.models.LogsBatchQuery

public final class LogsBatchQuery

A fluent class to create a batch of logs queries.

Constructor Summary

Constructor Description
LogsBatchQuery()

Creates an instance of LogsBatchQuery.

Method Summary

Modifier and Type Method and Description
String addWorkspaceQuery(String workspaceId, String query, QueryTimeInterval timeInterval)

Adds a new logs query to the batch.

String addWorkspaceQuery(String workspaceId, String query, QueryTimeInterval timeInterval, LogsQueryOptions logsQueryOptions)

Adds a new logs query to the batch.

Methods inherited from java.lang.Object

Constructor Details

LogsBatchQuery

public LogsBatchQuery()

Creates an instance of LogsBatchQuery.

Method Details

addWorkspaceQuery

public String addWorkspaceQuery(String workspaceId, String query, QueryTimeInterval timeInterval)

Adds a new logs query to the batch.

Parameters:

workspaceId - The workspaceId on which the query is executed.
query - The Kusto query.
timeInterval - The time period for which the logs should be queried.

Returns:

The index of the query in the batch.

addWorkspaceQuery

public String addWorkspaceQuery(String workspaceId, String query, QueryTimeInterval timeInterval, LogsQueryOptions logsQueryOptions)

Adds a new logs query to the batch.

Parameters:

workspaceId - The workspaceId on which the query is executed.
query - The Kusto query.
timeInterval - The time period for which the logs should be queried.
logsQueryOptions - The log query options to configure server timeout, set additional workspaces or enable statistics and rendering information in response.

Returns:

The index of the query in the batch.

Applies to