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
| Parameter | Type | Default | Constraints | Description |
|---|---|---|---|---|
start | VersatileDatetime | — | Required. Cannot be null. | Start of the range. |
end | VersatileDatetime | — | Required. Cannot be null. | End of the range. |
count | integer | — | Required. >= 1 | Total number of timestamps to distribute. |
endpoint | boolean | true | — | Whether to include end as the last timestamp. |
tags | list 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: false100 events in the next hour:
input:
- linspace:
start: now
end: +1h
count: 100