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

Standard monitoring interface for all systems. More...

#include <algorithm>
#include <array>
#include <chrono>
#include <cstdint>
#include <functional>
#include <memory>
#include <string>
#include <string_view>
#include <unordered_map>
#include <utility>
#include <vector>
#include "../patterns/result.h"
#include "../utils/enum_serialization.h"
Include dependency graph for monitoring_interface.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::metric_type >
 Specialization of enum_traits for metric_type. More...
 
struct  kcenon::common::interfaces::metric_value
 Standard metric value structure with type information. More...
 
struct  kcenon::common::interfaces::metrics_snapshot
 Complete snapshot of metrics at a point in time. More...
 
struct  kcenon::common::interfaces::thread_pool_metrics
 Specialized metrics for thread pool monitoring. More...
 
struct  kcenon::common::interfaces::worker_metrics
 Specialized metrics for worker thread monitoring. More...
 
struct  kcenon::common::interfaces::system_metrics
 Specialized metrics for system-level monitoring. More...
 
struct  kcenon::common::enum_traits< interfaces::health_status >
 Specialization of enum_traits for health_status. More...
 
struct  kcenon::common::interfaces::health_check_result
 Result of a health check operation. More...
 
interface  kcenon::common::interfaces::IMonitor
 Standard interface for monitoring implementations. More...
 
interface  kcenon::common::interfaces::IMonitorable
 Interface for objects that can be monitored. More...
 
interface  kcenon::common::interfaces::IMonitorProvider
 Interface for modules that provide monitor implementations. More...
 

Namespaces

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

Typedefs

using kcenon::common::interfaces::MonitorFactory = std::function<std::shared_ptr<IMonitor>()>
 Factory function type for creating monitor instances.
 

Enumerations

enum class  kcenon::common::interfaces::metric_type { kcenon::common::interfaces::gauge , kcenon::common::interfaces::counter , kcenon::common::interfaces::histogram , kcenon::common::interfaces::summary }
 Types of metrics supported by the monitoring system. More...
 
enum class  kcenon::common::interfaces::health_status { kcenon::common::interfaces::healthy = 0 , kcenon::common::interfaces::degraded = 1 , kcenon::common::interfaces::unhealthy = 2 , kcenon::common::interfaces::unknown = 3 }
 Standard health status levels. More...
 

Functions

std::string kcenon::common::interfaces::to_string (metric_type type)
 Convert metric type to string.
 
Result< metric_typekcenon::common::interfaces::metric_type_from_string (const std::string &str)
 Convert string to metric type.
 
std::string kcenon::common::interfaces::to_string (health_status status)
 Convert health status to string.
 

Detailed Description

Standard monitoring interface for all systems.

This header defines the standard monitoring interface to be used across all systems for consistent metrics and health monitoring.

Definition in file monitoring_interface.h.