LogsQueryResult Class

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

public class LogsQueryResult

The result of a logs query.

Constructor Summary

Constructor Description
LogsQueryResult(List<LogsTable> logsTables, BinaryData statistics, BinaryData visualization, ResponseError error)

Creates an instance LogsQueryResult with a list of LogsTable.

Method Summary

Modifier and Type Method and Description
List<LogsTable> getAllTables()

The list of LogsTable returned as query result.

ResponseError getError()

Returns the error details if there was an error executing the query.

LogsQueryResultStatus getQueryResultStatus()

Returns the status of the query result.

BinaryData getStatistics()

Returns the query statistics.

LogsTable getTable()

The primary LogsTable returned as query result.

BinaryData getVisualization()

Returns the visualization information for the logs query.

Methods inherited from java.lang.Object

Constructor Details

LogsQueryResult

public LogsQueryResult(List 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 getAllTables()

The list of LogsTable returned as query result.

Returns:

The list of LogsTable returned as query result.

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.

getQueryResultStatus

public LogsQueryResultStatus getQueryResultStatus()

Returns the status of the query result.

Returns:

the status of the query result.

getStatistics

public BinaryData getStatistics()

Returns the query statistics.

Returns:

the query statistics.

getTable

public LogsTable getTable()

The primary LogsTable returned as query result.

Returns:

The primary LogsTable returned as query result.

getVisualization

public BinaryData getVisualization()

Returns the visualization information for the logs query.

Returns:

the visualization information for the logs query.

Applies to