|
PACS System 0.1.0
PACS DICOM system library
|
Storage subsystem health information. More...
#include <health_status.h>

Public Member Functions | |
| double | usage_percent () const noexcept |
| Storage usage percentage (0-100) | |
Public Attributes | |
| bool | writable {false} |
| Whether storage is writable. | |
| bool | readable {false} |
| Whether storage is readable. | |
| std::uint64_t | total_bytes {0} |
| Total storage capacity in bytes. | |
| std::uint64_t | used_bytes {0} |
| Used storage space in bytes. | |
| std::uint64_t | available_bytes {0} |
| Available storage space in bytes. | |
| std::optional< std::string > | error_message |
| Error message if storage check failed. | |
Storage subsystem health information.
Definition at line 90 of file health_status.h.
|
inlinenodiscardnoexcept |
Storage usage percentage (0-100)
Definition at line 107 of file health_status.h.
References total_bytes, and used_bytes.
Referenced by kcenon::pacs::monitoring::health_status::update_level().

| std::uint64_t kcenon::pacs::monitoring::storage_status::available_bytes {0} |
| std::optional<std::string> kcenon::pacs::monitoring::storage_status::error_message |
Error message if storage check failed.
Definition at line 116 of file health_status.h.
| bool kcenon::pacs::monitoring::storage_status::readable {false} |
Whether storage is readable.
Definition at line 95 of file health_status.h.
Referenced by kcenon::pacs::monitoring::health_status::update_level().
| std::uint64_t kcenon::pacs::monitoring::storage_status::total_bytes {0} |
Total storage capacity in bytes.
Definition at line 98 of file health_status.h.
Referenced by usage_percent().
| std::uint64_t kcenon::pacs::monitoring::storage_status::used_bytes {0} |
Used storage space in bytes.
Definition at line 101 of file health_status.h.
Referenced by usage_percent().
| bool kcenon::pacs::monitoring::storage_status::writable {false} |
Whether storage is writable.
Definition at line 92 of file health_status.h.
Referenced by kcenon::pacs::monitoring::health_status::update_level().