TS.MGET
Since 1.1.0Time series
Syntax
TS.MGET [LATEST] [WITHLABELS | SELECTED_LABELS label ...] FILTER <filters>Returns the newest sample of every time series whose labels match the FILTER (see TS.MRANGE for conditions). WITHLABELS or SELECTED_LABELS adds the labels.
Reply
- An array with, per series: its key, its labels (empty unless asked for), and its newest sample.
Examples
> TS.MGET FILTER kind=temp
1) 1) "temp:1"
2) (empty array)
3) 1) (integer) 5000
2) "24"
2) 1) "temp:2"
2) (empty array)
3) 1) (integer) 5000
2) "17"