Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
kcenon::thread::diagnostics::component_health Struct Reference

Health status of a single component. More...

#include <health_status.h>

Collaboration diagram for kcenon::thread::diagnostics::component_health:
Collaboration graph

Public Member Functions

auto is_operational () const -> bool
 Checks if this component is operational.
 

Public Attributes

std::string name
 Name of the component (e.g., "workers", "queue", "metrics").
 
health_state state {health_state::unknown}
 Current health state of this component.
 
std::string message
 Human-readable message describing the current state.
 
std::map< std::string, std::string > details
 Additional details about this component's health.
 

Detailed Description

Health status of a single component.

Represents the health of a single subsystem or component within the thread pool (e.g., workers, queue, metrics).

Definition at line 143 of file health_status.h.

Member Function Documentation

◆ is_operational()

auto kcenon::thread::diagnostics::component_health::is_operational ( ) const -> bool
inlinenodiscard

Checks if this component is operational.

Returns
true if healthy or degraded.

Definition at line 171 of file health_status.h.

172 {
173 return state == health_state::healthy ||
175 }
@ healthy
Component is fully operational.
@ degraded
Component is operational but with reduced capacity/performance.
health_state state
Current health state of this component.

References kcenon::thread::diagnostics::degraded, kcenon::thread::diagnostics::healthy, and state.

Member Data Documentation

◆ details

std::map<std::string, std::string> kcenon::thread::diagnostics::component_health::details

Additional details about this component's health.

Key-value pairs with component-specific metrics or information.

Definition at line 165 of file health_status.h.

Referenced by kcenon::thread::diagnostics::thread_pool_diagnostics::check_metrics_health(), kcenon::thread::diagnostics::thread_pool_diagnostics::check_queue_health(), and kcenon::thread::diagnostics::thread_pool_diagnostics::check_worker_health().

◆ message

std::string kcenon::thread::diagnostics::component_health::message

◆ name

std::string kcenon::thread::diagnostics::component_health::name

◆ state


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