Package com.azure.monitor.query.models
Class LogsQueryResult
java.lang.Object
com.azure.monitor.query.models.LogsQueryResult
- Direct Known Subclasses:
LogsBatchQueryResult
The result of a logs query.
-
Constructor Summary
ConstructorDescriptionLogsQueryResult
(List<LogsTable> logsTables, BinaryData statistics, BinaryData visualization, ResponseError error) Creates an instanceLogsQueryResult
with a list ofLogsTable
. -
Method Summary
Modifier and TypeMethodDescriptionThe list ofLogsTable
returned as query result.getError()
Returns the error details if there was an error executing the query.Returns the status of the query result.Returns the query statistics.getTable()
The primaryLogsTable
returned as query result.Returns the visualization information for the logs query.
-
Constructor Details
-
LogsQueryResult
public LogsQueryResult(List<LogsTable> logsTables, BinaryData statistics, BinaryData visualization, ResponseError error) Creates an instanceLogsQueryResult
with a list ofLogsTable
.- Parameters:
logsTables
- The list ofLogsTable
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
The list ofLogsTable
returned as query result.- Returns:
- The list of
LogsTable
returned as query result.
-
getTable
The primaryLogsTable
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
Returns the query statistics.- Returns:
- the query statistics.
-
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
Returns the visualization information for the logs query.- Returns:
- the visualization information for the logs query.
-
getQueryResultStatus
Returns the status of the query result.- Returns:
- the status of the query result.
-