PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::monitoring::health_checker_config Struct Reference

Configuration options for the health checker. More...

#include <health_checker.h>

Collaboration diagram for kcenon::pacs::monitoring::health_checker_config:
Collaboration graph

Public Attributes

std::chrono::seconds check_interval {30}
 Interval between automatic health checks.
 
std::chrono::milliseconds database_timeout {5000}
 Timeout for database connectivity test.
 
std::chrono::milliseconds storage_timeout {5000}
 Timeout for storage write test.
 
double storage_warning_threshold {80.0}
 Storage usage threshold for degraded status (percentage)
 
double storage_critical_threshold {95.0}
 Storage usage threshold for unhealthy status (percentage)
 
std::chrono::seconds cache_duration {5}
 Cache health check results for this duration.
 
bool background_checks_enabled {false}
 Enable background health checking.
 

Detailed Description

Configuration options for the health checker.

Definition at line 44 of file health_checker.h.

Member Data Documentation

◆ background_checks_enabled

bool kcenon::pacs::monitoring::health_checker_config::background_checks_enabled {false}

Enable background health checking.

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/monitoring/health_checker.h.

Definition at line 64 of file health_checker.h.

64{false};

◆ cache_duration

std::chrono::seconds kcenon::pacs::monitoring::health_checker_config::cache_duration {5}

Cache health check results for this duration.

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/monitoring/health_checker.h.

Definition at line 61 of file health_checker.h.

61{5};

Referenced by kcenon::pacs::monitoring::health_checker::get_status().

◆ check_interval

std::chrono::seconds kcenon::pacs::monitoring::health_checker_config::check_interval {30}

Interval between automatic health checks.

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/monitoring/health_checker.h.

Definition at line 46 of file health_checker.h.

46{30};

◆ database_timeout

std::chrono::milliseconds kcenon::pacs::monitoring::health_checker_config::database_timeout {5000}

◆ storage_critical_threshold

double kcenon::pacs::monitoring::health_checker_config::storage_critical_threshold {95.0}

Storage usage threshold for unhealthy status (percentage)

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/monitoring/health_checker.h.

Definition at line 58 of file health_checker.h.

58{95.0};

Referenced by kcenon::pacs::monitoring::health_checker::check_storage().

◆ storage_timeout

std::chrono::milliseconds kcenon::pacs::monitoring::health_checker_config::storage_timeout {5000}

Timeout for storage write test.

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/monitoring/health_checker.h.

Definition at line 52 of file health_checker.h.

52{5000};

◆ storage_warning_threshold

double kcenon::pacs::monitoring::health_checker_config::storage_warning_threshold {80.0}

Storage usage threshold for degraded status (percentage)

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/monitoring/health_checker.h.

Definition at line 55 of file health_checker.h.

55{80.0};

Referenced by kcenon::pacs::monitoring::health_checker::check_storage().


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