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.
public sealed class QueryMetrics
- Inheritance
-
QueryMetrics
- Inherited Members
- Extension Methods
Properties
IndexHitRatio
Gets the index hit ratio by query in the Azure Cosmos database service.
public double IndexHitRatio { get; }
Property Value
OutputDocumentCount
Gets the number of documents returned by query in the Azure Cosmos DB service.
public long OutputDocumentCount { get; }
Property Value
QueryEngineTimes
Gets the QueryEngineTimes instance in the Azure Cosmos database service.
public QueryEngineTimes QueryEngineTimes { get; }
Property Value
QueryPreparationTimes
Gets the query QueryPreparationTimes in the Azure Cosmos database service.
public QueryPreparationTimes QueryPreparationTimes { get; }
Property Value
Retries
Gets number of reties in the Azure Cosmos database service.
public long Retries { get; }
Property Value
RetrievedDocumentCount
Gets the number of documents retrieved during query in the Azure Cosmos database service.
public long RetrievedDocumentCount { get; }
Property Value
RetrievedDocumentSize
Gets the size of documents retrieved in bytes during query in the Azure Cosmos DB service.
public long RetrievedDocumentSize { get; }
Property Value
TotalTime
Gets the total query time in the Azure Cosmos database service.
public TimeSpan TotalTime { get; }
Property Value
Methods
ToString()
Gets the stringified QueryMetrics instance in the Azure Cosmos database service.
public override string ToString()
Returns
- string
The stringified QueryMetrics instance in the Azure Cosmos database service.
Operators
operator +(QueryMetrics, QueryMetrics)
Add two specified QueryMetrics instances
public static QueryMetrics operator +(QueryMetrics queryMetrics1, QueryMetrics queryMetrics2)
Parameters
queryMetrics1
QueryMetricsThe first QueryMetrics instance
queryMetrics2
QueryMetricsThe second QueryMetrics instance
Returns
- QueryMetrics
A new QueryMetrics instance that is the sum of two QueryMetrics instances