All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.twitter.finagle.stats.Snapshot.scala Maven / Gradle / Ivy

There is a newer version: 21.2.0
Show newest version
package com.twitter.finagle.stats

object Snapshot {
  case class Percentile(quantile: Double, value: Long)
}

/**
 * A snapshot of the state of the underlying stat.
 */
trait Snapshot {

  /**
   * The number of times the stat was reported.
   */
  def count: Long

  /**
   * The overall sum of the reported values.
   */
  def sum: Long

  /**
   * The largest reported values
   */
  def max: Long

  /**
   * The smallest reported value.
   */
  def min: Long

  /**
   * The average reported value.
   */
  def average: Double

  /**
   * The values reported for given quantiles.
   */
  def percentiles: IndexedSeq[Snapshot.Percentile]

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy