View Source MyspaceIPFS.Stats (Myspace IPFS v0.2.0-alpha.1)

MyspaceIPFS.Stats is where the stats commands of the IPFS API reside.

Link to this section Summary

Functions

Show some diagnostic information on the bitswap agent.

Print ipfs bandwidth information.

Return the statistics about the nodes DHT(s).

Returns statistics about the node's (re)provider system.

Get stats for the currently running repo.

Link to this section Functions

@spec bitswap(list()) :: {:ok, any()} | MyspaceIPFS.Api.error_response()

Show some diagnostic information on the bitswap agent.

options

Options

https://docs.ipfs.io/reference/http/api/#api-v0-stats-bitswap human - <bool>, # Output human-readable numbers. verbose - <bool>, # Print extra information.

@spec bw(list()) :: {:ok, any()} | MyspaceIPFS.Api.error_response()

Print ipfs bandwidth information.

options

Options

https://docs.ipfs.io/reference/http/api/#api-v0-stats-bw peer - <string>, # Specify a peer to print bandwidth for. proto - <string>, # Specify a protocol to print bandwidth for. poll - <bool>, # Poll for stats. interval - <string>, # Time interval to poll. Default: 1s.

@spec dht(binary()) :: {:ok, any()} | MyspaceIPFS.Api.error_response()

Return the statistics about the nodes DHT(s).

parameters

Parameters

dht - <string>, # The name of the DHT to query.

              # "wanserver", "lanserver", "lan" or "wan".
@spec provide() :: {:ok, any()} | MyspaceIPFS.Api.error_response()

Returns statistics about the node's (re)provider system.

@spec repo(list()) :: {:ok, any()} | MyspaceIPFS.Api.error_response()

Get stats for the currently running repo.

options

Options

https://docs.ipfs.io/reference/http/api/#api-v0-stats-repo human - <bool>, # Output human-readable numbers. size-only - <bool>, # Only report the RepoSize.