Partilhar via


QueryMetrics Classe

  • java.lang.Object
    • com.microsoft.azure.cosmosdb.QueryMetrics

public class QueryMetrics

Consultar métricas no serviço de banco de dados do Azure Cosmos. Essa métrica representa uma média móvel para um conjunto de consultas cujas métricas foram agregadas.

Resumo do campo

Modificador e tipo Campo e descrição
QueryMetrics ZERO

Resumo do Construtor

Construtor Description
QueryMetrics(List<String> activities, long retrievedDocumentCount, long retrievedDocumentSize, long outputDocumentCount, long outputDocumentSize, long indexHitCount, Duration totalQueryExecutionTime, QueryPreparationTimes queryPreparationTimes, Duration indexLookupTime, Duration documentLoadTime, Duration vmExecutionTime, RuntimeExecutionTimes runtimeExecutionTimes, Duration documentWriteTime, ClientSideMetrics clientSideMetrics)

Resumo do método

Modificador e tipo Método e descrição
QueryMetrics add(QueryMetrics... queryMetricsArgs)
Duration getDocumentLoadTime()
Duration getDocumentWriteTime()
long getIndexHitDocumentCount()
double getIndexHitRatio()

Obtém a taxa de ocorrência de índice por consulta no serviço de banco de dados do Azure Cosmos.

Duration getIndexLookupTime()
long getOutputDocumentCount()
long getOutputDocumentSize()
QueryPreparationTimes getQueryPreparationTimes()
long getRetries()
long getRetrievedDocumentCount()
long getRetrievedDocumentSize()
RuntimeExecutionTimes getRuntimeExecutionTimes()
Duration getTotalQueryExecutionTime()
Duration getVMExecutionTime()
String toString()

Detalhes do campo

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)

Detalhes do construtor

QueryMetrics

public QueryMetrics(List activities, long retrievedDocumentCount, long retrievedDocumentSize, long outputDocumentCount, long outputDocumentSize, long indexHitCount, Duration totalQueryExecutionTime, QueryPreparationTimes queryPreparationTimes, Duration indexLookupTime, Duration documentLoadTime, Duration vmExecutionTime, RuntimeExecutionTimes runtimeExecutionTimes, Duration documentWriteTime, ClientSideMetrics clientSideMetrics)

Parâmetros:

activities
retrievedDocumentCount
retrievedDocumentSize
outputDocumentCount
outputDocumentSize
indexHitCount
totalQueryExecutionTime
queryPreparationTimes
indexLookupTime
documentLoadTime
vmExecutionTime
runtimeExecutionTimes
documentWriteTime
clientSideMetrics

Detalhes do método

add

public QueryMetrics add(QueryMetrics... queryMetricsArgs)

Parâmetros:

queryMetricsArgs

getDocumentLoadTime

public Duration getDocumentLoadTime()

Retornos:

o documentLoadTime

getDocumentWriteTime

public Duration getDocumentWriteTime()

Retornos:

o documentWriteTime

getIndexHitDocumentCount

public long getIndexHitDocumentCount()

Retornos:

o índiceHitDocumentCount

getIndexHitRatio

public double getIndexHitRatio()

Obtém a taxa de ocorrência de índice por consulta no serviço de banco de dados do Azure Cosmos.

Retornos:

o IndexHitRatio

getIndexLookupTime

public Duration getIndexLookupTime()

Retornos:

o indexLookupTime

getOutputDocumentCount

public long getOutputDocumentCount()

Retornos:

outputDocumentCount

getOutputDocumentSize

public long getOutputDocumentSize()

Retornos:

outputDocumentSize

getQueryPreparationTimes

public QueryPreparationTimes getQueryPreparationTimes()

Retornos:

queryPreparationTimes

getRetries

public long getRetries()

Retornos:

número de reties no serviço de banco de dados do Azure Cosmos.

getRetrievedDocumentCount

public long getRetrievedDocumentCount()

Retornos:

o retrievedDocumentCount

getRetrievedDocumentSize

public long getRetrievedDocumentSize()

Retornos:

o retrievedDocumentSize

getRuntimeExecutionTimes

public RuntimeExecutionTimes getRuntimeExecutionTimes()

Retornos:

o runtimeExecutionTimes

getTotalQueryExecutionTime

public Duration getTotalQueryExecutionTime()

Retornos:

o totalQueryExecutionTime

getVMExecutionTime

public Duration getVMExecutionTime()

Retornos:

o vmExecutionTime

toString

public String toString()

Aplica-se a