diff options
Diffstat (limited to 'kamon-core/src/main/scala/kamon/metric')
-rw-r--r-- | kamon-core/src/main/scala/kamon/metric/PeriodSnapshot.scala (renamed from kamon-core/src/main/scala/kamon/metric/TickSnapshot.scala) | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/TickSnapshot.scala b/kamon-core/src/main/scala/kamon/metric/PeriodSnapshot.scala index 45666de1..50a5f778 100644 --- a/kamon-core/src/main/scala/kamon/metric/TickSnapshot.scala +++ b/kamon-core/src/main/scala/kamon/metric/PeriodSnapshot.scala @@ -16,15 +16,17 @@ package kamon package metric +import java.time.Instant + /** + * Contains immutable snapshots of all metrics recorded since from and until to. * - * @param interval + * @param from + * @param to * @param metrics */ -case class TickSnapshot(interval: Interval, metrics: MetricsSnapshot) - -case class Interval(from: Long, to: Long) +case class PeriodSnapshot(from: Instant, to: Instant, metrics: MetricsSnapshot) case class MetricsSnapshot( histograms: Seq[MetricDistribution], |