comparison OrthancServer/Sources/ServerContext.h @ 5111:7547c7dfd017

/tools/metrics-prometheus: added orthanc_last_change and orthanc_up_time_s
author Alain Mazy <am@osimis.io>
date Tue, 22 Nov 2022 18:01:23 +0100
parents d4e5ca0c9307
children c81f363d3aa3
comparison
equal deleted inserted replaced
5110:98da039474b1 5111:7547c7dfd017
33 #include "../../OrthancFramework/Sources/DicomParsing/IDicomTranscoder.h" 33 #include "../../OrthancFramework/Sources/DicomParsing/IDicomTranscoder.h"
34 #include "../../OrthancFramework/Sources/DicomParsing/ParsedDicomCache.h" 34 #include "../../OrthancFramework/Sources/DicomParsing/ParsedDicomCache.h"
35 #include "../../OrthancFramework/Sources/FileStorage/StorageCache.h" 35 #include "../../OrthancFramework/Sources/FileStorage/StorageCache.h"
36 #include "../../OrthancFramework/Sources/MultiThreading/Semaphore.h" 36 #include "../../OrthancFramework/Sources/MultiThreading/Semaphore.h"
37 37
38 #include <boost/date_time/posix_time/posix_time.hpp>
38 39
39 namespace Orthanc 40 namespace Orthanc
40 { 41 {
41 class DicomInstanceToStore; 42 class DicomInstanceToStore;
42 class IStorageArea; 43 class IStorageArea;
274 // "rules engine" when de-identifying logs for C-Find, C-Get, and 275 // "rules engine" when de-identifying logs for C-Find, C-Get, and
275 // C-Move queries (new in Orthanc 1.8.2) 276 // C-Move queries (new in Orthanc 1.8.2)
276 DicomModification logsDeidentifierRules_; 277 DicomModification logsDeidentifierRules_;
277 bool deidentifyLogs_; 278 bool deidentifyLogs_;
278 279
280 boost::posix_time::ptime serverStartTimeUtc_;
281
279 public: 282 public:
280 class DicomCacheLocker : public boost::noncopyable 283 class DicomCacheLocker : public boost::noncopyable
281 { 284 {
282 private: 285 private:
283 ServerContext& context_; 286 ServerContext& context_;
570 573
571 FindStorageAccessMode GetFindStorageAccessMode() const 574 FindStorageAccessMode GetFindStorageAccessMode() const
572 { 575 {
573 return findStorageAccessMode_; 576 return findStorageAccessMode_;
574 } 577 }
578
579 int64_t GetServerUpTime() const;
575 }; 580 };
576 } 581 }