Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
health_check.h File Reference

Base classes and types for health checking functionality. More...

#include <array>
#include <chrono>
#include <functional>
#include <string>
#include <string_view>
#include <utility>
#include "../monitoring_interface.h"
#include "../../utils/enum_serialization.h"
Include dependency graph for health_check.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::common::enum_traits< interfaces::health_check_type >
 Specialization of enum_traits for health_check_type. More...
 
interface  kcenon::common::interfaces::health_check
 Abstract base class for health checks. More...
 
class  kcenon::common::interfaces::lambda_health_check
 Health check implementation using a lambda function. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::common
 Core interfaces.
 
namespace  kcenon::common::interfaces
 

Enumerations

enum class  kcenon::common::interfaces::health_check_type {
  kcenon::common::interfaces::liveness , kcenon::common::interfaces::readiness , kcenon::common::interfaces::startup , kcenon::common::interfaces::dependency ,
  kcenon::common::interfaces::custom
}
 Types of health checks supported by the system. More...
 

Functions

std::string kcenon::common::interfaces::to_string (health_check_type type)
 Convert health check type to string.
 
Result< health_check_typekcenon::common::interfaces::health_check_type_from_string (const std::string &str)
 Convert string to health check type.
 

Detailed Description

Base classes and types for health checking functionality.

This header defines the fundamental health check abstractions including the health_check base class and health_check_type enumeration.

Definition in file health_check.h.