com.netflix.atlas.core.util.RollingInterval
See theRollingInterval companion object
Interval that moves over time in increments of a given unit. When in the middle of a unit it will round to the next even boundary. For example, if the unit is HOURS and it is 10:37, then it will round too 11:00.
The offset and duration must be an even multiple of the unit.
Value parameters
- duration
-
The length of the interval. The start time is
now - offset - duration
. - offset
-
Offset subtracted from the current time,
now - offset
is used as the end time for this interval. - unit
-
The unit to use when moving along. This is typically HOURS or DAYS.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article