Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestApi.h @ 3176:784bbb03fb54
new metrics: orthanc_rest_api_active_requests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 29 Jan 2019 18:07:41 +0100 |
parents | 574890d14c92 |
children | 962e5f00744b |
comparison
equal
deleted
inserted
replaced
3175:574890d14c92 | 3176:784bbb03fb54 |
---|---|
31 **/ | 31 **/ |
32 | 32 |
33 | 33 |
34 #pragma once | 34 #pragma once |
35 | 35 |
36 #include "../../Core/DicomParsing/DicomModification.h" | |
36 #include "../../Core/JobsEngine/SetOfCommandsJob.h" | 37 #include "../../Core/JobsEngine/SetOfCommandsJob.h" |
38 #include "../../Core/MetricsRegistry.h" | |
37 #include "../../Core/RestApi/RestApi.h" | 39 #include "../../Core/RestApi/RestApi.h" |
38 #include "../../Core/DicomParsing/DicomModification.h" | |
39 #include "../ServerEnumerations.h" | 40 #include "../ServerEnumerations.h" |
40 | 41 |
41 #include <set> | 42 #include <set> |
42 | 43 |
43 namespace Orthanc | 44 namespace Orthanc |
50 { | 51 { |
51 public: | 52 public: |
52 typedef std::set<std::string> SetOfStrings; | 53 typedef std::set<std::string> SetOfStrings; |
53 | 54 |
54 private: | 55 private: |
55 ServerContext& context_; | 56 ServerContext& context_; |
56 bool leaveBarrier_; | 57 bool leaveBarrier_; |
57 bool resetRequestReceived_; | 58 bool resetRequestReceived_; |
59 MetricsRegistry::SharedMetrics activeRequests_; | |
58 | 60 |
59 void RegisterSystem(); | 61 void RegisterSystem(); |
60 | 62 |
61 void RegisterChanges(); | 63 void RegisterChanges(); |
62 | 64 |