nl.grons.metrics.scala

MetricBuilder

class MetricBuilder extends DeprecatedMetricBuilder

Builds and registering metrics.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MetricBuilder
  2. DeprecatedMetricBuilder
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MetricBuilder(baseName: MetricName, registry: MetricRegistry)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val baseName: MetricName

  8. def cachedGauge[A](name: String, timeout: FiniteDuration)(f: ⇒ A): Gauge[A]

    Registers a new gauge metric that caches its value for a given duration.

    Registers a new gauge metric that caches its value for a given duration.

    name

    the name of the gauge

    timeout

    the timeout

  9. def clone(): AnyRef

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

    Creates a new counter metric.

    Creates a new counter metric.

    name

    the name of the counter

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

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

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

    Registers a new gauge metric.

    Registers a new gauge metric.

    name

    the name of the gauge

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

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

    Definition Classes
    AnyRef → Any
  17. def histogram(name: String): Histogram

    Creates a new histogram metric.

    Creates a new histogram metric.

    name

    the name of the histogram

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def meter(name: String): Meter

    Creates a new meter metric.

    Creates a new meter metric.

    name

    the name of the meter

  20. def metricNameFor(name: String): String

    Attributes
    protected
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. val registry: MetricRegistry

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

    Definition Classes
    AnyRef
  26. def timer(name: String): Timer

    Creates a new timer metric.

    Creates a new timer metric.

    name

    the name of the timer

  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. def unregisterGauges(): Unit

    Unregisters all gauges that were created through this builder.

  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def cachedGauge[A](name: String, timeout: FiniteDuration, scope: String = null)(f: ⇒ A): Gauge[A]

    Registers a new gauge metric that caches its value for a given duration.

    Registers a new gauge metric that caches its value for a given duration.

    name

    the name of the gauge

    timeout

    the timeout

    scope

    (deprecated) the scope of the gauge or null for no scope

    Definition Classes
    DeprecatedMetricBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 3.5.10) Please use cachedGauge(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.

  2. def counter(name: String, scope: String = null): Counter

    Creates a new counter metric.

    Creates a new counter metric.

    name

    the name of the counter

    scope

    (deprecated) the scope of the counter or null for no scope

    Definition Classes
    DeprecatedMetricBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 3.5.10) Please use counter(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.

  3. def gauge[A](name: String, scope: String = null)(f: ⇒ A): Gauge[A]

    Registers a new gauge metric.

    Registers a new gauge metric.

    name

    the name of the gauge

    scope

    (deprecated) the scope of the gauge or null for no scope

    Definition Classes
    DeprecatedMetricBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 3.5.10) Please use gauge(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.

  4. def histogram(name: String, scope: String = null): Histogram

    Creates a new histogram metric.

    Creates a new histogram metric.

    name

    the name of the histogram

    scope

    (deprecated) the scope of the histogram or null for no scope

    Definition Classes
    DeprecatedMetricBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 3.5.10) Please use histogram(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.

  5. def meter(name: String, scope: String = null): Meter

    Creates a new meter metric.

    Creates a new meter metric.

    name

    the name of the meter

    scope

    (deprecated) the scope of the meter or null for no scope

    Definition Classes
    DeprecatedMetricBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 3.5.10) Please use meter(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.

  6. def metricNameFor(name: String, scope: String = null): String

    Attributes
    protected
    Definition Classes
    DeprecatedMetricBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 3.5.10) Do not use metricNameFor, it is an internal API. This method will be removed in v5.0.0.

  7. def timer(name: String, scope: String = null): Timer

    Creates a new timer metric.

    Creates a new timer metric.

    name

    the name of the timer

    scope

    (deprecated) the scope of the timer or null for no scope

    Definition Classes
    DeprecatedMetricBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 3.5.10) Please use timer(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.

Inherited from DeprecatedMetricBuilder

Inherited from AnyRef

Inherited from Any

Ungrouped