diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-06-24 19:38:58 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-06-24 23:34:05 +0800 |
commit | e5b820c47b9343d3801e1ebbeb4a8f40843ea87c (patch) | |
tree | 8c8785f014ed8033fd26129cd553c9635631fb50 /rpc/api/debug_js.go | |
parent | bde2ff034317db977354e0855e6406f9428899ea (diff) | |
download | dexon-e5b820c47b9343d3801e1ebbeb4a8f40843ea87c.tar dexon-e5b820c47b9343d3801e1ebbeb4a8f40843ea87c.tar.gz dexon-e5b820c47b9343d3801e1ebbeb4a8f40843ea87c.tar.bz2 dexon-e5b820c47b9343d3801e1ebbeb4a8f40843ea87c.tar.lz dexon-e5b820c47b9343d3801e1ebbeb4a8f40843ea87c.tar.xz dexon-e5b820c47b9343d3801e1ebbeb4a8f40843ea87c.tar.zst dexon-e5b820c47b9343d3801e1ebbeb4a8f40843ea87c.zip |
cmd/geth, rpc/api: extend metrics API, add a basic monitor command
Diffstat (limited to 'rpc/api/debug_js.go')
-rw-r--r-- | rpc/api/debug_js.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/rpc/api/debug_js.go b/rpc/api/debug_js.go index e48e4df06..bd3a6dfb2 100644 --- a/rpc/api/debug_js.go +++ b/rpc/api/debug_js.go @@ -46,15 +46,17 @@ web3._extend({ params: 1, inputFormatter: [web3._extend.formatters.formatInputInt], outputFormatter: function(obj) { return obj; } + }), + new web3._extend.Method({ + name: 'metrics', + call: 'debug_metrics', + params: 1, + inputFormatter: [web3._extend.formatters.formatInputBool], + outputFormatter: function(obj) { return obj; } }) ], properties: [ - new web3._extend.Property({ - name: 'metrics', - getter: 'debug_metrics', - outputFormatter: function(obj) { return obj; } - }) ] }); ` |