config_ctrl.ts 656 B

1234567891011121314151617
  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 = [{ name: '<=2.1', value: 1 }, { name: '==2.2', value: 2 }, { name: '==2.3', value: 3 }];
  12. tsdbResolutions = [{ name: 'second', value: 1 }, { name: 'millisecond', value: 2 }];
  13. }