|
PACS System 0.1.0
PACS DICOM system library
|
Collector for DICOM association lifecycle metrics. More...
#include <dicom_association_collector.h>

Public Member Functions | |
| dicom_association_collector (std::string ae_title="PACS_SCP") | |
| Default constructor. | |
| ~dicom_association_collector ()=default | |
| Destructor. | |
| dicom_association_collector (const dicom_association_collector &)=delete | |
| dicom_association_collector & | operator= (const dicom_association_collector &)=delete |
| dicom_association_collector (dicom_association_collector &&)=delete | |
| dicom_association_collector & | operator= (dicom_association_collector &&)=delete |
| bool | initialize (const std::unordered_map< std::string, std::string > &config) |
| Initialize the collector with configuration. | |
| std::vector< association_metric > | collect () |
| Collect current association metrics. | |
| std::string | get_name () const |
| Get the collector name. | |
| std::vector< std::string > | get_metric_types () const |
| Get supported metric types. | |
| bool | is_healthy () const |
| Check if the collector is healthy. | |
| std::unordered_map< std::string, double > | get_statistics () const |
| Get collector statistics. | |
| void | set_ae_title (std::string ae_title) |
| Set the AE title for metric labels. | |
| std::string | get_ae_title () const |
| Get the current AE title. | |
Private Member Functions | |
| association_metric | create_metric (const std::string &name, double value, const std::string &type) const |
Private Attributes | |
| std::string | ae_title_ |
| bool | initialized_ {false} |
| std::mutex | stats_mutex_ |
| std::uint64_t | collection_count_ {0} |
| std::chrono::steady_clock::time_point | init_time_ |
Collector for DICOM association lifecycle metrics.
This collector gathers metrics related to DICOM associations including:
Thread Safety: All public methods are thread-safe.
Definition at line 79 of file dicom_association_collector.h.
|
inlineexplicit |
Default constructor.
| ae_title | Optional AE title for labeling metrics |
Definition at line 181 of file dicom_association_collector.h.
|
default |
|
delete |
|
delete |
|
inlinenodiscard |
Collect current association metrics.
Definition at line 196 of file dicom_association_collector.h.
References kcenon::pacs::monitoring::pacs_metrics::associations(), collection_count_, create_metric(), kcenon::pacs::monitoring::pacs_metrics::global_metrics(), initialized_, and stats_mutex_.

|
inlinenodiscardprivate |
|
inlinenodiscard |
Get the current AE title.
Definition at line 296 of file dicom_association_collector.h.
References ae_title_.
|
inlinenodiscard |
Get supported metric types.
Definition at line 261 of file dicom_association_collector.h.
|
inlinenodiscard |
Get the collector name.
Definition at line 257 of file dicom_association_collector.h.
|
inlinenodiscard |
Get collector statistics.
Definition at line 277 of file dicom_association_collector.h.
References collection_count_, init_time_, initialized_, and stats_mutex_.
|
inlinenodiscard |
Initialize the collector with configuration.
| config | Configuration map (currently unused) |
Definition at line 184 of file dicom_association_collector.h.
References ae_title_, init_time_, and initialized_.
|
inlinenodiscard |
Check if the collector is healthy.
Definition at line 272 of file dicom_association_collector.h.
References initialized_.
|
delete |
|
delete |
|
inline |
Set the AE title for metric labels.
| ae_title | The Application Entity title |
Definition at line 292 of file dicom_association_collector.h.
References ae_title_.
|
private |
Definition at line 162 of file dicom_association_collector.h.
Referenced by create_metric(), get_ae_title(), initialize(), and set_ae_title().
|
private |
Definition at line 167 of file dicom_association_collector.h.
Referenced by collect(), and get_statistics().
|
private |
Definition at line 168 of file dicom_association_collector.h.
Referenced by get_statistics(), and initialize().
|
private |
Definition at line 163 of file dicom_association_collector.h.
Referenced by collect(), get_statistics(), initialize(), and is_healthy().
|
mutableprivate |
Definition at line 166 of file dicom_association_collector.h.
Referenced by collect(), and get_statistics().