Skip to content

matrix

datahop matrix

Get node connectivity and content matrix

Synopsis

This command is used to get connectivity and content matrix

Example:

To pretty print the node matrix in json format

$ datahop matrix -j -p

{
    "ContentMatrix": {
        "bafybeicqmfjhbvuy75aluslgpjx57q7acpxbhibscwy5vv7hka42as5i5i": {
            "Size": 26,
            "AvgSpeed": 0.000024795532,
            "DownloadStartedAt": 1631086702,
            "DownloadFinishedAt": 1631086703,
            "ProvidedBy": [
                "QmXzT3KAv27w7MMdnHQ8bDqPxP2wrqoNNUcb9U14aC9wWJ"
            ]
        },
    },
    "NodeMatrix": {
        "QmXzT3KAv27w7MMdnHQ8bDqPxP2wrqoNNUcb9U14aC9wWJ": {
            "ConnectionAlive": false,
            "ConnectionSuccessCount": 1,
            "ConnectionFailureCount": 0,
            "LastSuccessfulConnectionDuration": 69,
            "BLEDiscoveredAt": 0,
            "WifiConnectedAt": 0,
            "RSSI": 0,
            "Speed": 0,
            "Frequency": 0,
            "IPFSConnectedAt": 0,
            "DiscoveryDelays": [],
            "ConnectionHistory": null
        },
        "QmcWEJqQD3bPMT5Mr7ijdwVCmVjUh5Z7CysiTQPgr2VZBC": {
            "ConnectionAlive": true,
            "ConnectionSuccessCount": 1,
            "ConnectionFailureCount": 0,
            "LastSuccessfulConnectionDuration": 0,
            "BLEDiscoveredAt": 0,
            "WifiConnectedAt": 0,
            "RSSI": 0,
            "Speed": 0,
            "Frequency": 0,
            "IPFSConnectedAt": 0,
            "DiscoveryDelays": [],
            "ConnectionHistory": null
        }
    },
    "TotalUptime": 40860
}
datahop matrix [flags]

Options

  -h, --help   help for matrix

Options inherited from parent commands

  -j, --json     json output
  -p, --pretty   pretty json output

SEE ALSO

  • datahop - This is datahop cli client
Auto generated by spf13/cobra on 21-Sep-2021