2016-02-07 21:13:00 -08:00
|
|
|
export class OpenTsConfigCtrl {
|
2017-12-20 12:33:33 +01:00
|
|
|
static templateUrl = 'public/app/plugins/datasource/opentsdb/partials/config.html';
|
2016-02-07 21:13:00 -08:00
|
|
|
current: any;
|
|
|
|
|
|
|
|
|
|
/** @ngInject */
|
2019-07-01 11:11:57 +02:00
|
|
|
constructor($scope: any) {
|
2016-02-07 21:13:00 -08:00
|
|
|
this.current.jsonData = this.current.jsonData || {};
|
|
|
|
|
this.current.jsonData.tsdbVersion = this.current.jsonData.tsdbVersion || 1;
|
2017-12-21 08:39:31 +01:00
|
|
|
this.current.jsonData.tsdbResolution = this.current.jsonData.tsdbResolution || 1;
|
2016-02-07 21:13:00 -08:00
|
|
|
}
|
|
|
|
|
|
2017-12-21 08:39:31 +01:00
|
|
|
tsdbVersions = [{ name: '<=2.1', value: 1 }, { name: '==2.2', value: 2 }, { name: '==2.3', value: 3 }];
|
2016-02-07 21:13:00 -08:00
|
|
|
|
2017-12-21 08:39:31 +01:00
|
|
|
tsdbResolutions = [{ name: 'second', value: 1 }, { name: 'millisecond', value: 2 }];
|
2016-02-07 21:13:00 -08:00
|
|
|
}
|