1using System.Text.Json.Serialization;
14 [JsonPropertyName(Stats_ComputeOpsFieldName)]
20 [JsonPropertyName(Stats_ReadOps)]
27 [JsonPropertyName(Stats_WriteOps)]
33 [JsonPropertyName(Stats_QueryTimeMs)]
39 [JsonPropertyName(Stats_ContentionRetries)]
45 [JsonPropertyName(Stats_StorageBytesRead)]
51 [JsonPropertyName(Stats_StorageBytesWrite)]
57 [JsonPropertyName(Stats_RateLimitsHit)]
66 return $
"compute: {ComputeOps}, read: {ReadOps}, write: {WriteOps}, " +
67 $
"queryTime: {QueryTimeMs}, retries: {ContentionRetries}, " +
68 $
"storageRead: {StorageBytesRead}, storageWrite: {StorageBytesWrite}, " +
69 $
"limits: [{string.Join(',', RateLimitsHit)}]";
Contains statistics related to the execution of a query in the Fauna database.
int StorageBytesRead
The amount of data read from storage, in bytes.
List< string > RateLimitsHit
The types of operations that were limited or approaching rate limits.
int QueryTimeMs
The query processing time in milliseconds.
int StorageBytesWrite
The amount of data written to storage, in bytes.
int ComputeOps
The number of compute operations consumed by the query.
int WriteOps
The number of write operations consumed by the query.
int ContentionRetries
The write contention retry count.
int ReadOps
The number of read operations consumed by the query.
override string ToString()
Returns a string representation of the query statistics.