You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
close #2192 close #2193 close #2194 close #2195 close #2196 close #2197 close #2198 - support for TimeSeries 1.8 (#2200)
This commit is contained in:
@@ -6,16 +6,23 @@ export function transformArguments(
|
||||
sourceKey: string,
|
||||
destinationKey: string,
|
||||
aggregationType: TimeSeriesAggregationType,
|
||||
timeBucket: number
|
||||
bucketDuration: number,
|
||||
alignTimestamp?: number
|
||||
): Array<string> {
|
||||
return [
|
||||
const args = [
|
||||
'TS.CREATERULE',
|
||||
sourceKey,
|
||||
destinationKey,
|
||||
'AGGREGATION',
|
||||
aggregationType,
|
||||
timeBucket.toString()
|
||||
bucketDuration.toString()
|
||||
];
|
||||
|
||||
if (alignTimestamp) {
|
||||
args.push(alignTimestamp.toString());
|
||||
}
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
export declare function transformReply(): 'OK';
|
||||
|
Reference in New Issue
Block a user