Package com.azure.monitor.query.models
Class LogsBatchQueryResultCollection
java.lang.Object
com.azure.monitor.query.models.LogsBatchQueryResultCollection
The collection wrapper to hold all results of a batch of logs queries.
-
Constructor Summary
ConstructorDescriptionLogsBatchQueryResultCollection
(List<LogsBatchQueryResult> batchResults) Creates an instance ofLogsBatchQueryResultCollection
to hold all results of a batch of logs queries. -
Method Summary
Modifier and TypeMethodDescriptionReturns the results of a batch of logs queries.Returns the batch query result of a specific query identified by the queryId.<T> List<T>
Returns the batch query result of a specific query identified by the queryId.
-
Constructor Details
-
LogsBatchQueryResultCollection
Creates an instance ofLogsBatchQueryResultCollection
to hold all results of a batch of logs queries.- Parameters:
batchResults
- The results of a batch of logs queries.
-
-
Method Details
-
getBatchResults
Returns the results of a batch of logs queries.- Returns:
- The results of a batch of logs queries.
-
getResult
Returns the batch query result of a specific query identified by the queryId.- Type Parameters:
T
- The type parameter.- Parameters:
queryId
- The query id of a query in the batch request.type
- The model type to which the result will be deserialized to.- Returns:
- A list of objects of type T that contain the query result of the given query id.
- Throws:
IllegalArgumentException
- if the result does not contain the query id.
-
getResult
Returns the batch query result of a specific query identified by the queryId.- Parameters:
queryId
- The query id of a query in the batch request.- Returns:
- the result of the given query id.
- Throws:
IllegalArgumentException
- if the result does not contain the query id.
-