hub.network.statistics.get
- Version: 1.0
Connection type: UI
- Get network statistics.
Edit
Field | Type | Required | Description |
---|---|---|---|
units | string | – | Units used for provided statistics (,,) |
period | JsonObject | – | A period statistics is required for |
period.begin | JsonObject | + | [begin, end) |
period.end | JsonObject | + | [begin, end) |
Edit
Field | Type | Required | Description |
---|---|---|---|
units | string | + | Units used for provided statistics (,,) |
period | JsonObject | + | A period statistics are required for |
interfaces | JsonArray | + | Network statistics per interfaces |
Edit
Here is an example of usage:
Edit
{
"method": "hub.network.statistics.get",
"id": "_ID_",
"params": {
"units": "MB",
"period": {
"begin": "2021-06-08",
"end": "2021-06-11"
}
}
}
Edit
{
"error": null,
"id": "_ID_",
"method": "hub.network.statistics.get",
"result": {
"interfaces": [
{
"input": 36.2553491592407,
"name": "eth0",
"output": 3.93610763549805
},
{
"input": 0.000492095947265625,
"name": "mobile0",
"output": 0.000722885131835938
},
{
"input": 0,
"name": "wlan0",
"output": 0
},
{
"input": 0,
"name": "wlan0.1",
"output": 0
}
],
"period": {
"begin": "2021-06-08",
"end": "2021-06-11"
},
"units": "MB"
}
}