|
ORE Studio 0.0.4
|
Service for streaming telemetry logs to the server. More...
#include <telemetry_streaming_service.hpp>

Public Member Functions | |
| telemetry_streaming_service (std::shared_ptr< net::client > client, telemetry_streaming_options options) | |
| Constructs the telemetry streaming service. | |
| ~telemetry_streaming_service () | |
| Destructor. Stops the service if running. | |
| telemetry_streaming_service (const telemetry_streaming_service &)=delete | |
| telemetry_streaming_service & | operator= (const telemetry_streaming_service &)=delete |
| telemetry_streaming_service (telemetry_streaming_service &&)=delete | |
| telemetry_streaming_service & | operator= (telemetry_streaming_service &&)=delete |
| void | start () |
| Starts the streaming service. | |
| void | stop () |
| Stops the streaming service. | |
| bool | is_running () const noexcept |
| Checks if the service is currently running. | |
| void | flush () |
| Forces an immediate flush of pending logs. | |
| std::size_t | pending_count () const |
| Returns the number of log records pending transmission. | |
| std::uint64_t | total_sent () const noexcept |
| Returns the total number of records sent successfully. | |
| std::uint64_t | total_dropped () const noexcept |
| Returns the total number of records dropped due to overflow. | |
Service for streaming telemetry logs to the server.
This service provides seamless integration between Boost.Log and the ORE Studio telemetry persistence infrastructure. It:
Usage:
|
explicit |
Constructs the telemetry streaming service.
| client | Shared pointer to the connected client |
| options | Configuration options for streaming |
| void start | ( | ) |
Starts the streaming service.
Registers the Boost.Log sink and starts the background flush thread. Safe to call multiple times; subsequent calls are no-ops.
| void stop | ( | ) |
Stops the streaming service.
Flushes any pending logs, unregisters the sink, and stops the background thread. Safe to call multiple times; subsequent calls are no-ops.

| void flush | ( | ) |
Forces an immediate flush of pending logs.
Sends any buffered log records to the server immediately, regardless of batch size or flush interval.
