| include "aos/network/message_bridge_server.fbs"; |
| |
| namespace aos.message_bridge; |
| |
| // Statistics from a single client connection to a server. |
| table ClientConnection { |
| // The node that we are connected to. |
| node:Node; |
| |
| // Health of this connection. Connected or not? |
| state:State; |
| |
| // Number of packets received on all channels. |
| received_packets:uint; |
| |
| // This is the measured monotonic offset for just the server -> client |
| // direction measured in nanoseconds. Subtract this from our monotonic time |
| // to get their monotonic time. |
| monotonic_offset:int64; |
| |
| // TODO(austin): Per channel counts? |
| } |
| |
| // Statistics for all clients. |
| table ClientStatistics { |
| connections:[ClientConnection]; |
| } |
| |
| root_type ClientStatistics; |