TS.ALTER

Since 1.1.0Time series

Syntax

TS.ALTER key [RETENTION ms] [CHUNK SIZE size] [DUPLICATE_POLICY policy] [LABELS label value ...]
  • Flags: write
  • ACL categories: @slow, @timeseries, @write
  • Arity: -2

Changes a time series' retention, chunk size, duplicate policy or labels. Labels given replace all of them, and the label index follows at once.

Reply

  • OK.

Examples

> TS.ALTER temp:1 RETENTION 60000 LABELS room kitchen kind temp floor 1
OK