CREATERULE.js 597 B

12345678910111213141516171819
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
  4. exports.FIRST_KEY_INDEX = 1;
  5. function transformArguments(sourceKey, destinationKey, aggregationType, bucketDuration, alignTimestamp) {
  6. const args = [
  7. 'TS.CREATERULE',
  8. sourceKey,
  9. destinationKey,
  10. 'AGGREGATION',
  11. aggregationType,
  12. bucketDuration.toString()
  13. ];
  14. if (alignTimestamp) {
  15. args.push(alignTimestamp.toString());
  16. }
  17. return args;
  18. }
  19. exports.transformArguments = transformArguments;