examples(plugin.json): add includes info

pull/4318/head
bergquist 9 years ago
parent 138c738db9
commit 0ec747630d
  1. 5
      examples/nginx-app/plugin.json
  2. 12
      examples/nginx-app/src/datasource/datasource.js
  3. 5
      examples/nginx-app/src/datasource/module.js
  4. 5
      examples/nginx-app/src/datasource/plugin.json

@ -34,6 +34,11 @@
"updated": "2015-02-10"
},
"includes": [
{"type": "panel", "name": "Nginx Panel"},
{"type": "datasource", "name": "Nginx Datasource"}
],
"dependencies": {
"grafanaVersion": "3.x.x",
"plugins": [

@ -0,0 +1,12 @@
export default class NginxDatasource {
constructor() {}
query(options) {
return [];
}
testDatasource() {
return false;
}
}

@ -0,0 +1,5 @@
import {Datasource} from './datasource';
export {
Datasource
};

@ -0,0 +1,5 @@
{
"type": "datasource",
"name": "Nginx Datasource",
"id": "nginx-datasource"
}
Loading…
Cancel
Save