BudgetSnapshot

constructor(version: Int, takenAtEpochMillis: Long, windows: List<WindowSnapshot>, pausedUntilEpochMillis: Long)(source)

Parameters

version

the layout; CURRENT_VERSION today. The budget ignores (and counts as dropped) the windows of a version it does not know. At least 1.

takenAtEpochMillis

the wall clock when the snapshot was taken.

windows

the counts, one WindowSnapshot per window start; several starts of one window are allowed.

pausedUntilEpochMillis

the epoch millisecond the pause ends, or 0 for none. Not negative.


constructor(takenAtEpochMillis: Long, windows: List<WindowSnapshot>, pausedUntilEpochMillis: Long)(source)

The snapshot of CURRENT_VERSION.

Parameters

takenAtEpochMillis

the wall clock when the snapshot was taken.

windows

the counts, one WindowSnapshot per window start.

pausedUntilEpochMillis

the epoch millisecond the pause ends, or 0 for none. Not negative.

Throws