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

Extended statistics for production PACS. More...

#include <production_pacs.h>

Collaboration diagram for kcenon::pacs::samples::production_statistics:
Collaboration graph

Public Member Functions

auto uptime () const -> std::chrono::seconds
 Get uptime duration.
 

Public Attributes

std::atomic< std::uint64_t > images_stored {0}
 Total images stored.
 
std::atomic< std::uint64_t > images_anonymized {0}
 Total images anonymized.
 
std::atomic< std::uint64_t > queries_executed {0}
 Total queries executed.
 
std::atomic< std::uint64_t > access_denied_count {0}
 Total access denied events.
 
std::atomic< std::uint64_t > rest_requests {0}
 Total REST API requests.
 
std::atomic< std::uint32_t > active_associations {0}
 Current active DICOM associations.
 
std::chrono::system_clock::time_point start_time
 Server uptime start.
 

Detailed Description

Extended statistics for production PACS.

Definition at line 101 of file production_pacs.h.

Member Function Documentation

◆ uptime()

auto kcenon::pacs::samples::production_statistics::uptime ( ) const -> std::chrono::seconds
inlinenodiscard

Get uptime duration.

Examples
/home/runner/work/pacs_system/pacs_system/examples/tutorials/05_production_pacs/production_pacs.h.

Definition at line 124 of file production_pacs.h.

124 {
125 return std::chrono::duration_cast<std::chrono::seconds>(
126 std::chrono::system_clock::now() - start_time);
127 }
std::chrono::system_clock::time_point start_time
Server uptime start.

References start_time.

Referenced by kcenon::pacs::samples::production_pacs::export_statistics(), and kcenon::pacs::samples::production_pacs::print_status().

Here is the caller graph for this function:

Member Data Documentation

◆ access_denied_count

std::atomic<std::uint64_t> kcenon::pacs::samples::production_statistics::access_denied_count {0}

◆ active_associations

std::atomic<std::uint32_t> kcenon::pacs::samples::production_statistics::active_associations {0}

◆ images_anonymized

std::atomic<std::uint64_t> kcenon::pacs::samples::production_statistics::images_anonymized {0}

◆ images_stored

std::atomic<std::uint64_t> kcenon::pacs::samples::production_statistics::images_stored {0}

◆ queries_executed

std::atomic<std::uint64_t> kcenon::pacs::samples::production_statistics::queries_executed {0}

◆ rest_requests

std::atomic<std::uint64_t> kcenon::pacs::samples::production_statistics::rest_requests {0}

◆ start_time

std::chrono::system_clock::time_point kcenon::pacs::samples::production_statistics::start_time

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