rpc/JSON-RPC method
p2p.BandwidthForPeer
**BandwidthForPeer returns a Stats struct with bandwidth metrics associated with the given peer.ID. The metrics returned include all traffic sent / received for the peer, regardless of protocol. **
Auth level: admin
Params:
[{"name":"id","description":"peer.ID","summary":"","schema":{"examples":["CovLVG4fQcqUS6DmoMxAwVJGNW6PMzfwTG6BHW9NH9TLGHcbRfvPVc3JVhnufK3HTzStoTo"],"type":["string"]},"required":true,"deprecated":false}]
Result:
{"name":"metrics.Stats","description":"metrics.Stats","summary":"","schema":{"examples":[{"TotalIn":42,"TotalOut":42,"RateIn":42,"RateOut":42}],"additionalProperties":false,"properties":{"RateIn":{"type":"number"},"RateOut":{"type":"number"},"TotalIn":{"type":"integer"},"TotalOut":{"type":"integer"}},"type":["object"]},"required":true,"deprecated":false}