Skip to content

Commit 92288c5

Browse files
committed
Add call interface to monitor_statis
1 parent 9fc3485 commit 92288c5

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,21 @@ ChainsqlAPI.prototype.deleteSchema = function(schemaInfo){
14031403
return this;
14041404
};
14051405

1406+
ChainsqlAPI.prototype.monitorStatis = function(){
1407+
var connection = this.api ? this.api.connection : this.connect.api.connection;
1408+
return new Promise(function(resolve, reject){
1409+
1410+
var params = {};
1411+
params.command = 'monitor_statis';
1412+
1413+
connection.request(params).then(function(data){
1414+
resolve(data);
1415+
}).catch(function(err){
1416+
reject(err);
1417+
});
1418+
});
1419+
};
1420+
14061421
function callback(data, callback) {
14071422

14081423
}

0 commit comments

Comments
 (0)