Network Protocol ================ The metrics system has a particular wire format that it must adhere to (that is, a format for the network request containing a bundle of metrics.) It should be kept up to date with `emer-daemon.c `_. If this document is inconsistent with the code, please make sure the document is updated accordingly. .. note:: Any changes that modify the network protocol must increment the network protocol version number in the same commit. Wire Format ----------- Global Structure ~~~~~~~~~~~~~~~~ The format is entirely little-endian. In order, its elements are: Relative Timestamp ++++++++++++++++++ - 64 bit signed integer - GVariant symbol: ``x`` - Nanoseconds elapsed since the OS booted up - See: http://linux.die.net/man/3/clock_gettime Absolute Timestamp ++++++++++++++++++ - 64 bit signed integer - GVariant symbol: ``x`` - Nanoseconds since the Unix epoch - See: http://linux.die.net/man/3/clock_gettime Image +++++ - String - ``---.-