10#ifndef logger_types_telem_usage_hpp 
   11#define logger_types_telem_usage_hpp 
   66      static_cast<void>(len); 
 
   70      std::string msg = 
"[usage] ram: ";
 
   72      msg += std::to_string(rgs->ramUsage());
 
   74      msg += std::to_string(rgs->bootUsage());
 
   76      msg += std::to_string(rgs->rootUsage());
 
   78      msg += std::to_string(rgs->dataUsage());
 
 
   91      static_cast<void>(member);
 
   92      std::cerr << 
"Meta data accessor not implemented in telem_usage\n";
 
 
 
The MagAO-X logger flatbuffer log base type.
 
uint16_t eventCodeT
The type of an event code (16-bit unsigned int).
 
msgLen2T msgLenT
The type used to refer to the message length, regardless of length.
 
int8_t logPrioT
The type of the log priority code.
 
static void * messageBuffer(bufferPtrT &logBuffer)
Get the message buffer address.
 
std::shared_ptr< char > bufferPtrT
The log entry buffer smart pointer.
 
static constexpr flatlogs::eventCodeT TELEM_USAGE
 
bool VerifyTelem_usage_fbBuffer(::flatbuffers::Verifier &verifier)
 
inline ::flatbuffers::Offset< Telem_usage_fb > CreateTelem_usage_fb(::flatbuffers::FlatBufferBuilder &_fbb, float ramUsage=0.0f, float bootUsage=0.0f, float rootUsage=0.0f, float dataUsage=0.0f)
 
const MagAOX::logger::Telem_usage_fb * GetTelem_usage_fb(const void *buf)
 
static constexpr logPrioT LOG_TELEM
A telemetry recording.
 
Message type for resolving log messages with a f.b. builder.
 
flatbuffers::FlatBufferBuilder builder
 
Base class for logs consisting of a flatbuffer message.
 
The type of the input message.
 
messageT(float ram, float boot, float root, float data)
Construct from components.
 
Log entry recording disk usage.
 
static std::string msgString(void *msgBuffer, flatlogs::msgLenT len)
Get the message formatted for human consumption.
 
static const flatlogs::logPrioT defaultLevel
 
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
 
static logMetaDetail getAccessor(const std::string &member)
Get the logMetaDetail for a member by name.
 
static timespec lastRecord
The time of the last time this log was recorded. Used by the telemetry system.
 
static const flatlogs::eventCodeT eventCode