1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-03 04:01:40 +03:00
Files
node-redis/packages/time-series/lib/commands/CREATERULE.ts
2021-12-20 14:47:51 -05:00

22 lines
477 B
TypeScript

import { TimeSeriesAggregationType } from '.';
export const FIRST_KEY_INDEX = 1;
export function transformArguments(
sourceKey: string,
destinationKey: string,
aggregationType: TimeSeriesAggregationType,
timeBucket: number
): Array<string> {
return [
'TS.CREATERULE',
sourceKey,
destinationKey,
'AGGREGATION',
aggregationType,
timeBucket.toString()
];
}
export declare function transformReply(): 'OK';