grafana/public/app/plugins/datasource/opentsdb/config_ctrl.ts
Utkarsh Bhatnagar 7bc15ec6c1 [Bug Fix] Opentsdb Alias issue (#4910)
* Fixed Opentsdb Alias issue

* Fixed Opentsdb query editor
2016-05-13 22:22:56 +02:00

29 lines
733 B
TypeScript

///<reference path="../../../headers/common.d.ts" />
import angular from 'angular';
import _ from 'lodash';
export class OpenTsConfigCtrl {
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},
];
}