aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/scala/kamon/metric/instrument/InstrumentSnapshot.scala
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2017-06-06 14:15:15 +0200
committerIvan Topolnjak <ivantopo@gmail.com>2017-06-06 14:15:15 +0200
commitc52f8eaca0d1ccc4c992cba039e35e099b5b478b (patch)
treef9e78e2f929627e7547bef39fdf6cbcd544cb8d8 /kamon-core/src/main/scala/kamon/metric/instrument/InstrumentSnapshot.scala
parent1f5d9876dedb715ae1c31203ea4f15ebf031612c (diff)
downloadKamon-c52f8eaca0d1ccc4c992cba039e35e099b5b478b.tar.gz
Kamon-c52f8eaca0d1ccc4c992cba039e35e099b5b478b.tar.bz2
Kamon-c52f8eaca0d1ccc4c992cba039e35e099b5b478b.zip
make it compile for Scala 2.11 and 2.12
Diffstat (limited to 'kamon-core/src/main/scala/kamon/metric/instrument/InstrumentSnapshot.scala')
-rw-r--r--kamon-core/src/main/scala/kamon/metric/instrument/InstrumentSnapshot.scala57
1 files changed, 0 insertions, 57 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/instrument/InstrumentSnapshot.scala b/kamon-core/src/main/scala/kamon/metric/instrument/InstrumentSnapshot.scala
deleted file mode 100644
index 1364c2d8..00000000
--- a/kamon-core/src/main/scala/kamon/metric/instrument/InstrumentSnapshot.scala
+++ /dev/null
@@ -1,57 +0,0 @@
-package kamon.metric.instrument
-
-import kamon.util.MeasurementUnit
-
-/**
- * Snapshot for instruments that internally track a single value. Meant to be used for counters and gauges.
- *
- */
-case class SingleValueSnapshot(name: String, tags: Map[String, String], measurementUnit: MeasurementUnit, value: Long)
-
-/**
- * Snapshot for instruments that internally the distribution of values in a defined dynamic range. Meant to be used
- * with histograms and min max counters.
- */
-case class DistributionSnapshot(name: String, tags: Map[String, String], measurementUnit: MeasurementUnit,
- dynamicRange: DynamicRange, distribution: Distribution)
-
-
-trait Distribution {
- def buckets: Seq[Bucket]
- def bucketsIterator: Iterator[Bucket]
-
- def min: Long
- def max: Long
- def sum: Long
- def count: Long
- def percentile(p: Double): Percentile
-
- def percentiles: Seq[Percentile]
- def percentilesIterator: Iterator[Percentile]
-}
-
-trait Bucket {
- def value: Long
- def frequency: Long
-}
-
-trait Percentile {
- def quantile: Double
- def value: Long
- def countUnderQuantile: Long
-}
-
-
-trait DistributionSnapshotInstrument {
- private[kamon] def snapshot(): DistributionSnapshot
-}
-
-trait SingleValueSnapshotInstrument {
- private[kamon] def snapshot(): SingleValueSnapshot
-}
-
-trait SnapshotableHistogram extends Histogram with DistributionSnapshotInstrument
-trait SnapshotableMinMaxCounter extends MinMaxCounter with DistributionSnapshotInstrument
-trait SnapshotableCounter extends Counter with SingleValueSnapshotInstrument
-trait SnapshotableGauge extends Gauge with SingleValueSnapshotInstrument
-