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

Database connection health information. More...

#include <health_status.h>

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

Public Attributes

bool connected {false}
 Whether database connection is active.
 
std::optional< std::chrono::system_clock::time_point > last_connected
 Last successful connection timestamp.
 
std::uint32_t active_connections {0}
 Number of active database connections.
 
std::optional< std::chrono::milliseconds > response_time
 Database response time in milliseconds.
 
std::optional< std::string > error_message
 Error message if connection failed.
 

Detailed Description

Database connection health information.

Definition at line 69 of file health_status.h.

Member Data Documentation

◆ active_connections

std::uint32_t kcenon::pacs::monitoring::database_status::active_connections {0}

Number of active database connections.

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

Definition at line 77 of file health_status.h.

77{0};

◆ connected

bool kcenon::pacs::monitoring::database_status::connected {false}

Whether database connection is active.

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

Definition at line 71 of file health_status.h.

71{false};

Referenced by kcenon::pacs::monitoring::health_status::update_level().

◆ error_message

std::optional<std::string> kcenon::pacs::monitoring::database_status::error_message

Error message if connection failed.

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

Definition at line 83 of file health_status.h.

◆ last_connected

std::optional<std::chrono::system_clock::time_point> kcenon::pacs::monitoring::database_status::last_connected

Last successful connection timestamp.

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

Definition at line 74 of file health_status.h.

◆ response_time

std::optional<std::chrono::milliseconds> kcenon::pacs::monitoring::database_status::response_time

Database response time in milliseconds.

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

Definition at line 80 of file health_status.h.


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