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

Accumulated statistics for health monitoring operations. More...

#include <health_monitor.h>

Collaboration diagram for kcenon::monitoring::health_monitor_stats:
Collaboration graph

Public Attributes

size_t total_checks {0}
 Total number of health checks performed.
 
size_t healthy_checks {0}
 Number of checks that returned healthy.
 
size_t unhealthy_checks {0}
 Number of checks that returned unhealthy.
 
size_t degraded_checks {0}
 Number of checks that returned degraded.
 
size_t recovery_attempts {0}
 Number of auto-recovery attempts made.
 
size_t successful_recoveries {0}
 Number of successful recovery attempts.
 
std::chrono::system_clock::time_point last_check_time
 Timestamp of the last check cycle.
 

Detailed Description

Accumulated statistics for health monitoring operations.

Definition at line 89 of file health_monitor.h.

Member Data Documentation

◆ degraded_checks

size_t kcenon::monitoring::health_monitor_stats::degraded_checks {0}

Number of checks that returned degraded.

Definition at line 93 of file health_monitor.h.

93{0};

Referenced by kcenon::monitoring::health_monitor::update_stats().

◆ healthy_checks

size_t kcenon::monitoring::health_monitor_stats::healthy_checks {0}

Number of checks that returned healthy.

Definition at line 91 of file health_monitor.h.

91{0};

Referenced by kcenon::monitoring::health_monitor::update_stats().

◆ last_check_time

std::chrono::system_clock::time_point kcenon::monitoring::health_monitor_stats::last_check_time

Timestamp of the last check cycle.

Definition at line 96 of file health_monitor.h.

Referenced by kcenon::monitoring::health_monitor::refresh().

◆ recovery_attempts

size_t kcenon::monitoring::health_monitor_stats::recovery_attempts {0}

Number of auto-recovery attempts made.

Definition at line 94 of file health_monitor.h.

94{0};

Referenced by kcenon::monitoring::health_monitor::refresh().

◆ successful_recoveries

size_t kcenon::monitoring::health_monitor_stats::successful_recoveries {0}

Number of successful recovery attempts.

Definition at line 95 of file health_monitor.h.

95{0};

Referenced by kcenon::monitoring::health_monitor::refresh().

◆ total_checks

size_t kcenon::monitoring::health_monitor_stats::total_checks {0}

Total number of health checks performed.

Definition at line 90 of file health_monitor.h.

90{0};

Referenced by kcenon::monitoring::health_monitor::update_stats().

◆ unhealthy_checks

size_t kcenon::monitoring::health_monitor_stats::unhealthy_checks {0}

Number of checks that returned unhealthy.

Definition at line 92 of file health_monitor.h.

92{0};

Referenced by kcenon::monitoring::health_monitor::update_stats().


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