grafana/public/app/plugins/datasource/opentsdb/config_ctrl.ts

16 lines
602 B
TypeScript
Raw Normal View History

export class OpenTsConfigCtrl {
2017-12-20 05:33:33 -06:00
static templateUrl = 'public/app/plugins/datasource/opentsdb/partials/config.html';
current: any;
/** @ngInject */
constructor($scope) {
this.current.jsonData = this.current.jsonData || {};
this.current.jsonData.tsdbVersion = this.current.jsonData.tsdbVersion || 1;
this.current.jsonData.tsdbResolution = this.current.jsonData.tsdbResolution || 1;
}
tsdbVersions = [{ name: '<=2.1', value: 1 }, { name: '==2.2', value: 2 }, { name: '==2.3', value: 3 }];
tsdbResolutions = [{ name: 'second', value: 1 }, { name: 'millisecond', value: 2 }];
}