ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
telemetry_batch Struct Referencefinal

A batch of telemetry log entries from a single source. More...

#include <telemetry_batch.hpp>

Collaboration diagram for telemetry_batch:
Collaboration graph

Public Member Functions

std::size_t size () const noexcept
 Returns the number of entries in the batch.
 
bool empty () const noexcept
 Returns true if the batch is empty.
 
void clear () noexcept
 Clears all entries from the batch.
 

Public Attributes

telemetry_source source = telemetry_source::client
 Source type (client or server).
 
std::string source_name
 Name of the source application.
 
std::vector< telemetry_log_entryentries
 The log entries in this batch.
 

Detailed Description

A batch of telemetry log entries from a single source.

Batching improves network efficiency and database insert performance. Clients should batch logs and submit them periodically (e.g., every 5 seconds or when a batch size threshold is reached).

Member Data Documentation

◆ source_name

std::string source_name

Name of the source application.

This is set once per batch rather than per-entry for efficiency. Examples: "ores.qt", "ores.comms.shell", "ores.comms.service"