File tree Expand file tree Collapse file tree 4 files changed +45
-1
lines changed
public/app/plugins/datasource Expand file tree Collapse file tree 4 files changed +45
-1
lines changed Original file line number Diff line number Diff line change @@ -31,5 +31,5 @@ public/css/*.min.css
31
31
conf /custom.ini
32
32
fig.yml
33
33
profile.cov
34
- grafana
34
+ / grafana
35
35
.notouch
Original file line number Diff line number Diff line change
1
+ ///<reference path="../../../headers/common.d.ts" />
2
+
3
+ class GrafanaDatasource {
4
+
5
+ constructor ( private backendSrv ) { }
6
+
7
+ query ( options ) {
8
+ return this . backendSrv . get ( '/api/metrics/test' , {
9
+ from : options . range . from . valueOf ( ) ,
10
+ to : options . range . to . valueOf ( ) ,
11
+ maxDataPoints : options . maxDataPoints
12
+ } ) ;
13
+ }
14
+ }
15
+
16
+ export { GrafanaDatasource } ;
Original file line number Diff line number Diff line change
1
+ ///<reference path="../../../headers/common.d.ts" />
2
+
3
+ import angular from 'angular' ;
4
+ import { GrafanaDatasource } from './datasource' ;
5
+
6
+ var module = angular . module ( 'grafana.directives' ) ;
7
+
8
+ module . directive ( 'metricQueryEditorGrafana' , function ( ) {
9
+ return { templateUrl : 'app/plugins/datasource/grafana/partials/query.editor.html' } ;
10
+ } ) ;
11
+
12
+
13
+ export { GrafanaDatasource , GrafanaDatasource as Datasource } ;
14
+
Original file line number Diff line number Diff line change
1
+ ///<reference path="../../../headers/common.d.ts" />
2
+
3
+ import angular from 'angular' ;
4
+ import { MixedDatasource } from './datasource' ;
5
+
6
+ var module = angular . module ( 'grafana.directives' ) ;
7
+
8
+ module . directive ( 'metricQueryEditorMixed' , function ( ) {
9
+ return { templateUrl : 'app/plugins/datasource/mixed/partials/query.editor.html' } ;
10
+ } ) ;
11
+
12
+
13
+ export { MixedDatasource , MixedDatasource as Datasource } ;
14
+
You can’t perform that action at this time.
0 commit comments