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 | |
Austin Schuh | 7bc5905 | 2020-02-16 23:48:33 -0800 | [diff] [blame^] | 16 | // This is the measured monotonic offset for just the server -> client |
| 17 | // direction measured in nanoseconds. Subtract this from our monotonic time |
| 18 | // to get their monotonic time. |
| 19 | monotonic_offset:int64; |
| 20 | |
Austin Schuh | e84c3ed | 2019-12-14 15:29:48 -0800 | [diff] [blame] | 21 | // TODO(austin): Per channel counts? |
| 22 | } |
| 23 | |
| 24 | // Statistics for all clients. |
| 25 | table ClientStatistics { |
| 26 | connections:[ClientConnection]; |
| 27 | } |
| 28 | |
| 29 | root_type ClientStatistics; |