mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +00:00
Add retention period for new time series
This commit is contained in:
@@ -151,6 +151,8 @@ export class RedisParkingRepository extends BaseRedisRepository implements Parki
|
|||||||
await this.redisClient.sendCommand([
|
await this.redisClient.sendCommand([
|
||||||
'TS.CREATE',
|
'TS.CREATE',
|
||||||
timeSeriesKey,
|
timeSeriesKey,
|
||||||
|
'RETENTION',
|
||||||
|
'2678400000', // one month
|
||||||
'LABELS',
|
'LABELS',
|
||||||
'structureId',
|
'structureId',
|
||||||
structureId
|
structureId
|
||||||
|
|||||||
Reference in New Issue
Block a user