Eventum Logo

Eventum

Input

timer

Input plugin that generates timestamps at a fixed interval.

Generates timestamps at a fixed interval. Simpler than cron when you just need a steady tick rate.

Parameters

ParameterTypeDefaultConstraintsDescription
secondsfloatRequired. >= 0.1Interval between ticks in seconds.
countintegerRequired. >= 1Number of timestamps per tick.
startVersatileDatetimenullWhen to start. Defaults to current time if omitted.
repeatinteger or nullnull>= 1 or nullNumber of cycles. null means repeat indefinitely.
tagslist of strings[]Tags attached to every timestamp. Accessible in templates via tags.

Examples

10 events every half second, forever:

input:
  - timer:
      seconds: 0.5
      count: 10

One event per second, 60 times total:

input:
  - timer:
      seconds: 1
      count: 1
      repeat: 60

Delayed start — begin 5 minutes from now:

input:
  - timer:
      seconds: 2
      count: 1
      start: +5m

On this page