Class LogsQueryResult

java.lang.Object
com.azure.monitor.query.models.LogsQueryResult
Direct Known Subclasses:
LogsBatchQueryResult

public class LogsQueryResult extends Object
The result of a logs query.
  • Constructor Details

    • LogsQueryResult

      public LogsQueryResult(List<LogsTable> logsTables, BinaryData statistics, BinaryData visualization, ResponseError error)
      Creates an instance LogsQueryResult with a list of LogsTable.
      Parameters:
      logsTables - The list of LogsTable returned as query result.
      statistics - The query execution statistics.
      visualization - The visualization information for the logs query.
      error - The error details if there was an error executing the query.
  • Method Details

    • getAllTables

      public List<LogsTable> getAllTables()
      The list of LogsTable returned as query result.
      Returns:
      The list of LogsTable returned as query result.
    • getTable

      public LogsTable getTable()
      The primary LogsTable returned as query result.
      Returns:
      The primary LogsTable returned as query result.
      Throws:
      IllegalStateException - If this method is called when the query result contains more than one table.
    • getStatistics

      public BinaryData getStatistics()
      Returns the query statistics.
      Returns:
      the query statistics.
    • getError

      public ResponseError getError()
      Returns the error details if there was an error executing the query.
      Returns:
      the error details if there was an error executing the query.
    • getVisualization

      public BinaryData getVisualization()
      Returns the visualization information for the logs query.
      Returns:
      the visualization information for the logs query.
    • getQueryResultStatus

      public LogsQueryResultStatus getQueryResultStatus()
      Returns the status of the query result.
      Returns:
      the status of the query result.