Schedule

sealed interface Schedule(source)

How long a probe-based monitor (Desktop, Web with the probe on) waits before the next check.

A hint from the app's HTTP layer can always cut the wait short.

Inheritors

Types

Link copied to clipboard
class Adaptive(val online: Duration = 30.seconds, val offline: Duration = 3.seconds) : Schedule

Default. One interval while online, a shorter one while offline.

Link copied to clipboard
class Backoff(val online: Duration = 30.seconds, val initial: Duration = 1.seconds, val factor: Double = 2.0, val max: Duration = 30.seconds, val jitter: Double = 0.1) : Schedule

online while online; while offline, starts at initial and multiplies by factor after each failed check, capped at max. jitter (0.0..1.0) randomises each offline delay by ± that fraction.

Link copied to clipboard

Fully custom: next returns the delay before the next check.

Link copied to clipboard
class Fixed(val interval: Duration) : Schedule

The same interval whatever the state.

Link copied to clipboard
fun interface NextCheck