blob: 705650609910a6e86266f326b8a1cf599721d83f [file] [log] [blame]
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 (id: 0);
// Health of this connection. Connected or not?
state:State (id: 1);
// Number of packets received on all channels.
received_packets:uint (id: 2);
// 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 (id: 3);
// Number of duplicate packets we received and dropped.
duplicate_packets:uint (id: 4);
// TODO(austin): Per channel counts?
}
// Statistics for all clients.
table ClientStatistics {
connections:[ClientConnection] (id: 0);
}
root_type ClientStatistics;