trait MetricFactory extends AnyRef
MetricFactory
interface to create metrics for an instrumented entity.
- Alphabetic
- By Inheritance
- MetricFactory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def createCounter(descriptor: Descriptor): Counter
Create a
com.lightbend.cinnamon.metric.Counter
metric.Create a
com.lightbend.cinnamon.metric.Counter
metric.- descriptor
metric descriptor for this Counter
- returns
new Counter for instrumented entity and given descriptor
- abstract def createGaugeDouble(descriptor: Descriptor): GaugeDouble
Create a
com.lightbend.cinnamon.metric.GaugeDouble
metric.Create a
com.lightbend.cinnamon.metric.GaugeDouble
metric.- descriptor
metric descriptor for this GaugeDouble
- returns
new GaugeDouble for instrumented entity and given descriptor
- abstract def createGaugeLong(descriptor: Descriptor): GaugeLong
Create a
com.lightbend.cinnamon.metric.GaugeLong
metric.Create a
com.lightbend.cinnamon.metric.GaugeLong
metric.- descriptor
metric descriptor for this GaugeLong
- returns
new GaugeLong for instrumented entity and given descriptor
- abstract def createProvidingGaugeDouble(descriptor: Descriptor, doubleValueProvider: DoubleValueProvider): ProvidingGaugeDouble
Create a
com.lightbend.cinnamon.metric.ProvidingGaugeDouble
metric.Create a
com.lightbend.cinnamon.metric.ProvidingGaugeDouble
metric.- descriptor
metric descriptor for this ProvidingGaugeDouble
- doubleValueProvider
DoubleValueProvider that will be called to get the current value
- returns
new ProvidingGaugeDouble for instrumented entity and given descriptor and value provider
- abstract def createProvidingGaugeLong(descriptor: Descriptor, longValueProvider: LongValueProvider): ProvidingGaugeLong
Create a
com.lightbend.cinnamon.metric.ProvidingGaugeLong
metric.Create a
com.lightbend.cinnamon.metric.ProvidingGaugeLong
metric.- descriptor
metric descriptor for this ProvidingGaugeLong
- longValueProvider
LongValueProvider that will be called to get the current value
- returns
new ProvidingGaugeLong for instrumented entity and given descriptor and value provider
- abstract def createRate(descriptor: Descriptor): Rate
Create a
com.lightbend.cinnamon.metric.Rate
metric.Create a
com.lightbend.cinnamon.metric.Rate
metric.- descriptor
metric descriptor for this Rate
- returns
new Rate for instrumented entity and given descriptor
- abstract def createRecorder(descriptor: Descriptor): Recorder
Create a
com.lightbend.cinnamon.metric.Recorder
metric.Create a
com.lightbend.cinnamon.metric.Recorder
metric.- descriptor
metric descriptor for this Recorder
- returns
new Recorder for instrumented entity and given descriptor
Concrete 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 clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
This is the public API for Cinnamon.
The com.lightbend.cinnamon package contains the public Cinnamon API.
See the complete list of Cinnamon packages on the right.
Cinnamon Events and Metrics
For the custom events API see
CinnamonEvents
.For the custom metrics API see
CinnamonMetrics
.Stopwatch
For the Stopwatch API see
Stopwatch
.Coda Hale Metrics
For creating custom Coda Hale Metrics reporters see the com.lightbend.cinnamon.chmetrics.reporter package.