reqmon 2.3.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. Utils/CPMetrics.py +270 -0
  2. Utils/CertTools.py +62 -0
  3. Utils/EmailAlert.py +50 -0
  4. Utils/ExtendedUnitTestCase.py +62 -0
  5. Utils/FileTools.py +182 -0
  6. Utils/IteratorTools.py +80 -0
  7. Utils/MathUtils.py +31 -0
  8. Utils/MemoryCache.py +119 -0
  9. Utils/Patterns.py +24 -0
  10. Utils/Pipeline.py +137 -0
  11. Utils/PortForward.py +97 -0
  12. Utils/ProcessStats.py +103 -0
  13. Utils/PythonVersion.py +17 -0
  14. Utils/Signals.py +36 -0
  15. Utils/TemporaryEnvironment.py +27 -0
  16. Utils/Throttled.py +227 -0
  17. Utils/Timers.py +130 -0
  18. Utils/Timestamps.py +86 -0
  19. Utils/TokenManager.py +143 -0
  20. Utils/Tracing.py +60 -0
  21. Utils/TwPrint.py +98 -0
  22. Utils/Utilities.py +308 -0
  23. Utils/__init__.py +11 -0
  24. WMCore/Algorithms/Permissions.py +27 -0
  25. WMCore/Algorithms/__init__.py +7 -0
  26. WMCore/Cache/GenericDataCache.py +98 -0
  27. WMCore/Cache/WMConfigCache.py +572 -0
  28. WMCore/Cache/__init__.py +0 -0
  29. WMCore/Configuration.py +651 -0
  30. WMCore/DataStructs/File.py +177 -0
  31. WMCore/DataStructs/Fileset.py +140 -0
  32. WMCore/DataStructs/Job.py +182 -0
  33. WMCore/DataStructs/JobGroup.py +142 -0
  34. WMCore/DataStructs/JobPackage.py +49 -0
  35. WMCore/DataStructs/LumiList.py +734 -0
  36. WMCore/DataStructs/Mask.py +219 -0
  37. WMCore/DataStructs/Pickleable.py +24 -0
  38. WMCore/DataStructs/Run.py +256 -0
  39. WMCore/DataStructs/Subscription.py +175 -0
  40. WMCore/DataStructs/WMObject.py +47 -0
  41. WMCore/DataStructs/WorkUnit.py +112 -0
  42. WMCore/DataStructs/Workflow.py +60 -0
  43. WMCore/DataStructs/__init__.py +8 -0
  44. WMCore/Database/CMSCouch.py +1349 -0
  45. WMCore/Database/CouchUtils.py +118 -0
  46. WMCore/Database/__init__.py +9 -0
  47. WMCore/Lexicon.py +836 -0
  48. WMCore/REST/Auth.py +202 -0
  49. WMCore/REST/CherryPyPeriodicTask.py +166 -0
  50. WMCore/REST/Error.py +333 -0
  51. WMCore/REST/Format.py +642 -0
  52. WMCore/REST/HeartbeatMonitorBase.py +90 -0
  53. WMCore/REST/Main.py +623 -0
  54. WMCore/REST/Server.py +2435 -0
  55. WMCore/REST/Services.py +24 -0
  56. WMCore/REST/Test.py +120 -0
  57. WMCore/REST/Tools.py +38 -0
  58. WMCore/REST/Validation.py +250 -0
  59. WMCore/REST/__init__.py +1 -0
  60. WMCore/ReqMgr/DataStructs/AuthzByStatus.py +113 -0
  61. WMCore/ReqMgr/DataStructs/DefaultConfig/CAMPAIGN_CONFIG.py +116 -0
  62. WMCore/ReqMgr/DataStructs/DefaultConfig/DAS_RESULT_FILTER.py +3 -0
  63. WMCore/ReqMgr/DataStructs/DefaultConfig/EDITABLE_SPLITTING_PARAM_CONFIG.py +42 -0
  64. WMCore/ReqMgr/DataStructs/DefaultConfig/UNIFIED_CONFIG.py +240 -0
  65. WMCore/ReqMgr/DataStructs/DefaultConfig/__init__.py +0 -0
  66. WMCore/ReqMgr/DataStructs/ReqMgrConfigDataCache.py +65 -0
  67. WMCore/ReqMgr/DataStructs/Request.py +293 -0
  68. WMCore/ReqMgr/DataStructs/RequestError.py +21 -0
  69. WMCore/ReqMgr/DataStructs/RequestStatus.py +209 -0
  70. WMCore/ReqMgr/DataStructs/RequestType.py +13 -0
  71. WMCore/ReqMgr/DataStructs/__init__.py +0 -0
  72. WMCore/ReqMgr/__init__.py +1 -0
  73. WMCore/Services/AlertManager/AlertManagerAPI.py +111 -0
  74. WMCore/Services/AlertManager/__init__.py +0 -0
  75. WMCore/Services/CRIC/CRIC.py +238 -0
  76. WMCore/Services/CRIC/__init__.py +0 -0
  77. WMCore/Services/DBS/DBS3Reader.py +1044 -0
  78. WMCore/Services/DBS/DBSConcurrency.py +44 -0
  79. WMCore/Services/DBS/DBSErrors.py +113 -0
  80. WMCore/Services/DBS/DBSReader.py +23 -0
  81. WMCore/Services/DBS/DBSUtils.py +139 -0
  82. WMCore/Services/DBS/DBSWriterObjects.py +381 -0
  83. WMCore/Services/DBS/ProdException.py +133 -0
  84. WMCore/Services/DBS/__init__.py +8 -0
  85. WMCore/Services/FWJRDB/FWJRDBAPI.py +118 -0
  86. WMCore/Services/FWJRDB/__init__.py +0 -0
  87. WMCore/Services/HTTPS/HTTPSAuthHandler.py +66 -0
  88. WMCore/Services/HTTPS/__init__.py +0 -0
  89. WMCore/Services/LogDB/LogDB.py +201 -0
  90. WMCore/Services/LogDB/LogDBBackend.py +191 -0
  91. WMCore/Services/LogDB/LogDBExceptions.py +11 -0
  92. WMCore/Services/LogDB/LogDBReport.py +85 -0
  93. WMCore/Services/LogDB/__init__.py +0 -0
  94. WMCore/Services/MSPileup/__init__.py +0 -0
  95. WMCore/Services/MSUtils/MSUtils.py +54 -0
  96. WMCore/Services/MSUtils/__init__.py +0 -0
  97. WMCore/Services/McM/McM.py +173 -0
  98. WMCore/Services/McM/__init__.py +8 -0
  99. WMCore/Services/MonIT/Grafana.py +133 -0
  100. WMCore/Services/MonIT/__init__.py +0 -0
  101. WMCore/Services/PyCondor/PyCondorAPI.py +154 -0
  102. WMCore/Services/PyCondor/PyCondorUtils.py +105 -0
  103. WMCore/Services/PyCondor/__init__.py +0 -0
  104. WMCore/Services/ReqMgr/ReqMgr.py +261 -0
  105. WMCore/Services/ReqMgr/__init__.py +0 -0
  106. WMCore/Services/ReqMgrAux/ReqMgrAux.py +419 -0
  107. WMCore/Services/ReqMgrAux/__init__.py +0 -0
  108. WMCore/Services/RequestDB/RequestDBReader.py +267 -0
  109. WMCore/Services/RequestDB/RequestDBWriter.py +39 -0
  110. WMCore/Services/RequestDB/__init__.py +0 -0
  111. WMCore/Services/Requests.py +624 -0
  112. WMCore/Services/Rucio/Rucio.py +1287 -0
  113. WMCore/Services/Rucio/RucioUtils.py +74 -0
  114. WMCore/Services/Rucio/__init__.py +0 -0
  115. WMCore/Services/RucioConMon/RucioConMon.py +128 -0
  116. WMCore/Services/RucioConMon/__init__.py +0 -0
  117. WMCore/Services/Service.py +400 -0
  118. WMCore/Services/StompAMQ/__init__.py +0 -0
  119. WMCore/Services/TagCollector/TagCollector.py +155 -0
  120. WMCore/Services/TagCollector/XMLUtils.py +98 -0
  121. WMCore/Services/TagCollector/__init__.py +0 -0
  122. WMCore/Services/UUIDLib.py +13 -0
  123. WMCore/Services/UserFileCache/UserFileCache.py +160 -0
  124. WMCore/Services/UserFileCache/__init__.py +8 -0
  125. WMCore/Services/WMAgent/WMAgent.py +63 -0
  126. WMCore/Services/WMAgent/__init__.py +0 -0
  127. WMCore/Services/WMArchive/CMSSWMetrics.py +526 -0
  128. WMCore/Services/WMArchive/DataMap.py +463 -0
  129. WMCore/Services/WMArchive/WMArchive.py +33 -0
  130. WMCore/Services/WMArchive/__init__.py +0 -0
  131. WMCore/Services/WMBS/WMBS.py +97 -0
  132. WMCore/Services/WMBS/__init__.py +0 -0
  133. WMCore/Services/WMStats/DataStruct/RequestInfoCollection.py +300 -0
  134. WMCore/Services/WMStats/DataStruct/__init__.py +0 -0
  135. WMCore/Services/WMStats/WMStatsPycurl.py +145 -0
  136. WMCore/Services/WMStats/WMStatsReader.py +445 -0
  137. WMCore/Services/WMStats/WMStatsWriter.py +273 -0
  138. WMCore/Services/WMStats/__init__.py +0 -0
  139. WMCore/Services/WMStatsServer/WMStatsServer.py +134 -0
  140. WMCore/Services/WMStatsServer/__init__.py +0 -0
  141. WMCore/Services/WorkQueue/WorkQueue.py +492 -0
  142. WMCore/Services/WorkQueue/__init__.py +0 -0
  143. WMCore/Services/__init__.py +8 -0
  144. WMCore/Services/pycurl_manager.py +574 -0
  145. WMCore/WMBase.py +50 -0
  146. WMCore/WMException.py +183 -0
  147. WMCore/WMExceptions.py +269 -0
  148. WMCore/WMFactory.py +76 -0
  149. WMCore/WMLogging.py +108 -0
  150. WMCore/WMStats/CherryPyThreads/CleanUpTask.py +46 -0
  151. WMCore/WMStats/CherryPyThreads/DataCacheUpdate.py +45 -0
  152. WMCore/WMStats/CherryPyThreads/HeartbeatMonitor.py +6 -0
  153. WMCore/WMStats/CherryPyThreads/LogDBTasks.py +29 -0
  154. WMCore/WMStats/CherryPyThreads/__init__.py +0 -0
  155. WMCore/WMStats/DataStructs/DataCache.py +92 -0
  156. WMCore/WMStats/DataStructs/__init__.py +0 -0
  157. WMCore/WMStats/Service/ActiveRequestJobInfo.py +123 -0
  158. WMCore/WMStats/Service/MetaDataInfo.py +26 -0
  159. WMCore/WMStats/Service/RequestInfo.py +127 -0
  160. WMCore/WMStats/Service/RestApiHub.py +51 -0
  161. WMCore/WMStats/Service/__init__.py +0 -0
  162. WMCore/WMStats/T0/CherryPyThreads/T0DataCacheUpdate.py +35 -0
  163. WMCore/WMStats/T0/CherryPyThreads/__init__.py +0 -0
  164. WMCore/WMStats/T0/Service/T0RestApiHub.py +37 -0
  165. WMCore/WMStats/T0/Service/__init__.py +0 -0
  166. WMCore/WMStats/T0/__init__.py +0 -0
  167. WMCore/WMStats/WebGui/FrontPage.py +59 -0
  168. WMCore/WMStats/WebGui/__init__.py +0 -0
  169. WMCore/WMStats/__init__.py +1 -0
  170. WMCore/Wrappers/JsonWrapper/JSONThunker.py +342 -0
  171. WMCore/Wrappers/JsonWrapper/__init__.py +7 -0
  172. WMCore/Wrappers/__init__.py +6 -0
  173. WMCore/__init__.py +10 -0
  174. reqmon-2.3.10.data/data/bin/wmc-dist-patch +15 -0
  175. reqmon-2.3.10.data/data/bin/wmc-dist-unpatch +8 -0
  176. reqmon-2.3.10.data/data/bin/wmc-httpd +3 -0
  177. reqmon-2.3.10.data/data/data/couchapps/LogDB/_id +1 -0
  178. reqmon-2.3.10.data/data/data/couchapps/LogDB/couchapp.json +5 -0
  179. reqmon-2.3.10.data/data/data/couchapps/LogDB/filters/filterDeletedDocs.js +3 -0
  180. reqmon-2.3.10.data/data/data/couchapps/LogDB/language +1 -0
  181. reqmon-2.3.10.data/data/data/couchapps/LogDB/validate_doc_update.js +6 -0
  182. reqmon-2.3.10.data/data/data/couchapps/LogDB/views/logByRequest/map.js +9 -0
  183. reqmon-2.3.10.data/data/data/couchapps/LogDB/views/logByRequestAndThread/map.js +3 -0
  184. reqmon-2.3.10.data/data/data/couchapps/LogDB/views/requests/map.js +5 -0
  185. reqmon-2.3.10.data/data/data/couchapps/LogDB/views/requests/reduce.js +1 -0
  186. reqmon-2.3.10.data/data/data/couchapps/LogDB/views/tstamp/map.js +7 -0
  187. reqmon-2.3.10.data/data/data/couchapps/T0Request/_id +1 -0
  188. reqmon-2.3.10.data/data/data/couchapps/T0Request/couchapp.json +5 -0
  189. reqmon-2.3.10.data/data/data/couchapps/T0Request/filters/repfilter.js +3 -0
  190. reqmon-2.3.10.data/data/data/couchapps/T0Request/language +1 -0
  191. reqmon-2.3.10.data/data/data/couchapps/T0Request/updates/updaterequest.js +79 -0
  192. reqmon-2.3.10.data/data/data/couchapps/T0Request/validate_doc_update.js +6 -0
  193. reqmon-2.3.10.data/data/data/couchapps/T0Request/views/byrequest/map.js +3 -0
  194. reqmon-2.3.10.data/data/data/couchapps/T0Request/views/bystatus/map.js +7 -0
  195. reqmon-2.3.10.data/data/data/couchapps/T0Request/views/bystatusandtime/map.js +7 -0
  196. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/ColVis.css +76 -0
  197. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/font-awesome.min.css +4 -0
  198. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-check-16.png +0 -0
  199. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-cross-16.png +0 -0
  200. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-plus-16.png +0 -0
  201. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-square-check-16.png +0 -0
  202. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/cms_logo.gif +0 -0
  203. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/cms_logo.jpeg +0 -0
  204. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  205. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
  206. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
  207. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  208. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
  209. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  210. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  211. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_highlight-hard_55_5c9ccc_1x100.png +0 -0
  212. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  213. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_inset-soft_100_fcfdfd_1x100.png +0 -0
  214. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_217bc0_256x240.png +0 -0
  215. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_2694e8_256x240.png +0 -0
  216. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_2e83ff_256x240.png +0 -0
  217. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_469bdd_256x240.png +0 -0
  218. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_6da8d5_256x240.png +0 -0
  219. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_cd0a0a_256x240.png +0 -0
  220. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_d8e7f3_256x240.png +0 -0
  221. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_f9bd01_256x240.png +0 -0
  222. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/warning-16.png +0 -0
  223. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/jquery-ui-1.12.0.css +1312 -0
  224. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/jquery.dataTables.css +241 -0
  225. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/logdb.css +60 -0
  226. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/main_layout.css +565 -0
  227. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/FontAwesome.otf +0 -0
  228. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.eot +0 -0
  229. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.svg +565 -0
  230. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.ttf +0 -0
  231. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.woff +0 -0
  232. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.woff2 +0 -0
  233. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/Sorting icons.psd +0 -0
  234. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/back_disabled.jpg +0 -0
  235. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/back_enabled.jpg +0 -0
  236. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/error.png +0 -0
  237. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/favicon.ico +0 -0
  238. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/forward_disabled.jpg +0 -0
  239. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/forward_enabled.jpg +0 -0
  240. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/loader-1.gif +0 -0
  241. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/module.caption.backg.png +0 -0
  242. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/module.caption.backg.rolledup.png +0 -0
  243. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/rollup.gif +0 -0
  244. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_asc.png +0 -0
  245. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_asc_disabled.png +0 -0
  246. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_both.png +0 -0
  247. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_desc.png +0 -0
  248. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_desc_disabled.png +0 -0
  249. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/stable.png +0 -0
  250. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/warning.png +0 -0
  251. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html +105 -0
  252. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html.min +106 -0
  253. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html.org +125 -0
  254. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.ActiveRequestController.js +61 -0
  255. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.GenericController.js +38 -0
  256. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.WorkloadSummaryController.js +12 -0
  257. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/import.js +6 -0
  258. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T0/WMStats.RequestSummary.js +71 -0
  259. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T0/WMStats.RunSummary.js +70 -0
  260. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.AgentRequestSummary.js +28 -0
  261. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.CMSSWSummary.js +28 -0
  262. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.CampaignSummary.js +28 -0
  263. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.ReqMgrRequest.js +10 -0
  264. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.RequestSummary.js +190 -0
  265. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Agents.js +98 -0
  266. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Alerts.js +21 -0
  267. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Campaigns.js +25 -0
  268. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.GenericRequests.js +728 -0
  269. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.History.js +78 -0
  270. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.JobDetails.js +19 -0
  271. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.JobSummary.js +32 -0
  272. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.LogDBData.js +93 -0
  273. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.LogMessage.js +38 -0
  274. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.SiteSummary.js +24 -0
  275. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Sites.js +25 -0
  276. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Tasks.js +107 -0
  277. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.WorkloadSummary.js +20 -0
  278. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats._StructBase.js +37 -0
  279. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/import.js +29 -0
  280. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.ActiveRequestModel.js +9 -0
  281. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestLogDetailModel.js +17 -0
  282. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestLogModel.js +14 -0
  283. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestModel.js +3 -0
  284. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestSearchModel.js +8 -0
  285. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.ActiveRequestModel.js +9 -0
  286. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.ReqMgrRequestModel.js +8 -0
  287. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestLogDetailModel.js +18 -0
  288. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestLogModel.js +14 -0
  289. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestSearchModel.js +8 -0
  290. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.AgentModel.js +3 -0
  291. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.AlertModel.js +6 -0
  292. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.HistoryModel.js +14 -0
  293. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.JobDetailModel.js +22 -0
  294. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.JobSummaryModel.js +18 -0
  295. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.WorkloadSummaryModel.js +8 -0
  296. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._AjaxModelBase.js +55 -0
  297. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._ModelBase.js +77 -0
  298. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._RequestModelBase.js +127 -0
  299. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/import.js +26 -0
  300. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/ViewModels/WMStats.ViewModel.js +511 -0
  301. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/ViewModels/import.js +2 -0
  302. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/T0/WMStats.Controls.js +117 -0
  303. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/T1/WMStats.Controls.js +158 -0
  304. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/WMStats.CommonControls.js +100 -0
  305. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/import.js +10 -0
  306. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Graphs/WMStats.SiteHistoryGraph.js +8 -0
  307. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Graphs/import.js +3 -0
  308. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.CategoryDetailList.js +38 -0
  309. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestAlertGUI.js +128 -0
  310. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestDataList.js +25 -0
  311. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestDetailList.js +68 -0
  312. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestSummaryList.js +31 -0
  313. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.CategoryDetailList.js +54 -0
  314. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestAlertGUI.js +81 -0
  315. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestDataList.js +26 -0
  316. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestDetailList.js +122 -0
  317. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestSummaryList.js +35 -0
  318. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.ResubmissionList.js +64 -0
  319. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.AgentDetailList.js +137 -0
  320. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.CategoryTitle.js +20 -0
  321. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.HTMLList.js +12 -0
  322. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.JobDetailList.js +178 -0
  323. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.RequestLogList.js +88 -0
  324. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.RequestTitle.js +33 -0
  325. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/import.js +25 -0
  326. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.ActiveRequestTable.js +142 -0
  327. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.RunSummaryTable.js +77 -0
  328. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.TaskSummaryTable.js +127 -0
  329. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/addCategoryMap.js +10 -0
  330. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.ActiveRequestTable.js +132 -0
  331. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.ActiveRequestTableWithJob.js +164 -0
  332. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.AgentRequestSummaryTable.js +78 -0
  333. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.CMSSWSummaryTable.js +76 -0
  334. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.CampaignSummaryTable.js +76 -0
  335. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.SiteSummaryTable.js +63 -0
  336. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.TaskSummaryTable.js +124 -0
  337. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/addCategoryMap.js +17 -0
  338. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.JobSummaryTable.js +71 -0
  339. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.Table.js +70 -0
  340. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.TableController.js +130 -0
  341. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.WorkloadSummaryTable.js +62 -0
  342. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/import.js +26 -0
  343. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/WMStats.CategoryMap.js +45 -0
  344. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/WMStats.View.IndexHTML.js +137 -0
  345. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/import.js +3 -0
  346. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Ajax.js +74 -0
  347. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Couch.js +83 -0
  348. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Globals.js +200 -0
  349. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Utils.js +283 -0
  350. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/import-all.min.js +7 -0
  351. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/loader.js +27 -0
  352. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/global.min.js +639 -0
  353. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/import-all-t0.min.js +4317 -0
  354. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/import-all-t1.min.js +4972 -0
  355. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/lib/jquery.dataTables.columnFilter.js +732 -0
  356. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/lib/namespace.js +23 -0
  357. reqmon-2.3.10.data/data/data/couchapps/WMStats/filters/deleteFatDocFilter.js +3 -0
  358. reqmon-2.3.10.data/data/data/couchapps/WMStats/filters/filterDeletedDocs.js +3 -0
  359. reqmon-2.3.10.data/data/data/couchapps/WMStats/filters/repfilter.js +7 -0
  360. reqmon-2.3.10.data/data/data/couchapps/WMStats/rewrites.json +110 -0
  361. reqmon-2.3.10.data/data/data/couchapps/WMStats/shows/redirect.js +23 -0
  362. reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/agentInfo.js +17 -0
  363. reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/generalFields.js +11 -0
  364. reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/insertRequest.js +13 -0
  365. reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/jobLogArchiveLocation.js +10 -0
  366. reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/jobStateTransition.js +17 -0
  367. reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/jobSummaryState.js +5 -0
  368. reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/totalStats.js +39 -0
  369. reqmon-2.3.10.data/data/data/couchapps/WMStats/validate_doc_update.js +10 -0
  370. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl/language +1 -0
  371. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl/views/requestAgentUrl/map.erl +11 -0
  372. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl/views/requestAgentUrl/reduce.erl +1 -0
  373. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl1/language +1 -0
  374. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl1/views/byAgentURL/map.erl +11 -0
  375. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl2/language +1 -0
  376. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl2/views/allWorkflows/map.erl +10 -0
  377. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl2/views/allWorkflows/reduce.erl +1 -0
  378. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl3/language +1 -0
  379. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl3/views/jobsByStatusWorkflow/map.erl +32 -0
  380. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl3/views/jobsByStatusWorkflow/reduce.erl +1 -0
  381. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl4/language +1 -0
  382. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl4/views/cooledoffRequests/map.erl +16 -0
  383. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl4/views/cooledoffRequests/reduce.erl +1 -0
  384. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl5/language +1 -0
  385. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl5/views/time/map.erl +11 -0
  386. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl6/language +1 -0
  387. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl6/views/requestHistory/map.erl +11 -0
  388. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl6/views/requestHistory/reduce.erl +1 -0
  389. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl7/language +1 -0
  390. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl7/views/agentInfo/map.erl +10 -0
  391. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl7/views/latestRequest/map.erl +11 -0
  392. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/index.html +44 -0
  393. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/js/container/histogram.js +141 -0
  394. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/js/container/tree.js +67 -0
  395. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/js/dataMap/errorData.js +69 -0
  396. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/js/htmlFormatter/listFormatter.js +79 -0
  397. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/js/layout/gridLayout.js +77 -0
  398. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/performanceHistogram.html +46 -0
  399. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/style/main.css +17 -0
  400. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/couchapp.json +4 -0
  401. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/filters/repfilter.js +3 -0
  402. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/lib/mustache.js +333 -0
  403. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/lib/validate.js +29 -0
  404. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/lists/completedWorkflows.js +27 -0
  405. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/lists/performanceHistogram.js +15 -0
  406. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/rewrites.json +65 -0
  407. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/shows/histogramByWorkflow.js +75 -0
  408. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/shows/lumiMissingByWorkflow.js +97 -0
  409. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/templates/histogramByWorkflow.html +126 -0
  410. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/templates/performanceData.html +44 -0
  411. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/updates/updateacdc.js +6 -0
  412. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/updates/updatecollection.js +5 -0
  413. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/validate_doc_update.js +8 -0
  414. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/vendor/protovis/_attachments/protovis-r3.2.js +277 -0
  415. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/views/outputDataByPrimDs/map.js +21 -0
  416. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/views/performanceDataByCampaign/map.js +19 -0
  417. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/views/summaryByInputdataset/map.js +7 -0
  418. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/views/summaryByOutputdataset/map.js +7 -0
  419. reqmon-2.3.10.dist-info/LICENSE +202 -0
  420. reqmon-2.3.10.dist-info/METADATA +24 -0
  421. reqmon-2.3.10.dist-info/NOTICE +16 -0
  422. reqmon-2.3.10.dist-info/RECORD +424 -0
  423. reqmon-2.3.10.dist-info/WHEEL +5 -0
  424. reqmon-2.3.10.dist-info/top_level.txt +2 -0
@@ -0,0 +1,81 @@
1
+ WMStats.namespace("RequestAlertGUI");
2
+
3
+ WMStats.RequestAlertGUI = function (requestData, containerDiv) {
4
+
5
+ function displayAlert(errorArray, title) {
6
+ if (errorArray.length > 0) {
7
+ htmlList += '<fieldset><legend>' + title + '</legend> <div><ul>';
8
+
9
+ for (var i in errorArray) {
10
+ var workflow = errorArray[i].getName();
11
+ var summary = errorArray[i].getSummary();
12
+ var running = summary.getRunning();
13
+ var pending = summary.getPending();
14
+ var cooloff = summary.getTotalCooloff();
15
+ var failure =summary.getTotalFailure();
16
+ var success = summary.getJobStatus("success");
17
+ var lastState = errorArray[i].getLastStateAndTime();
18
+ var lastStatus = "N/A";
19
+ var lastUpdate = "N/A";
20
+ if (lastState !== null) {
21
+ lastStatus = lastState.status;
22
+ lastUpdate = WMStats.Utils.utcClock(new Date(lastState.update_time * 1000));
23
+ }
24
+ htmlList += ('<li> <a class="requestAlert">' + workflow + "</a>: status:" +
25
+ lastStatus + " (" + lastUpdate + "), cooloff " + cooloff +
26
+ " failure:" + failure + " success:" + success +
27
+ " running:" + running + " pending:" + pending + '</li>');
28
+ }
29
+ htmlList += "</ul></div></fieldset>";
30
+
31
+ errorFlag = true;
32
+ };
33
+ };
34
+
35
+ var alertRequests = requestData.getRequestAlerts();
36
+ var notPulledRequests = requestData.requestNotPulledAlert();
37
+ var configError = alertRequests.configError;
38
+ var siteError = alertRequests.siteError;
39
+ var failed = alertRequests.failed;
40
+ var assignedStall = notPulledRequests.assignedStall;
41
+ //var statusStall = notPulledRequests.statusStall;
42
+ var errorFlag = false;
43
+ var numError = (configError.length + siteError.length + failed.length +
44
+ assignedStall.length);
45
+ var htmlList = "";
46
+
47
+ displayAlert(failed, "failed");
48
+ displayAlert(assignedStall, "assigned > 2h");
49
+ //displayAlert(statusStall, "stautus stall > 2 days");
50
+ displayAlert(configError, "Config Error");
51
+ displayAlert(siteError, "Site Error");
52
+
53
+
54
+ $(containerDiv).addClass("request_error_box");
55
+ if (errorFlag) {
56
+ $(containerDiv).removeClass("stable warning").addClass("error").html(htmlList);
57
+ } else {
58
+ $(containerDiv).removeClass("warning error").addClass("stable").html("request alarm");
59
+ }
60
+ };
61
+
62
+ // controller for request alert view
63
+ (function() {
64
+
65
+ var vm = WMStats.ViewModel;
66
+ vm.RequestAlertPage.subscribe("data", function(){
67
+ var divSelector = vm.RequestAlertPage.id() + " div.summary_data";
68
+ WMStats.RequestAlertGUI(vm.RequestAlertPage.data(), divSelector);
69
+ });
70
+
71
+ $(document).on('click', 'a.requestAlert', function() {
72
+ var workflow = $(this).text();
73
+
74
+ vm.JobView.requestName(workflow);
75
+ //TODO: this cause calling one more time for retrieving data
76
+ vm.ActiveRequestPage.view(vm.JobView);
77
+ vm.page(vm.ActiveRequestPage);
78
+
79
+ $(this).addClass('reviewed');
80
+ });
81
+ })();
@@ -0,0 +1,26 @@
1
+ WMStats.namespace('RequestDataList');
2
+ (function() {
3
+ var format = function (summary) {
4
+ var summaryStruct = summary.summaryStruct;
5
+ var htmlstr = "";
6
+ htmlstr += "<div class='requestSummaryBox'>";
7
+ htmlstr += "<ul>";
8
+ htmlstr += "<li> requests: " + summary.summaryStruct.length + "</li>";
9
+ htmlstr += "<li> total events: " + summary.summaryStruct.totalEvents + "</li>";
10
+ htmlstr += "<li> processed events: " + summary.summaryStruct.processedEvents + "</li>";
11
+ htmlstr += "<li> created: " + summary.getWMBSTotalJobs() + "</li>";
12
+ htmlstr += "<li> cooloff: " + summary.getTotalCooloff() + "</li>";
13
+ htmlstr += "<li> success: " + summary.getJobStatus('success') + "</li>";
14
+ htmlstr += "<li> failure: " + summary.getTotalFailure() + "</li>";
15
+ htmlstr += "<li> queued: " + summary.getTotalQueued() + "</li>";
16
+ htmlstr += "<li> running: " + summary.getJobStatus('submitted.running') + "</li>";
17
+ htmlstr += "<li> pending: " + summary.getJobStatus('submitted.pending') + "</li>";
18
+ htmlstr += "</ul>";
19
+ htmlstr += "</div>";
20
+ return htmlstr;
21
+ };
22
+
23
+ WMStats.RequestDataList = function (data, containerDiv) {
24
+ $(containerDiv).html(format(data));
25
+ };
26
+ })();
@@ -0,0 +1,122 @@
1
+ WMStats.namespace('RequestDetailList');
2
+ (function() {
3
+
4
+ var vm = WMStats.ViewModel;
5
+ var progressFormat = function(progressStat, totalEvents, totalLumis) {
6
+ var formatStr = "<ul>";
7
+ for (var output in progressStat) {
8
+ var processedEvents = progressStat[output].events || 0;
9
+ var processedLumis = progressStat[output].totalLumis || 0;
10
+ var eventPercent = (processedEvents / totalEvents * 100).toFixed(1) + '%';
11
+ var lumiPercent = (processedLumis / totalLumis * 100).toFixed(1) + '%';
12
+ formatStr += "<li><b>" + output + ": event:</b> " + eventPercent + ", <b>lumi:</b> " + lumiPercent + "</li>";
13
+ }
14
+ formatStr += "</ul>";
15
+ return formatStr;
16
+ };
17
+
18
+ var expandFormat = function(dataArray, maxLength, summaryStr) {
19
+ var htmlstr = "";
20
+ if (dataArray == undefined || dataArray.length == undefined ||
21
+ dataArray.length <= maxLength) {
22
+
23
+ htmlstr += dataArray;
24
+ } else {
25
+ htmlstr += "<details> <summary>" + summaryStr +"</summary><ul>";
26
+ for (var i in dataArray) {
27
+ htmlstr += "<li>" + dataArray[i] + "</li>";
28
+ }
29
+ htmlstr += "</ul></details>";
30
+ }
31
+ return htmlstr;
32
+ };
33
+
34
+ var statusFormat = function(statusObj) {
35
+ if (typeof statusObj === "object") {
36
+ var format = "";
37
+ for (var status in statusObj) {
38
+ format += "<b>" + status + "</b>";
39
+ if(typeof statusObj[status] === "object") format += "-";
40
+ format += statusFormat(statusObj[status]);
41
+ }
42
+ return format;
43
+ } else {
44
+ return ":" + statusObj + ", ";
45
+ }
46
+ };
47
+
48
+ var siteStatusFormat = function(statusObj, site) {
49
+ return "<b>" + site + ":</b> " + statusFormat(statusObj);
50
+ };
51
+
52
+ var format = function (requestStruct) {
53
+ var htmlstr = '<div class="closingButton">X</div>';
54
+ var reqDoc = requestStruct.requests[requestStruct.key];
55
+ var reqSummary = requestStruct.summary;
56
+
57
+ htmlstr += "<div class='requestDetailBox'>";
58
+ htmlstr += "<ul>";
59
+ if (reqDoc) {
60
+ htmlstr += "<li><b>campaign:</b> " + reqDoc.campaign + "</li>";
61
+ htmlstr += "<li><b>workflow:</b> " + WMStats.Utils.formatReqDetailUrl(reqDoc.workflow) + "</li>";
62
+ htmlstr += "<li><b>agent url:</b> " + reqDoc.agent_url + "</li>";
63
+ htmlstr += "<li><b>prep id:</b> " + reqDoc.prep_id + "</li>";
64
+ htmlstr += "<li><b>team:</b> " + reqDoc.team + "</li>";
65
+ htmlstr += "<li><b>requestor:</b> " + reqDoc.requestor + "</li>";
66
+ htmlstr += "<li><b>request date:</b> " + reqDoc.request_date + "</li>";
67
+ htmlstr += "<li><b>request type:</b> " + reqDoc.request_type + "</li>";
68
+ htmlstr += "<li><b>CMSSW:</b> " + reqDoc.cmssw + "</li>";
69
+ htmlstr += "<li><b>user dn:</b> " + reqDoc.user_dn + "</li>";
70
+ //htmlstr += "<li><b>vo role:</b> " + reqDoc.vo_role + "</li>";
71
+ //htmlstr += "<li><b>vo group:</b> " + reqDoc.vo_group + "</li>";
72
+ htmlstr += "<li><b>status:</b> " + WMStats.Utils.formatWorkloadSummarylUrl(reqDoc.workflow,
73
+ reqDoc.request_status[reqDoc.request_status.length - 1].status) + "</li>";
74
+ htmlstr += "<li><b>status transition:</b> " + WMStats.Utils.formatStateTransition(reqDoc.request_status) + "</li>";
75
+ htmlstr += "<li><b>input dataset:</b> " + WMStats.Utils.getInputDatasets(reqDoc) + "</li>";
76
+ htmlstr += "<li><b>input events:</b> " + reqDoc.input_events + "</li>";
77
+ htmlstr += "<li><b>input lumis:</b> " + reqDoc.input_lumis + "</li>";
78
+ htmlstr += "<li><b>input files:</b> " + reqDoc.input_num_files + "</li>";
79
+ htmlstr += "<li><b>site white list:</b> " + expandFormat(reqDoc.site_white_list, 4, "Multiple Sites") + "</li>";
80
+ htmlstr += "<li><b>output datasets:</b> " + expandFormat(reqDoc.outputdatasets, 1, "Multiple Datasets") + "</li>";
81
+ htmlstr += "<li><b>progress:</b> " + progressFormat(reqDoc.getProgressStat(), Number(reqDoc.input_events), Number(reqDoc.input_lumis)) + "</li>";
82
+ }
83
+ if (reqSummary) {
84
+ htmlstr += "<li><b>output events:</b> " + reqSummary.summaryStruct.processedEvents + "</li>";
85
+ htmlstr += "<li><b>queued (first):</b> " + reqSummary.getJobStatus("queued.first", 0) + "</li>";
86
+ htmlstr += "<li><b>queued (retried):</b> " + reqSummary.getJobStatus("queued.retry", 0) + "</li>";
87
+ htmlstr += "<li><b>cooloff jobs:</b> " + reqSummary.getTotalCooloff() + "</li>";
88
+ htmlstr += "<li><b>pending:</b> " + reqSummary.getJobStatus("submitted.pending", 0) + "</li>";
89
+ htmlstr += "<li><b>running:</b> " + reqSummary.getJobStatus("submitted.running", 0) + "</li>";
90
+ htmlstr += "<li><b>failure:</b>" + reqSummary.getTotalFailure() + "</li>";
91
+ htmlstr += "<li><b>success:</b> " + reqSummary.getJobStatus("success", 0) + "</li>";
92
+ }
93
+ if (reqDoc.sites) {
94
+ htmlstr += "<li>" + WMStats.Utils.expandFormat(reqDoc.sites, "Sites", siteStatusFormat) + "</li>";
95
+ }
96
+ if (reqDoc.skipped) {
97
+ htmlstr += "<li>" + WMStats.Utils.expandFormat(reqDoc.getSkippedDetail(), "Skipped Summary", siteStatusFormat) + "</li>";
98
+ }
99
+ htmlstr += "</ul>";
100
+ htmlstr += "</div>";
101
+ return htmlstr;
102
+ };
103
+
104
+ WMStats.RequestDetailList = function (workflow, containerDiv) {
105
+ var allRequests = vm.ActiveRequestPage.data();
106
+ var reqDoc = allRequests.getData(workflow);
107
+ var reqSummary = allRequests.getSummary(workflow);
108
+ var requests = {};
109
+ requests[workflow] = reqDoc;
110
+ var data = {key: workflow, requests: requests, summary: reqSummary};
111
+
112
+ $(containerDiv).html(format(data));
113
+ $(containerDiv).show("slide", {}, 500);
114
+ vm.RequestDetail.open = true;
115
+ };
116
+
117
+ var vm = WMStats.ViewModel;
118
+
119
+ vm.RequestDetail.subscribe("requestName", function() {
120
+ WMStats.RequestDetailList(vm.RequestDetail.requestName(), vm.RequestDetail.id());
121
+ });
122
+ })();
@@ -0,0 +1,35 @@
1
+ WMStats.namespace('RequestSummaryList');
2
+ (function() {
3
+ var numFormat = WMStats.Utils.largeNumberFormat;
4
+ var format = function (summary) {
5
+ var summaryStruct = summary.summaryStruct;
6
+ var htmlstr = "";
7
+ htmlstr += "<legend>filtered stats</legend>";
8
+ htmlstr += "<div class='requestSummaryBox'>";
9
+ htmlstr += "<ul>";
10
+ htmlstr += "<li><b>requests:</b> " + summary.summaryStruct.length + "</li>";
11
+ htmlstr += "<li><b>total events:</b> " + numFormat(summary.summaryStruct.totalEvents) + "</li>";
12
+ htmlstr += "<li><b>processed events:</b> " + numFormat(summary.getAvgEvents()) + "</li>";
13
+ htmlstr += "<li><b>created:</b> " + numFormat(summary.getWMBSTotalJobs()) + "</li>";
14
+ htmlstr += "<li><b>cooloff:</b> " + numFormat(summary.getTotalCooloff()) + "</li>";
15
+ htmlstr += "<li><b>success:</b> " + numFormat(summary.getJobStatus('success')) + "</li>";
16
+ htmlstr += "<li><b>failure:</b> " + numFormat(summary.getTotalFailure()) + "</li>";
17
+ htmlstr += "<li><b>queued:</b> " + numFormat(summary.getTotalQueued()) + "</li>";
18
+ htmlstr += "<li><b>running:</b> " + numFormat(summary.getJobStatus('submitted.running')) + "</li>";
19
+ htmlstr += "<li><b>pending:</b> " + numFormat(summary.getJobStatus('submitted.pending')) + "</li>";
20
+ htmlstr += "</ul>";
21
+ htmlstr += "</div>";
22
+ return htmlstr;
23
+ };
24
+
25
+ WMStats.RequestSummaryList = function (data, containerDiv) {
26
+ $(containerDiv).html(format(data));
27
+ };
28
+
29
+ var vm = WMStats.ViewModel;
30
+
31
+ vm.ActiveRequestPage.subscribe("data", function() {
32
+ var filteredData = vm.ActiveRequestPage.data();
33
+ WMStats.RequestSummaryList(filteredData.getSummary(), "#filter_summary");
34
+ });
35
+ })();
@@ -0,0 +1,64 @@
1
+ WMStats.namespace('ResubmissionList');
2
+ (function() {
3
+ var format = function (summary) {
4
+ var htmlstr = "";
5
+ htmlstr += "<legend>Resubmission</legend>";
6
+ htmlstr = '<div class="closingButton">X</div>';
7
+ htmlstr += "<div class='requestDetailBox'>";
8
+ htmlstr += "<ul>";
9
+ htmlstr += "<li><b>Request String: </b><input type='text' name='RequestString' size=70 value='" + summary.RequestString + "'/></li>";
10
+ htmlstr += "<li><b>Original Request Name:</b> " + summary.OriginalRequestName + "</li>";
11
+ htmlstr += "<li><b>Campaign:</b> " + summary.Campaign + "</li>";
12
+ htmlstr += "<li><b>Initial Task Path:</b> " + summary.InitialTaskPath + "</li>";
13
+
14
+ if (summary.ACDCServer) {
15
+ htmlstr += "<li><b>ACDC Server URL:</b> " + summary.ACDCServer + "</li>";
16
+ htmlstr += "<li><b>ACDC DB Name:</b> " + summary.ACDCDatabase + "</li>";
17
+ } else {
18
+ htmlstr += "<li><b>ACDC Server URL:</b><input type='text' name='ACDCServer' size=30 /></li>";
19
+ htmlstr += "<li><b>ACDC DB Name:</b><input type='text' name='ACDCDatabase' size=30 value='wmagent_acdc'/></li>";
20
+ }
21
+ htmlstr += "<li><b>RequestPriority:</b> " + summary.RequestPriority + "</li>";
22
+ /*
23
+ htmlstr += "<li><b>Ignored Output Modules:</b> <input type='text' name='ACDCDatabase' size=30/>";
24
+ htmlstr += "<li><b>Alternative Collection Name:</b><input type='text' name='CollectionName' size=40/>";
25
+ */
26
+ htmlstr += "</ul>";
27
+ htmlstr += "<button type='submit' value=test'> submit</button>";
28
+ htmlstr += "</div>";
29
+
30
+
31
+ return htmlstr;
32
+ };
33
+
34
+ WMStats.ResubmissionList = function (data, containerDiv) {
35
+ $(containerDiv).html(format(data));
36
+ $(containerDiv).show("slide", {}, 500);
37
+ };
38
+
39
+ var vm = WMStats.ViewModel;
40
+ vm.Resubmission.subscribe("data", function() {
41
+ WMStats.ResubmissionList(vm.Resubmission.data(), vm.Resubmission.id());
42
+ });
43
+
44
+ $(document).on('click', "#acdc_submission button", function(event){
45
+ var resubmissionData = WMStats.ViewModel.Resubmission.data();
46
+ resubmissionData.RequestString = $('#acdc_submission input[name="RequestString"]').val();
47
+ if (resubmissionData.ACDCServer === undefined) {
48
+ resubmissionData.ACDCServer = $('#acdc_submission input[name="ACDCServer"]').val();
49
+ }
50
+ if (resubmissionData.ACDCDatabase === undefined) {
51
+ resubmissionData.ACDCDatabase = $('#acdc_submission input[name="ACDCDatabase"]').val();
52
+ }
53
+ //WMStats.ViewModel.Resubmission.Requestor = $('#acdc_submission input[name="Requestor"]').val()
54
+ WMStats.Ajax.requestMgr.putRequest(resubmissionData);
55
+ event.preventDefault();
56
+ });
57
+
58
+ $(WMStats.Globals.Event).on(WMStats.CustomEvents.RESUBMISSION_SUCCESS,
59
+ function(event, reqInfo) {
60
+ $('#acdc_submission div.requestDetailBox').append(WMStats.Utils.formatReqDetailUrl(reqInfo.name,
61
+ reqInfo.reqmgr2Only));
62
+ });
63
+
64
+ })();
@@ -0,0 +1,137 @@
1
+ WMStats.namespace("AgentDetailList");
2
+
3
+ (function () {
4
+
5
+ var componentFormat = function(componentList) {
6
+ var formatStr = "";
7
+ for (var i in componentList) {
8
+ formatStr += "<details> <summary>" + componentList[i].name +"</summary> <ul>";
9
+ formatStr += "<li><b>worker thread:</b> " + componentList[i].worker_name +"</li>";
10
+ formatStr += "<li><b>status:</b> " + componentList[i].state + "</li>";
11
+ //formatStr += "<li><b>error:</b> " + WMStats.Utils.utcClock(new Date(componentList[i].last_error * 1000)) + "</li>";
12
+ formatStr += "<li><b>last updated:</b> " + WMStats.Utils.utcClock(new Date(componentList[i].last_updated * 1000)) + "</li>";
13
+ formatStr += "<li><b>pid:</b> " + componentList[i].pid + "</li>";
14
+ formatStr += "<li><b>error message:</b> <pre>" + componentList[i].error_message + "</pre></li>";
15
+ formatStr += "</ul></details>";
16
+ }
17
+
18
+ return formatStr;
19
+ };
20
+
21
+ var diskFullFormat = function(diskList) {
22
+ var formatStr = "<details> <summary> disk list</summary> <ul>";
23
+ for (var i in diskList) {
24
+ formatStr += "<li><b>" + diskList[i].filesystem +"</b>:" + diskList[i].percent +"</li>";
25
+ }
26
+ formatStr += "</ul></details>";
27
+ return formatStr;
28
+ };
29
+
30
+ var agentReportFormat = function (agentInfo, msgType) {
31
+ var htmlstr = '';
32
+ htmlstr += "<div class='" + msgType + " agent_detail_box'>";
33
+ htmlstr += "<ul>";
34
+ if (agentInfo) {
35
+ agentVersion = ' (' + agentInfo.agent_version + ')'
36
+ htmlstr += "<li><b>agent:</b> " + agentInfo.agent_url + agentVersion + "</li>";
37
+ htmlstr += "<li><b>agent last updated:</b> " + WMStats.Utils.utcClock(new Date(agentInfo.timestamp * 1000)) +" : " +
38
+ agentInfo.alert.agent_update + "</li>";
39
+ htmlstr += "<li><b>data last updated:</b> " + agentInfo.alert.data_update + "</li>";
40
+ htmlstr += "<li><b>status:</b> " + agentInfo.alert.message + "</li>";
41
+ if (agentInfo.agent_team) {
42
+ htmlstr += "<li><b>team:</b> " + agentInfo.agent_team+ "</li>";
43
+ }
44
+ };
45
+ var componentsDown = agentInfo.down_components;
46
+ if (componentsDown && (componentsDown.length > 0)) {
47
+ htmlstr += "<li><b>component errors for:</b> " + componentsDown;
48
+ if (agentInfo.down_component_detail && (agentInfo.down_component_detail.length > 0)) {
49
+ htmlstr += componentFormat(agentInfo.down_component_detail);
50
+ }
51
+ htmlstr +="</li>";
52
+ };
53
+
54
+ var diskInfo = agentInfo.disk_warning;
55
+ if (diskInfo && (diskInfo.length > 0)) {
56
+ htmlstr += "<li><b>disk warning:</b> ";
57
+ htmlstr += diskFullFormat(diskInfo);
58
+ htmlstr +="</li>";
59
+ };
60
+
61
+ if (agentInfo.proxy_warning) {
62
+ htmlstr += "<li><b>proxy warning:</b> " + agentInfo.proxy_warning + "</li>";
63
+ };
64
+
65
+ if (agentInfo.drain_stats) {
66
+ htmlstr += "<li><b>drain statistics:</b></li><ul>";
67
+ htmlstr += "<li>workflows completed (" + agentInfo.drain_stats.workflows_completed + ")</li>";
68
+ if (agentInfo.drain_stats.workflows_completed) {
69
+ htmlstr += "<li>condor running (" + agentInfo.drain_stats.condor_status.running + ")</li>";
70
+ htmlstr += "<li>condor idle (" + agentInfo.drain_stats.condor_status.idle + ")</li>";
71
+ htmlstr += "<li>dbs open blocks (" + agentInfo.drain_stats.upload_status.dbs_open_blocks + ")</li>";
72
+ htmlstr += "<li>dbs not uploaded (" + agentInfo.drain_stats.upload_status.dbs_notuploaded + ")</li>";
73
+ htmlstr += "<li>phedex not uploaded (" + agentInfo.drain_stats.upload_status.phedex_notuploaded + ")</li>";
74
+ for (var key in agentInfo.drain_stats.global_wq_status) {
75
+ htmlstr += "<li>global WQ in '" + key + "' status (" + agentInfo.drain_stats.global_wq_status[key] + ")</li>";
76
+ }
77
+ for (var key in agentInfo.drain_stats.local_wq_status) {
78
+ htmlstr += "<li>local WQ in '" + key + "' status (" + agentInfo.drain_stats.local_wq_status[key] + ")</li>";
79
+ }
80
+ for (var key in agentInfo.drain_stats.local_wqinbox_status) {
81
+ htmlstr += "<li>local WQInbox in '" + key + "' status (" + agentInfo.drain_stats.local_wqinbox_status[key] + ")</li>";
82
+ }
83
+ // only print job information that are != than 0
84
+ htmlstr += "<li>there are no wmbs jobs in the agent, except for...</li>";
85
+ for (var key in agentInfo.WMBS_INFO.wmbsCountByState) {
86
+ if (agentInfo.WMBS_INFO.wmbsCountByState[key]) {
87
+ htmlstr += "<li> jobs in '" + key + "' state (" + agentInfo.WMBS_INFO.wmbsCountByState[key] + ")</li>";
88
+ }
89
+ }
90
+ }
91
+ htmlstr += "</ul>"
92
+ }
93
+
94
+
95
+ var dataError = agentInfo.data_error;
96
+ if (dataError && dataError !== 'ok') {
97
+ htmlstr += "<li><b>data collect error:</b> ";
98
+ htmlstr += dataError;
99
+ htmlstr +="</li>";
100
+ };
101
+
102
+ var couchProcess = agentInfo.couch_process_warning;
103
+ if (couchProcess && couchProcess > 0) {
104
+ htmlstr += "<li><b>Couch Process maxed:</b> ";
105
+ htmlstr += couchProcess;
106
+ htmlstr +="</li>";
107
+ };
108
+
109
+ htmlstr += "</ul>";
110
+ htmlstr += "</div>";
111
+ return htmlstr;
112
+ };
113
+
114
+ var format = function (agentData) {
115
+ var htmlstr = "";
116
+ var agentsWithWarning = agentData.getAlertList();
117
+ for (i in agentsWithWarning) {
118
+ if (agentsWithWarning[i].alert && agentsWithWarning[i].alert.status) {
119
+ htmlstr += agentReportFormat(agentsWithWarning[i], agentsWithWarning[i].alert.status);
120
+ }
121
+ };
122
+ return htmlstr;
123
+ };
124
+
125
+ WMStats.AgentDetailList = function (data, containerDiv) {
126
+ $(containerDiv).html(format(data));
127
+ };
128
+
129
+ // controller for this view to be triggered
130
+ var vm = WMStats.ViewModel;
131
+ vm.AgentPage.subscribe("data", function() {
132
+ //TODO get id form the view
133
+ var divID = '#agent_detail';
134
+ WMStats.AgentDetailList(vm.AgentPage.data(), divID);
135
+ });
136
+
137
+ })();
@@ -0,0 +1,20 @@
1
+ WMStats.namespace('WMStats.CategoryTitle');
2
+ (function() {
3
+
4
+ var format = function (data) {
5
+ var categoryKey = data;
6
+
7
+ var htmlstr = "";
8
+ //htmlstr += "<legend>request</legend>";
9
+ htmlstr += "<div class='requestSummaryBox'>";
10
+ htmlstr += "<ul>";
11
+ htmlstr += "<li><b> Category: " + categoryKey + "</b></li>";
12
+ htmlstr += "</ul>";
13
+ htmlstr += "</div>";
14
+ return htmlstr;
15
+ };
16
+
17
+ WMStats.CategoryTitle = function (data, containerDiv) {
18
+ $(containerDiv).html(format(data));
19
+ };
20
+ })();
@@ -0,0 +1,12 @@
1
+ WMStats.namespace("HTMLList");
2
+
3
+ WMStats.HTMLList = function(format) {
4
+
5
+ this._format = format;
6
+ };
7
+
8
+ WMStats.HTMLList.prototype = {
9
+ create: function (data, containerDiv) {
10
+ $(containerDiv).html(this._format(data));
11
+ }
12
+ };