mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Graphite 1.0 functions (#8987)
* graphite-ds: add graphite version to config editor * graphite-ds: modify add-graphite-function to show only version-related functions * graphite-ds: refactor, move func filtering to gfunc.js * graphite-ds: add new functions for graphite 1.0.x * graphite-ds: fix unit tests (add jsonData)
This commit is contained in:
committed by
Torkel Ödegaard
parent
35522c475f
commit
4fe79edd40
20
public/app/plugins/datasource/graphite/config_ctrl.ts
Normal file
20
public/app/plugins/datasource/graphite/config_ctrl.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
///<reference path="../../../headers/common.d.ts" />
|
||||
|
||||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
export class GraphiteConfigCtrl {
|
||||
static templateUrl = 'public/app/plugins/datasource/graphite/partials/config.html';
|
||||
current: any;
|
||||
|
||||
/** @ngInject */
|
||||
constructor($scope) {
|
||||
this.current.jsonData.graphiteVersion = this.current.jsonData.graphiteVersion || '0.9';
|
||||
}
|
||||
|
||||
graphiteVersions = [
|
||||
{name: '0.9.x', value: '0.9'},
|
||||
{name: '1.0.x', value: '1.0'},
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user