rozetko
6 years ago
6 changed files with 51 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||||||
|
export class HasticDatasource { |
||||||
|
|
||||||
|
/** @ngInject */ |
||||||
|
constructor(public instanceSettings: any) { |
||||||
|
} |
||||||
|
|
||||||
|
async query(options: any) { |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
async testDatasource() { |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
metricFindQuery(options: any) { |
||||||
|
return []; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,14 @@ |
|||||||
|
import { HasticDatasource } from './datasource'; |
||||||
|
import { HasticQueryCtrl } from './query_ctrl'; |
||||||
|
|
||||||
|
import configTemplate from './partials/config.html'; |
||||||
|
|
||||||
|
class HasticConfigCtrl { |
||||||
|
public static template = configTemplate; |
||||||
|
} |
||||||
|
|
||||||
|
export { |
||||||
|
HasticDatasource as Datasource, |
||||||
|
HasticConfigCtrl as ConfigCtrl, |
||||||
|
HasticQueryCtrl as QueryCtrl |
||||||
|
}; |
@ -0,0 +1 @@ |
|||||||
|
<datasource-http-settings current="ctrl.current" suggest-url="http://localhost:8000"/> |
@ -0,0 +1,6 @@ |
|||||||
|
{ |
||||||
|
"type": "datasource", |
||||||
|
"name": "Hastic datasource", |
||||||
|
"id": "corpglory-hastic-datasource", |
||||||
|
"metrics": true |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
import template from './partials/query_ctrl.html'; |
||||||
|
|
||||||
|
import { QueryCtrl } from 'grafana/app/plugins/sdk'; |
||||||
|
|
||||||
|
export class HasticQueryCtrl extends QueryCtrl { |
||||||
|
static template = template; |
||||||
|
|
||||||
|
/** @ngInject */ |
||||||
|
constructor($scope, $injector) { |
||||||
|
super($scope, $injector); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue