Struct rustis::commands::TsMGetOptions
source · pub struct TsMGetOptions { /* private fields */ }
redis-time-series
only.Expand description
Options for the ts_mget
command.
Implementations§
source§impl TsMGetOptions
impl TsMGetOptions
sourcepub fn latest(self) -> Self
pub fn latest(self) -> Self
Used when a time series is a compaction.
With latest
, ts_mget
also reports the compacted value of the latest possibly partial bucket,
given that this bucket’s start time falls within [from_timestamp
, to_timestamp
].
Without latest
, ts_mget
does not report the latest possibly partial bucket.
When a time series is not a compaction, latest
is ignored.
The data in the latest bucket of a compaction is possibly partial.
A bucket is closed and compacted only upon arrival of a new sample that opens a new latest bucket.
There are cases, however, when the compacted value of the latest possibly partial bucket is also required.
In such a case, use latest
.
sourcepub fn withlabels(self) -> Self
pub fn withlabels(self) -> Self
Includes in the reply all label-value pairs representing metadata labels of the time series.
If withlabels
or selected_labels
are not specified, by default, an empty list is reported as label-value pairs.
sourcepub fn selected_labels<L: SingleArg>(
self,
labels: impl SingleArgCollection<L>
) -> Self
pub fn selected_labels<L: SingleArg>( self, labels: impl SingleArgCollection<L> ) -> Self
returns a subset of the label-value pairs that represent metadata labels of the time series.
Use when a large number of labels exists per series, but only the values of some of the labels are required.
If withlabels
or selected_labels
are not specified, by default, an empty list is reported as label-value pairs.