Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
kcenon::monitoring::temperature_reading Struct Reference

A single temperature reading from a sensor. More...

#include <temperature_collector.h>

Collaboration diagram for kcenon::monitoring::temperature_reading:
Collaboration graph

Public Attributes

temperature_sensor_info sensor
 Sensor information.
 
double temperature_celsius {0.0}
 Current temperature in Celsius.
 
double critical_threshold_celsius {0.0}
 Critical temperature threshold (if available)
 
double warning_threshold_celsius {0.0}
 Warning threshold (if available)
 
bool thresholds_available {false}
 Whether thresholds are available.
 
bool is_critical {false}
 True if temperature exceeds critical threshold.
 
bool is_warning {false}
 True if temperature exceeds warning threshold.
 
std::chrono::system_clock::time_point timestamp
 Reading timestamp.
 

Detailed Description

A single temperature reading from a sensor.

Definition at line 84 of file temperature_collector.h.

Member Data Documentation

◆ critical_threshold_celsius

double kcenon::monitoring::temperature_reading::critical_threshold_celsius {0.0}

Critical temperature threshold (if available)

Definition at line 87 of file temperature_collector.h.

87{0.0};

◆ is_critical

bool kcenon::monitoring::temperature_reading::is_critical {false}

True if temperature exceeds critical threshold.

Definition at line 90 of file temperature_collector.h.

90{false};

◆ is_warning

bool kcenon::monitoring::temperature_reading::is_warning {false}

True if temperature exceeds warning threshold.

Definition at line 91 of file temperature_collector.h.

91{false};

◆ sensor

temperature_sensor_info kcenon::monitoring::temperature_reading::sensor

Sensor information.

Definition at line 85 of file temperature_collector.h.

◆ temperature_celsius

double kcenon::monitoring::temperature_reading::temperature_celsius {0.0}

Current temperature in Celsius.

Definition at line 86 of file temperature_collector.h.

86{0.0};

◆ thresholds_available

bool kcenon::monitoring::temperature_reading::thresholds_available {false}

Whether thresholds are available.

Definition at line 89 of file temperature_collector.h.

89{false};

◆ timestamp

std::chrono::system_clock::time_point kcenon::monitoring::temperature_reading::timestamp

Reading timestamp.

Definition at line 92 of file temperature_collector.h.

◆ warning_threshold_celsius

double kcenon::monitoring::temperature_reading::warning_threshold_celsius {0.0}

Warning threshold (if available)

Definition at line 88 of file temperature_collector.h.

88{0.0};

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