salutem.core.time
Provides time utilities for use in check definitions and the maintenance pipeline.
duration
(duration amount unit)Constructs an object representing a duration of time.
This object is used to specify, for example, the time to re-evaluation and timeout on a check or the interval passed to a maintenance pipeline.
Takes an amount and a unit:
amountis the length of the duration, measured in terms of the unitunitis one of:nanos,:micros,:millis,:seconds,:minutes,:hours,:half-days,:days,:weeks,:months,:years,:decades,:centuries,:millennia,:erasor:forever
Note: internally, this constructs a java.time.Duration and is merely a convenience function. As such, a java.time.Duration can be passed directly wherever this function would be used.