Eventum Logo

Eventum

Input

linspace

Input plugin that distributes timestamps evenly across a time range.

Distributes a fixed number of timestamps evenly across a time range — similar to NumPy's linspace. Useful for generating datasets where events need to be uniformly spaced.

Parameters

ParameterTypeDefaultConstraintsDescription
startVersatileDatetimeRequired. Cannot be null.Start of the range.
endVersatileDatetimeRequired. Cannot be null.End of the range.
countintegerRequired. >= 1Total number of timestamps to distribute.
endpointbooleantrueWhether to include end as the last timestamp.
tagslist of strings[]Tags attached to every timestamp. Accessible in templates via tags.

start must be earlier than or equal to end. Neither can be null or never.

Examples

One event per minute across a full day:

input:
  - linspace:
      start: "2024-01-01"
      end: "2024-01-02"
      count: 1440
      endpoint: false

100 events in the next hour:

input:
  - linspace:
      start: now
      end: +1h
      count: 100

On this page