public final class LogsBatchQueryResultCollection extends Object
Constructor and Description |
---|
LogsBatchQueryResultCollection(List<LogsBatchQueryResult> batchResults)
Creates an instance of
LogsBatchQueryResultCollection to hold all results of a batch of logs queries. |
Modifier and Type | Method and Description |
---|---|
List<LogsBatchQueryResult> |
getBatchResults()
Returns the results of a batch of logs queries.
|
LogsBatchQueryResult |
getResult(String queryId)
Returns the batch query result of a specific query identified by the queryId.
|
<T> List<T> |
getResult(String queryId,
Class<T> type)
Returns the batch query result of a specific query identified by the queryId.
|
public LogsBatchQueryResultCollection(List<LogsBatchQueryResult> batchResults)
LogsBatchQueryResultCollection
to hold all results of a batch of logs queries.batchResults
- The results of a batch of logs queries.public List<LogsBatchQueryResult> getBatchResults()
public <T> List<T> getResult(String queryId, Class<T> type)
T
- The type parameter.queryId
- The query id of a query in the batch request.type
- The model type to which the result will be deserialized to.IllegalArgumentException
- if the result does not contain the query id.public LogsBatchQueryResult getResult(String queryId)
queryId
- The query id of a query in the batch request.IllegalArgumentException
- if the result does not contain the query id.Copyright © 2021 Microsoft Corporation. All rights reserved.