Implement http stats.

This commit is contained in:
Orne Brocaar
2015-07-09 20:38:51 +02:00
parent cb839d0fe8
commit 0faa1c886a
3 changed files with 16 additions and 0 deletions

View File

@@ -407,6 +407,10 @@ const statsResponse = `
"rx_size_in_bytes": 1380,
"tx_count": 6,
"tx_size_in_bytes": 1380
},
"http": {
"current_open": 3,
"total_opened": 3
}
}
}
@@ -682,3 +686,8 @@ var transportExpected = map[string]float64{
"transport_tx_count": 6,
"transport_tx_size_in_bytes": 1380,
}
var httpExpected = map[string]float64{
"http_current_open": 3,
"http_total_opened": 3,
}