config_ctrl.ts 517 B

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