pulsatrix
Loading...
Searching...
No Matches
pulsatrix::SystemMonitor::Options Struct Reference

Construction options. More...

#include <system_monitor.hpp>

Public Attributes

std::chrono::milliseconds interval {1000}
 Sampling period of the background thread (> 0).
 
std::string log_path = ""
 Log file; empty = no log.
 
LogFormat format = LogFormat::JsonLines
 
bool append = false
 
std::size_t history_capacity = 3600
 Ring-buffer size for history(); 0 keeps none.
 

Detailed Description

Construction options.

Member Data Documentation

◆ append

bool pulsatrix::SystemMonitor::Options::append = false

Append to an existing log instead of truncating it. A restart (start() after stop()) always appends, so the first run's records are never lost.

◆ format

LogFormat pulsatrix::SystemMonitor::Options::format = LogFormat::JsonLines

Log record encoding.

◆ history_capacity

std::size_t pulsatrix::SystemMonitor::Options::history_capacity = 3600

Ring-buffer size for history(); 0 keeps none.

◆ interval

std::chrono::milliseconds pulsatrix::SystemMonitor::Options::interval {1000}

Sampling period of the background thread (> 0).

◆ log_path

std::string pulsatrix::SystemMonitor::Options::log_path = ""

Log file; empty = no log.


The documentation for this struct was generated from the following file: