Class

com.twitter.finagle.stats

MetricBuilder

Related Doc: package stats

Permalink

class MetricBuilder extends AnyRef

A builder class used to configure settings and metadata for metrics prior to instantiating them. Calling any of the three build methods (counter, gauge, or histogram) will cause the metric to be instantiated in the underlying StatsReceiver.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MetricBuilder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MetricBuilder(keyIndicator: Boolean = false, description: String = "No description provided", units: MetricUnit = Unspecified, role: SourceRole = NoRoleSpecified, verbosity: Verbosity = Verbosity.Default, sourceClass: Option[String] = None, name: Seq[String] = Seq(), processPath: Option[String] = None, percentiles: IndexedSeq[Double] = IndexedSeq(), statsReceiver: StatsReceiver)

    Permalink

    keyIndicator

    indicates whether this metric is crucial to this service (ie, an SLO metric)

    description

    human-readable description of a metric's significance

    units

    the unit associated with the metrics value (milliseconds, megabytes, requests, etc)

    role

    whether the service is playing the part of client or server regarding this metric

    verbosity

    see StatsReceiver for details

    sourceClass

    the name of the class which generated this metric (ie, com.twitter.finagle.StatsFilter)

    name

    the relative metric name which will be appended to the scope of the StatsReceiver prior to long term storage

    processPath

    a universal coordinate for the resource

    percentiles

    used to indicate buckets for histograms, to be set by the StatsReceiver

    statsReceiver

    used for the actual metric creation, set by the StatsReceiver when creating a MetricBuilder

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def canEqual(other: Any): Boolean

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def counter(name: String*): Counter

    Permalink

    Produce a counter as described by the builder inside the underlying StatsReceiver.

    Produce a counter as described by the builder inside the underlying StatsReceiver.

    returns

    the counter created.

  8. val description: String

    Permalink

    human-readable description of a metric's significance

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    MetricBuilder → AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def gauge(name: String*)(f: ⇒ Float): Gauge

    Permalink

    Produce a gauge as described by the builder inside the underlying StatsReceiver.

    Produce a gauge as described by the builder inside the underlying StatsReceiver.

    returns

    the gauge created.

  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    MetricBuilder → AnyRef → Any
  15. def histogram(name: String*): Stat

    Permalink

    Produce a histogram as described by the builder inside the underlying StatsReceiver.

    Produce a histogram as described by the builder inside the underlying StatsReceiver.

    returns

    the histogram created.

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val keyIndicator: Boolean

    Permalink

    indicates whether this metric is crucial to this service (ie, an SLO metric)

  18. val name: Seq[String]

    Permalink

    the relative metric name which will be appended to the scope of the StatsReceiver prior to long term storage

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. val percentiles: IndexedSeq[Double]

    Permalink

    used to indicate buckets for histograms, to be set by the StatsReceiver

  23. val processPath: Option[String]

    Permalink

    a universal coordinate for the resource

  24. val role: SourceRole

    Permalink

    whether the service is playing the part of client or server regarding this metric

  25. val sourceClass: Option[String]

    Permalink

    the name of the class which generated this metric (ie, com.twitter.finagle.StatsFilter)

  26. val statsReceiver: StatsReceiver

    Permalink

    used for the actual metric creation, set by the StatsReceiver when creating a MetricBuilder

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    MetricBuilder → AnyRef → Any
  29. val units: MetricUnit

    Permalink

    the unit associated with the metrics value (milliseconds, megabytes, requests, etc)

  30. val verbosity: Verbosity

    Permalink

    see StatsReceiver for details

  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def withDescription(desc: String): MetricBuilder

    Permalink
  35. def withIdentifier(processPath: Option[String]): MetricBuilder

    Permalink
  36. def withKeyIndicator(isKeyIndicator: Boolean = true): MetricBuilder

    Permalink
  37. def withName(name: Seq[String]): MetricBuilder

    Permalink
  38. def withPercentiles(percentiles: IndexedSeq[Double]): MetricBuilder

    Permalink
  39. def withRole(role: SourceRole): MetricBuilder

    Permalink
  40. def withSourceClass(sourceClass: Option[String]): MetricBuilder

    Permalink
  41. def withUnits(units: MetricUnit): MetricBuilder

    Permalink
  42. def withVerbosity(verbosity: Verbosity): MetricBuilder

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped