case class MetricDefinition(metricType: MetricType, name: String, unitOfMeasure: UnitOfMeasurement, range: Option[DynamicRange] = None, refreshInterval: Option[FiniteDuration] = None, valueCollector: Option[CurrentValueCollector] = None) extends Product with Serializable
This call represents one kamon metric which can be a counter, gauge, histogram or min-max counter. It allows a metric to be represented in a config file.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MetricDefinition
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
MetricDefinition(metricConfig: Map[String, Any], name: Option[String], valueCollector: Option[CurrentValueCollector])
constructor that works from the values extracted from a config file
constructor that works from the values extracted from a config file
- metricConfig
the metric's representation properties extracted from a config object
- name
the name of this metric
- valueCollector
if this metric is a gauge, then this class is used to get values from the instrumentation class (ie mbean)
- new MetricDefinition(metricType: MetricType, name: String, unitOfMeasure: UnitOfMeasurement, range: Option[DynamicRange] = None, refreshInterval: Option[FiniteDuration] = None, valueCollector: Option[CurrentValueCollector] = None)
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val metricType: MetricType
- val name: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val range: Option[DynamicRange]
- val refreshInterval: Option[FiniteDuration]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val unitOfMeasure: UnitOfMeasurement
- val valueCollector: Option[CurrentValueCollector]
-
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( ... )