Austin Schuh | e84c3ed | 2019-12-14 15:29:48 -0800 | [diff] [blame] | 1 | include "aos/network/message_bridge_server.fbs"; |
| 2 | |
| 3 | namespace aos.message_bridge; |
| 4 | |
| 5 | // Statistics from a single client connection to a server. |
| 6 | table ClientConnection { |
| 7 | // The node that we are connected to. |
| 8 | node:Node; |
| 9 | |
| 10 | // Health of this connection. Connected or not? |
| 11 | state:State; |
| 12 | |
| 13 | // Number of packets received on all channels. |
| 14 | received_packets:uint; |
| 15 | |
| 16 | // TODO(austin): Per channel counts? |
| 17 | } |
| 18 | |
| 19 | // Statistics for all clients. |
| 20 | table ClientStatistics { |
| 21 | connections:[ClientConnection]; |
| 22 | } |
| 23 | |
| 24 | root_type ClientStatistics; |