Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
kcenon::monitoring::concepts::HealthCheckable Concept Reference

A type that supports health checking. More...

#include <monitoring_concepts.h>

Concept definition

template<typename T>
concept kcenon::monitoring::concepts::HealthCheckable = requires(const T t) {
{ t.is_healthy() } -> std::convertible_to<bool>;
}
A type that supports health checking.

Detailed Description

A type that supports health checking.

Health-checkable types provide methods for querying health status.

Example usage:

template<HealthCheckable H>
bool check_health(const H& component) {
return component.is_healthy();
}

Definition at line 301 of file monitoring_concepts.h.