diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2015-04-05 17:02:18 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2015-04-05 19:59:04 +0200 |
commit | 0746f0002b2e1d563d837f954b367ae063546ca1 (patch) | |
tree | ed7f0a74ed89dae008f79e479c2d788c92f942f9 /kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala | |
parent | 5456e7ca8f215b2a3a5bdbd3177a6ae61f268eef (diff) | |
download | Kamon-0746f0002b2e1d563d837f954b367ae063546ca1.tar.gz Kamon-0746f0002b2e1d563d837f954b367ae063546ca1.tar.bz2 Kamon-0746f0002b2e1d563d837f954b367ae063546ca1.zip |
= core: minor cleanup of metric keys and units of measurements.
Diffstat (limited to 'kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala')
-rw-r--r-- | kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala b/kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala index 59b4b443..089dbeec 100644 --- a/kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala +++ b/kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala @@ -33,14 +33,6 @@ trait InstrumentSnapshot { def merge(that: InstrumentSnapshot, context: CollectionContext): InstrumentSnapshot } -class InstrumentType private[kamon] (val id: Int) extends AnyVal -object InstrumentTypes { - val Histogram = new InstrumentType(1) - val MinMaxCounter = new InstrumentType(2) - val Gauge = new InstrumentType(3) - val Counter = new InstrumentType(4) -} - trait CollectionContext { def buffer: LongBuffer } @@ -51,3 +43,11 @@ object CollectionContext { } } +sealed trait InstrumentType + +object InstrumentTypes { + case object Histogram extends InstrumentType + case object MinMaxCounter extends InstrumentType + case object Gauge extends InstrumentType + case object Counter extends InstrumentType +} |