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
ConstructorsConstructorDescriptionLogsQueryResult(List<LogsTable> logsTables, com.azure.core.util.BinaryData statistics, com.azure.core.util.BinaryData visualization, com.azure.core.models.ResponseError error) Creates an instanceLogsQueryResultwith a list ofLogsTable. -
Method Summary
Modifier and TypeMethodDescriptionThe list ofLogsTablereturned as query result.com.azure.core.models.ResponseErrorgetError()Returns the error details if there was an error executing the query.Returns the status of the query result.com.azure.core.util.BinaryDataReturns the query statistics.getTable()The primaryLogsTablereturned as query result.com.azure.core.util.BinaryDataReturns the visualization information for the logs query.
-
Constructor Details
-
LogsQueryResult
public LogsQueryResult(List<LogsTable> logsTables, com.azure.core.util.BinaryData statistics, com.azure.core.util.BinaryData visualization, com.azure.core.models.ResponseError error) Creates an instanceLogsQueryResultwith a list ofLogsTable.- Parameters:
logsTables- The list ofLogsTablereturned 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 ofLogsTablereturned as query result.- Returns:
- The list of
LogsTablereturned as query result.
-
getTable
The primaryLogsTablereturned as query result.- Returns:
- The primary
LogsTablereturned as query result. - Throws:
IllegalStateException- If this method is called when the query result contains more than one table.
-
getStatistics
public com.azure.core.util.BinaryData getStatistics()Returns the query statistics.- Returns:
- the query statistics.
-
getError
public com.azure.core.models.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 com.azure.core.util.BinaryData 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.
-