class MetricBuilder extends Metadata

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. Metadata
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def canEqual(other: Any): Boolean
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def counter(name: String*): Counter

    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.

    Annotations
    @varargs()
  8. val description: String
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(other: Any): Boolean
    Definition Classes
    MetricBuilder → AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def gauge(f: Supplier[Float], name: String*): Gauge

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

    Produce a gauge as described by the builder inside the underlying StatsReceiver. This API is for Java compatibility

    returns

    the gauge created.

    Annotations
    @varargs()
  13. final def gauge(name: String*)(f: => Float): Gauge

    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.

  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    MetricBuilder → AnyRef → Any
  16. final def histogram(name: String*): Stat

    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.

    Annotations
    @varargs()
  17. val isCounterishGauge: Boolean
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. val kernel: Option[Int]
  20. val keyIndicator: Boolean
  21. val metricType: MetricType
  22. val name: Seq[String]
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. val percentiles: IndexedSeq[Double]
  27. val processPath: Option[String]
  28. val relativeName: Seq[String]
  29. val role: SourceRole
  30. val sourceClass: Option[String]
  31. val statsReceiver: StatsReceiver
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toString(): String
    Definition Classes
    MetricBuilder → AnyRef → Any
  34. val units: MetricUnit
  35. val verbosity: Verbosity
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. def withCounterishGauge: MetricBuilder
  40. def withDescription(desc: String): MetricBuilder
  41. def withIdentifier(processPath: Option[String]): MetricBuilder
  42. def withKeyIndicator(isKeyIndicator: Boolean = true): MetricBuilder
  43. def withName(name: String*): MetricBuilder
    Annotations
    @varargs()
  44. def withNoCounterishGauge: MetricBuilder
  45. def withPercentiles(percentiles: Double*): MetricBuilder
    Annotations
    @varargs()
  46. def withRelativeName(relativeName: String*): MetricBuilder
    Annotations
    @varargs()
  47. def withRole(role: SourceRole): MetricBuilder
  48. def withSourceClass(sourceClass: Option[String]): MetricBuilder
  49. def withUnits(units: MetricUnit): MetricBuilder
  50. def withVerbosity(verbosity: Verbosity): MetricBuilder

Inherited from Metadata

Inherited from AnyRef

Inherited from Any

Ungrouped