QueryMetrics Class
- java.
lang. Object - com.
microsoft. azure. cosmosdb. QueryMetrics
- com.
public class QueryMetrics
Query metrics in the Azure Cosmos database service. This metric represents a moving average for a set of queries whose metrics have been aggregated together.
Field Summary
Modifier and Type | Field and Description |
---|---|
Query |
ZERO |
Constructor Summary
Method Summary
Modifier and Type | Method and Description |
---|---|
Query |
add(QueryMetrics... queryMetricsArgs) |
Duration | getDocumentLoadTime() |
Duration | getDocumentWriteTime() |
long | getIndexHitDocumentCount() |
double |
getIndexHitRatio()
Gets the index hit ratio by query in the Azure Cosmos database service. |
Duration | getIndexLookupTime() |
long | getOutputDocumentCount() |
long | getOutputDocumentSize() |
Query |
getQueryPreparationTimes() |
long | getRetries() |
long | getRetrievedDocumentCount() |
long | getRetrievedDocumentSize() |
Runtime |
getRuntimeExecutionTimes() |
Duration | getTotalQueryExecutionTime() |
Duration | getVMExecutionTime() |
String | toString() |
Field Details
ZERO
public static QueryMetrics ZERO= new QueryMetrics( new ArrayList<>(), 0, 0, 0, 0, 0, Duration.ZERO, QueryPreparationTimes.ZERO, Duration.ZERO, Duration.ZERO, Duration.ZERO, RuntimeExecutionTimes.ZERO, Duration.ZERO, ClientSideMetrics.ZERO)
Constructor Details
QueryMetrics
public QueryMetrics(List
Parameters:
Method Details
add
public QueryMetrics add(QueryMetrics... queryMetricsArgs)
Parameters:
getDocumentLoadTime
public Duration getDocumentLoadTime()
Returns:
getDocumentWriteTime
public Duration getDocumentWriteTime()
Returns:
getIndexHitDocumentCount
public long getIndexHitDocumentCount()
Returns:
getIndexHitRatio
public double getIndexHitRatio()
Gets the index hit ratio by query in the Azure Cosmos database service.
Returns:
getIndexLookupTime
public Duration getIndexLookupTime()
Returns:
getOutputDocumentCount
public long getOutputDocumentCount()
Returns:
getOutputDocumentSize
public long getOutputDocumentSize()
Returns:
getQueryPreparationTimes
public QueryPreparationTimes getQueryPreparationTimes()
Returns:
getRetries
public long getRetries()
Returns:
getRetrievedDocumentCount
public long getRetrievedDocumentCount()
Returns:
getRetrievedDocumentSize
public long getRetrievedDocumentSize()
Returns:
getRuntimeExecutionTimes
public RuntimeExecutionTimes getRuntimeExecutionTimes()
Returns:
getTotalQueryExecutionTime
public Duration getTotalQueryExecutionTime()
Returns:
getVMExecutionTime
public Duration getVMExecutionTime()
Returns:
toString
public String toString()
Applies to
Azure SDK for Java