diff 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
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.h	Tue Nov 22 16:30:50 2022 +0100
+++ b/OrthancServer/Sources/ServerContext.h	Tue Nov 22 18:01:23 2022 +0100
@@ -35,6 +35,7 @@
 #include "../../OrthancFramework/Sources/FileStorage/StorageCache.h"
 #include "../../OrthancFramework/Sources/MultiThreading/Semaphore.h"
 
+#include <boost/date_time/posix_time/posix_time.hpp>
 
 namespace Orthanc
 {
@@ -276,6 +277,8 @@
     DicomModification logsDeidentifierRules_;
     bool              deidentifyLogs_;
 
+    boost::posix_time::ptime serverStartTimeUtc_;
+
   public:
     class DicomCacheLocker : public boost::noncopyable
     {
@@ -572,5 +575,7 @@
     {
       return findStorageAccessMode_;
     }
+
+    int64_t GetServerUpTime() const;
   };
 }