[Groonga-commit] groonga/grafana-datasource-plugin-groonga at 2c54d7c [master] Add testDatasource() to enable "Test Connection"

Back to archive index

Masafumi Yokoyama null+****@clear*****
Sun Feb 7 00:52:09 JST 2016


Masafumi Yokoyama	2016-02-07 00:52:09 +0900 (Sun, 07 Feb 2016)

  New Revision: 2c54d7cd2441aadba5976794d90dae7efc921439
  https://github.com/groonga/grafana-datasource-plugin-groonga/commit/2c54d7cd2441aadba5976794d90dae7efc921439

  Message:
    Add testDatasource() to enable "Test Connection"

  Modified files:
    datasource.js

  Modified: datasource.js (+10 -1)
===================================================================
--- datasource.js    2016-02-07 00:50:19 +0900 (3a3571e)
+++ datasource.js    2016-02-07 00:52:09 +0900 (bfda423)
@@ -4,13 +4,22 @@ define([
 function (angular) {
   'use strict';
 
-  alert('xxx');
   var module = angular.module('grafana.services');
 
   module.factory('GroongaDatasource', function($timeout) {
     function GroongaDatasource() {
     }
 
+    GroongaDatasource.prototype.testDatasource = function() {
+      return $timeout(function() {
+        return {
+          status: 'success',
+          title: 'Success',
+          message: 'OK!'
+        };
+      }, 1000);
+    };
+
     return GroongaDatasource;
   });
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index