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

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

The newest version!
package com.twitter.finagle.stats

/**
 * Interface used via the LoadService mechanism to obtain an
 * efficient mechanism to sample stats.
 */
private[twitter] trait StatsRegistry {
  def apply(): Map[String, StatEntry]
}

private[twitter] trait StatEntry {
  /**
   * The delta since the entry was last sampled.
   * Note, this field is identical to `value` for
   * instantaneous entries (ex. gauges).
   */
  val delta: Double

  /** The instantaneous value of the entry. */
  val value: Double
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy