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.
- Alphabetic
- By Inheritance
- MetricBuilder
- Metadata
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canEqual(other: Any): Boolean
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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()
- val description: String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- MetricBuilder → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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()
-
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.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- MetricBuilder → AnyRef → Any
-
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()
- val isCounterishGauge: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val kernel: Option[Int]
- val keyIndicator: Boolean
- val name: Seq[String]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val percentiles: IndexedSeq[Double]
- val processPath: Option[String]
- val relativeName: Seq[String]
- val role: SourceRole
- val sourceClass: Option[String]
- val statsReceiver: StatsReceiver
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- MetricBuilder → AnyRef → Any
- val units: MetricUnit
- val verbosity: Verbosity
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withCounterishGauge: MetricBuilder
- def withDescription(desc: String): MetricBuilder
- def withIdentifier(processPath: Option[String]): MetricBuilder
- def withKeyIndicator(isKeyIndicator: Boolean = true): MetricBuilder
-
def
withName(name: String*): MetricBuilder
- Annotations
- @varargs()
- def withNoCounterishGauge: MetricBuilder
-
def
withPercentiles(percentiles: Double*): MetricBuilder
- Annotations
- @varargs()
-
def
withRelativeName(relativeName: String*): MetricBuilder
- Annotations
- @varargs()
- def withRole(role: SourceRole): MetricBuilder
- def withSourceClass(sourceClass: Option[String]): MetricBuilder
- def withUnits(units: MetricUnit): MetricBuilder
- def withVerbosity(verbosity: Verbosity): MetricBuilder