config_ctrl.ts 677 B

12345678910111213141516171819202122232425
  1. ///<reference path="../../../headers/common.d.ts" />
  2. export class OpenTsConfigCtrl {
  3. static templateUrl = 'public/app/plugins/datasource/opentsdb/partials/config.html';
  4. current: any;
  5. /** @ngInject */
  6. constructor($scope) {
  7. this.current.jsonData = this.current.jsonData || {};
  8. this.current.jsonData.tsdbVersion = this.current.jsonData.tsdbVersion || 1;
  9. this.current.jsonData.tsdbResolution = this.current.jsonData.tsdbResolution || 1;
  10. }
  11. tsdbVersions = [
  12. {name: '<=2.1', value: 1},
  13. {name: '==2.2', value: 2},
  14. {name: '==2.3', value: 3},
  15. ];
  16. tsdbResolutions = [
  17. {name: 'second', value: 1},
  18. {name: 'millisecond', value: 2},
  19. ];
  20. }