pub fn timestamp_of_selection(
schema: &Arc<SeriesSchema>,
metric: &SeriesLabels,
time: &RawTimestamps,
fields: &SeriesFields,
indices: &[u64],
evaluation_timestamps: &[i64],
) -> Result<Option<Series>>Expand description
timestamp(v) over an instant selector: at each point the selection holds, the original time of
the selected sample in seconds, not the time it was looked up at, so an offset or @ moves
which sample is selected but not the time reported. The metric name, __type__ and __unit__
are dropped.
indices and evaluation_timestamps are a selection of time and fields as
select_instants returns one: grid positions increasing, rows not decreasing. schema holds
the evaluation grid the timestamps lie on and one field per field of fields. A field without a
sample in the selected row has no result there.
timestamp(x @ t) selects at t for every point, so its selection repeats one row. This
kernel reports the sample the caller selected and does not decide the selector’s time
modifiers: the native Instant caller selects the sample under the intersection of the ordinary
anchored selector window and the timestamp function’s unshifted window. info() retains ordinary
selector offset behavior.