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 {

  /** Whether or not the counters are latched. */
  val latched: Boolean

  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

  /** The type of the metric backing this StatEntry ("counter", "gauge", or "histogram"). */
  val metricType: String
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy