blob: 75a6a15686d3b925f2ae9acd811834ef2b83f51f [file] [log] [blame]
Austin Schuhe84c3ed2019-12-14 15:29:48 -08001include "aos/configuration.fbs";
2
3namespace aos.message_bridge;
4
5// State of the connection.
6enum State: ubyte {
7 CONNECTED,
8 DISCONNECTED,
9}
10
11// Statistics from a single connection to a client from this server.
12table ServerConnection {
13 // The node that we are connected to.
14 node:Node;
15
16 // Health of this connection. Connected or not?
17 state:State;
18
19 // Number of packets that have been dropped (if known).
20 dropped_packets:uint;
21
22 // Number of packets received on all channels.
23 sent_packets:uint;
24
25 // TODO(austin): Per channel counts?
26}
27
28// Statistics for all connections to all the clients.
29table ServerStatistics {
30 connections:[ServerConnection];
31}
32
33root_type ServerStatistics;