config_ctrl.ts 602 B

123456789101112131415
  1. export class OpenTsConfigCtrl {
  2. static templateUrl = 'public/app/plugins/datasource/opentsdb/partials/config.html';
  3. current: any;
  4. /** @ngInject */
  5. constructor($scope) {
  6. this.current.jsonData = this.current.jsonData || {};
  7. this.current.jsonData.tsdbVersion = this.current.jsonData.tsdbVersion || 1;
  8. this.current.jsonData.tsdbResolution = this.current.jsonData.tsdbResolution || 1;
  9. }
  10. tsdbVersions = [{ name: '<=2.1', value: 1 }, { name: '==2.2', value: 2 }, { name: '==2.3', value: 3 }];
  11. tsdbResolutions = [{ name: 'second', value: 1 }, { name: 'millisecond', value: 2 }];
  12. }