LogsBatchQueryResultCollection Class

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

public final class LogsBatchQueryResultCollection

The collection wrapper to hold all results of a batch of logs queries.

Constructor Summary

Constructor Description
LogsBatchQueryResultCollection(List<LogsBatchQueryResult> batchResults)

Creates an instance of LogsBatchQueryResultCollection to hold all results of a batch of logs queries.

Method Summary

Modifier and Type Method and Description
List<T> getResult(String queryId, Class<T> type)

Returns the batch query result of a specific query identified by the queryId.

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.

Methods inherited from java.lang.Object

Constructor Details

LogsBatchQueryResultCollection

public LogsBatchQueryResultCollection(List batchResults)

Creates an instance of LogsBatchQueryResultCollection to hold all results of a batch of logs queries.

Parameters:

batchResults - The results of a batch of logs queries.

Method Details

getResult

public List getResult(String queryId, Class type)

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.
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.

getBatchResults

public List getBatchResults()

Returns the results of a batch of logs queries.

Returns:

The results of a batch of logs queries.

getResult

public LogsBatchQueryResult getResult(String queryId)

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.

Applies to