ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
telemetry_streaming_options Struct Reference

Configuration options for telemetry streaming. More...

#include <telemetry_streaming_service.hpp>

Collaboration diagram for telemetry_streaming_options:
Collaboration graph

Public Attributes

std::string source_name
 Name of the source application.
 
std::string source_version
 Version of the source application.
 
std::size_t batch_size = 50
 Maximum number of log records per batch.
 
std::chrono::seconds flush_interval {5}
 Maximum time to wait before sending a batch.
 
bool retry_on_failure = true
 Whether to retry failed submissions.
 
std::size_t max_pending_records = 1000
 Maximum number of records to keep pending when disconnected.
 

Detailed Description

Configuration options for telemetry streaming.

Member Data Documentation

◆ source_name

std::string source_name

Name of the source application.

Examples: "ores.qt", "ores.comms.shell"

◆ batch_size

std::size_t batch_size = 50

Maximum number of log records per batch.

When this threshold is reached, the batch is sent immediately. Default: 50

◆ flush_interval

std::chrono::seconds flush_interval {5}

Maximum time to wait before sending a batch.

If this interval elapses without reaching batch_size, the batch is sent anyway. Default: 5 seconds

◆ retry_on_failure

bool retry_on_failure = true

Whether to retry failed submissions.

If true, failed batches are retried on the next flush cycle. Default: true

◆ max_pending_records

std::size_t max_pending_records = 1000

Maximum number of records to keep pending when disconnected.

If this limit is reached, oldest records are dropped. Default: 1000