File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed
src/DIRAC/MonitoringSystem Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -14,4 +14,18 @@ Services
14
14
}
15
15
}
16
16
# #END
17
+ # #BEGIN TornadoMonitoring
18
+ TornadoMonitoring
19
+ {
20
+ Protocol = https
21
+ Authorization
22
+ {
23
+ Default = authenticated
24
+ FileTransfer
25
+ {
26
+ Default = authenticated
27
+ }
28
+ }
29
+ }
30
+ # #END
17
31
}
Original file line number Diff line number Diff line change 25
25
from DIRAC .MonitoringSystem .private .MainReporter import MainReporter
26
26
27
27
28
- class MonitoringHandler ( RequestHandler ) :
28
+ class MonitoringHandlerMixin :
29
29
30
30
"""
31
31
.. class:: MonitoringHandler
@@ -377,3 +377,7 @@ def export_pingDB(self):
377
377
We can check, if the db is available.
378
378
"""
379
379
return self .__db .pingDB ()
380
+
381
+
382
+ class MonitoringHandler (MonitoringHandlerMixin , RequestHandler ):
383
+ pass
Original file line number Diff line number Diff line change
1
+ """ Tornado-based HTTPs Monitoring service.
2
+
3
+ .. literalinclude:: ../ConfigTemplate.cfg
4
+ :start-after: ##BEGIN TornadoMonitoring
5
+ :end-before: ##END
6
+ :dedent: 2
7
+ :caption: Monitoring options
8
+
9
+ """
10
+ from DIRAC import gLogger
11
+ from DIRAC .Core .Tornado .Server .TornadoService import TornadoService
12
+ from DIRAC .MonitoringSystem .Service .MonitoringHandler import MonitoringHandlerMixin
13
+
14
+
15
+ sLog = gLogger .getSubLogger (__name__ )
16
+
17
+
18
+ class TornadoMonitoringHandler (MonitoringHandlerMixin , TornadoService ):
19
+ log = sLog
You can’t perform that action at this time.
0 commit comments