Class LogsBatchQuery

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

public final class LogsBatchQuery extends Object
A fluent class to create a batch of logs queries.
  • Constructor Details

    • LogsBatchQuery

      public 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.