mirror of
https://github.com/grafana/grafana.git
synced 2025-01-10 08:03:58 -06:00
28 lines
700 B
TypeScript
28 lines
700 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},
|
|
];
|
|
|
|
tsdbResolutions = [
|
|
{name: 'second', value: 1},
|
|
{name: 'millisecond', value: 2},
|
|
];
|
|
|
|
}
|