Class QueryStatsSummary


  • public final class QueryStatsSummary
    extends java.lang.Object
    A class for representing aggregate query stats. This should be used when collecting query stats across multiple requests.

    For a single request, use @link com.fauna.response.QueryStats instead.

    • Method Detail

      • getQueryTimeMs

        public long getQueryTimeMs()
        Gets the aggregate query time in milliseconds.
        Returns:
        A long representing the aggregate query time in milliseconds.
      • getContentionRetries

        public int getContentionRetries()
        Gets the count of retries due to contention.
        Returns:
        An int representing the count of retries due to contention.
      • getStorageBytesRead

        public long getStorageBytesRead()
        Gets the aggregate storage bytes read.
        Returns:
        A long representing the aggregate number of storage bytes read.
      • getStorageBytesWrite

        public long getStorageBytesWrite()
        Gets the aggregate storage bytes written.
        Returns:
        A long representing the aggregate number of storage bytes written.
      • getProcessingTimeMs

        public long getProcessingTimeMs()
        Gets the aggregate event processing time in milliseconds. Applies to Event Feeds and Event Stream requests only.
        Returns:
        A long representing the aggregate processing time in milliseconds.
      • getQueryCount

        public int getQueryCount()
        Gets the count of queries summarized on this instance.
        Returns:
        An int representing the count of queries summarized.
      • getRateLimitedReadQueryCount

        public int getRateLimitedReadQueryCount()
        Gets the count of rate limited queries due to read limits.
        Returns:
        An int representing the count of rate limited queries.
      • getRateLimitedComputeQueryCount

        public int getRateLimitedComputeQueryCount()
        Gets the count of rate limited queries due to compute limits.
        Returns:
        An int representing the count of rate limited queries.
      • getRateLimitedWriteQueryCount

        public int getRateLimitedWriteQueryCount()
        Gets the count of rate limited queries due to write limits.
        Returns:
        An int representing the count of rate limited queries.