Package com.azure.monitor.query.models
Class LogsBatchQuery
java.lang.Object
com.azure.monitor.query.models.LogsBatchQuery
A fluent class to create a batch of logs queries.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddWorkspaceQuery
(String workspaceId, String query, QueryTimeInterval timeInterval) Adds a new logs query to the batch.addWorkspaceQuery
(String workspaceId, String query, QueryTimeInterval timeInterval, LogsQueryOptions logsQueryOptions) Adds a new logs query to the batch.
-
Constructor Details
-
LogsBatchQuery
public LogsBatchQuery()
-
-
Method Details
-
addWorkspaceQuery
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.
-