Implement transport stats.

This commit is contained in:
Orne Brocaar
2015-07-09 20:36:22 +02:00
parent ec4079733e
commit cb839d0fe8
3 changed files with 23 additions and 0 deletions

View File

@@ -400,6 +400,13 @@ const statsResponse = `
"available_in_bytes": 15894814720
}
]
},
"transport": {
"server_open": 13,
"rx_count": 6,
"rx_size_in_bytes": 1380,
"tx_count": 6,
"tx_size_in_bytes": 1380
}
}
}
@@ -667,3 +674,11 @@ var fsExpected = map[string]float64{
"fs_total_available_in_bytes": 15894814720,
"fs_total_total_in_bytes": 19507089408,
}
var transportExpected = map[string]float64{
"transport_server_open": 13,
"transport_rx_count": 6,
"transport_rx_size_in_bytes": 1380,
"transport_tx_count": 6,
"transport_tx_size_in_bytes": 1380,
}