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.
- Utils/CPMetrics.py +270 -0
- Utils/CertTools.py +62 -0
- Utils/EmailAlert.py +50 -0
- Utils/ExtendedUnitTestCase.py +62 -0
- Utils/FileTools.py +182 -0
- Utils/IteratorTools.py +80 -0
- Utils/MathUtils.py +31 -0
- Utils/MemoryCache.py +119 -0
- Utils/Patterns.py +24 -0
- Utils/Pipeline.py +137 -0
- Utils/PortForward.py +97 -0
- Utils/ProcessStats.py +103 -0
- Utils/PythonVersion.py +17 -0
- Utils/Signals.py +36 -0
- Utils/TemporaryEnvironment.py +27 -0
- Utils/Throttled.py +227 -0
- Utils/Timers.py +130 -0
- Utils/Timestamps.py +86 -0
- Utils/TokenManager.py +143 -0
- Utils/Tracing.py +60 -0
- Utils/TwPrint.py +98 -0
- Utils/Utilities.py +308 -0
- Utils/__init__.py +11 -0
- WMCore/Algorithms/Permissions.py +27 -0
- WMCore/Algorithms/__init__.py +7 -0
- WMCore/Cache/GenericDataCache.py +98 -0
- WMCore/Cache/WMConfigCache.py +572 -0
- WMCore/Cache/__init__.py +0 -0
- WMCore/Configuration.py +651 -0
- WMCore/DataStructs/File.py +177 -0
- WMCore/DataStructs/Fileset.py +140 -0
- WMCore/DataStructs/Job.py +182 -0
- WMCore/DataStructs/JobGroup.py +142 -0
- WMCore/DataStructs/JobPackage.py +49 -0
- WMCore/DataStructs/LumiList.py +734 -0
- WMCore/DataStructs/Mask.py +219 -0
- WMCore/DataStructs/Pickleable.py +24 -0
- WMCore/DataStructs/Run.py +256 -0
- WMCore/DataStructs/Subscription.py +175 -0
- WMCore/DataStructs/WMObject.py +47 -0
- WMCore/DataStructs/WorkUnit.py +112 -0
- WMCore/DataStructs/Workflow.py +60 -0
- WMCore/DataStructs/__init__.py +8 -0
- WMCore/Database/CMSCouch.py +1349 -0
- WMCore/Database/CouchUtils.py +118 -0
- WMCore/Database/__init__.py +9 -0
- WMCore/Lexicon.py +836 -0
- WMCore/REST/Auth.py +202 -0
- WMCore/REST/CherryPyPeriodicTask.py +166 -0
- WMCore/REST/Error.py +333 -0
- WMCore/REST/Format.py +642 -0
- WMCore/REST/HeartbeatMonitorBase.py +90 -0
- WMCore/REST/Main.py +623 -0
- WMCore/REST/Server.py +2435 -0
- WMCore/REST/Services.py +24 -0
- WMCore/REST/Test.py +120 -0
- WMCore/REST/Tools.py +38 -0
- WMCore/REST/Validation.py +250 -0
- WMCore/REST/__init__.py +1 -0
- WMCore/ReqMgr/DataStructs/AuthzByStatus.py +113 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/CAMPAIGN_CONFIG.py +116 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/DAS_RESULT_FILTER.py +3 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/EDITABLE_SPLITTING_PARAM_CONFIG.py +42 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/UNIFIED_CONFIG.py +240 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/__init__.py +0 -0
- WMCore/ReqMgr/DataStructs/ReqMgrConfigDataCache.py +65 -0
- WMCore/ReqMgr/DataStructs/Request.py +293 -0
- WMCore/ReqMgr/DataStructs/RequestError.py +21 -0
- WMCore/ReqMgr/DataStructs/RequestStatus.py +209 -0
- WMCore/ReqMgr/DataStructs/RequestType.py +13 -0
- WMCore/ReqMgr/DataStructs/__init__.py +0 -0
- WMCore/ReqMgr/__init__.py +1 -0
- WMCore/Services/AlertManager/AlertManagerAPI.py +111 -0
- WMCore/Services/AlertManager/__init__.py +0 -0
- WMCore/Services/CRIC/CRIC.py +238 -0
- WMCore/Services/CRIC/__init__.py +0 -0
- WMCore/Services/DBS/DBS3Reader.py +1044 -0
- WMCore/Services/DBS/DBSConcurrency.py +44 -0
- WMCore/Services/DBS/DBSErrors.py +113 -0
- WMCore/Services/DBS/DBSReader.py +23 -0
- WMCore/Services/DBS/DBSUtils.py +139 -0
- WMCore/Services/DBS/DBSWriterObjects.py +381 -0
- WMCore/Services/DBS/ProdException.py +133 -0
- WMCore/Services/DBS/__init__.py +8 -0
- WMCore/Services/FWJRDB/FWJRDBAPI.py +118 -0
- WMCore/Services/FWJRDB/__init__.py +0 -0
- WMCore/Services/HTTPS/HTTPSAuthHandler.py +66 -0
- WMCore/Services/HTTPS/__init__.py +0 -0
- WMCore/Services/LogDB/LogDB.py +201 -0
- WMCore/Services/LogDB/LogDBBackend.py +191 -0
- WMCore/Services/LogDB/LogDBExceptions.py +11 -0
- WMCore/Services/LogDB/LogDBReport.py +85 -0
- WMCore/Services/LogDB/__init__.py +0 -0
- WMCore/Services/MSPileup/__init__.py +0 -0
- WMCore/Services/MSUtils/MSUtils.py +54 -0
- WMCore/Services/MSUtils/__init__.py +0 -0
- WMCore/Services/McM/McM.py +173 -0
- WMCore/Services/McM/__init__.py +8 -0
- WMCore/Services/MonIT/Grafana.py +133 -0
- WMCore/Services/MonIT/__init__.py +0 -0
- WMCore/Services/PyCondor/PyCondorAPI.py +154 -0
- WMCore/Services/PyCondor/PyCondorUtils.py +105 -0
- WMCore/Services/PyCondor/__init__.py +0 -0
- WMCore/Services/ReqMgr/ReqMgr.py +261 -0
- WMCore/Services/ReqMgr/__init__.py +0 -0
- WMCore/Services/ReqMgrAux/ReqMgrAux.py +419 -0
- WMCore/Services/ReqMgrAux/__init__.py +0 -0
- WMCore/Services/RequestDB/RequestDBReader.py +267 -0
- WMCore/Services/RequestDB/RequestDBWriter.py +39 -0
- WMCore/Services/RequestDB/__init__.py +0 -0
- WMCore/Services/Requests.py +624 -0
- WMCore/Services/Rucio/Rucio.py +1287 -0
- WMCore/Services/Rucio/RucioUtils.py +74 -0
- WMCore/Services/Rucio/__init__.py +0 -0
- WMCore/Services/RucioConMon/RucioConMon.py +128 -0
- WMCore/Services/RucioConMon/__init__.py +0 -0
- WMCore/Services/Service.py +400 -0
- WMCore/Services/StompAMQ/__init__.py +0 -0
- WMCore/Services/TagCollector/TagCollector.py +155 -0
- WMCore/Services/TagCollector/XMLUtils.py +98 -0
- WMCore/Services/TagCollector/__init__.py +0 -0
- WMCore/Services/UUIDLib.py +13 -0
- WMCore/Services/UserFileCache/UserFileCache.py +160 -0
- WMCore/Services/UserFileCache/__init__.py +8 -0
- WMCore/Services/WMAgent/WMAgent.py +63 -0
- WMCore/Services/WMAgent/__init__.py +0 -0
- WMCore/Services/WMArchive/CMSSWMetrics.py +526 -0
- WMCore/Services/WMArchive/DataMap.py +463 -0
- WMCore/Services/WMArchive/WMArchive.py +33 -0
- WMCore/Services/WMArchive/__init__.py +0 -0
- WMCore/Services/WMBS/WMBS.py +97 -0
- WMCore/Services/WMBS/__init__.py +0 -0
- WMCore/Services/WMStats/DataStruct/RequestInfoCollection.py +300 -0
- WMCore/Services/WMStats/DataStruct/__init__.py +0 -0
- WMCore/Services/WMStats/WMStatsPycurl.py +145 -0
- WMCore/Services/WMStats/WMStatsReader.py +445 -0
- WMCore/Services/WMStats/WMStatsWriter.py +273 -0
- WMCore/Services/WMStats/__init__.py +0 -0
- WMCore/Services/WMStatsServer/WMStatsServer.py +134 -0
- WMCore/Services/WMStatsServer/__init__.py +0 -0
- WMCore/Services/WorkQueue/WorkQueue.py +492 -0
- WMCore/Services/WorkQueue/__init__.py +0 -0
- WMCore/Services/__init__.py +8 -0
- WMCore/Services/pycurl_manager.py +574 -0
- WMCore/WMBase.py +50 -0
- WMCore/WMException.py +183 -0
- WMCore/WMExceptions.py +269 -0
- WMCore/WMFactory.py +76 -0
- WMCore/WMLogging.py +108 -0
- WMCore/WMStats/CherryPyThreads/CleanUpTask.py +46 -0
- WMCore/WMStats/CherryPyThreads/DataCacheUpdate.py +45 -0
- WMCore/WMStats/CherryPyThreads/HeartbeatMonitor.py +6 -0
- WMCore/WMStats/CherryPyThreads/LogDBTasks.py +29 -0
- WMCore/WMStats/CherryPyThreads/__init__.py +0 -0
- WMCore/WMStats/DataStructs/DataCache.py +92 -0
- WMCore/WMStats/DataStructs/__init__.py +0 -0
- WMCore/WMStats/Service/ActiveRequestJobInfo.py +123 -0
- WMCore/WMStats/Service/MetaDataInfo.py +26 -0
- WMCore/WMStats/Service/RequestInfo.py +127 -0
- WMCore/WMStats/Service/RestApiHub.py +51 -0
- WMCore/WMStats/Service/__init__.py +0 -0
- WMCore/WMStats/T0/CherryPyThreads/T0DataCacheUpdate.py +35 -0
- WMCore/WMStats/T0/CherryPyThreads/__init__.py +0 -0
- WMCore/WMStats/T0/Service/T0RestApiHub.py +37 -0
- WMCore/WMStats/T0/Service/__init__.py +0 -0
- WMCore/WMStats/T0/__init__.py +0 -0
- WMCore/WMStats/WebGui/FrontPage.py +59 -0
- WMCore/WMStats/WebGui/__init__.py +0 -0
- WMCore/WMStats/__init__.py +1 -0
- WMCore/Wrappers/JsonWrapper/JSONThunker.py +342 -0
- WMCore/Wrappers/JsonWrapper/__init__.py +7 -0
- WMCore/Wrappers/__init__.py +6 -0
- WMCore/__init__.py +10 -0
- reqmon-2.3.10.data/data/bin/wmc-dist-patch +15 -0
- reqmon-2.3.10.data/data/bin/wmc-dist-unpatch +8 -0
- reqmon-2.3.10.data/data/bin/wmc-httpd +3 -0
- reqmon-2.3.10.data/data/data/couchapps/LogDB/_id +1 -0
- reqmon-2.3.10.data/data/data/couchapps/LogDB/couchapp.json +5 -0
- reqmon-2.3.10.data/data/data/couchapps/LogDB/filters/filterDeletedDocs.js +3 -0
- reqmon-2.3.10.data/data/data/couchapps/LogDB/language +1 -0
- reqmon-2.3.10.data/data/data/couchapps/LogDB/validate_doc_update.js +6 -0
- reqmon-2.3.10.data/data/data/couchapps/LogDB/views/logByRequest/map.js +9 -0
- reqmon-2.3.10.data/data/data/couchapps/LogDB/views/logByRequestAndThread/map.js +3 -0
- reqmon-2.3.10.data/data/data/couchapps/LogDB/views/requests/map.js +5 -0
- reqmon-2.3.10.data/data/data/couchapps/LogDB/views/requests/reduce.js +1 -0
- reqmon-2.3.10.data/data/data/couchapps/LogDB/views/tstamp/map.js +7 -0
- reqmon-2.3.10.data/data/data/couchapps/T0Request/_id +1 -0
- reqmon-2.3.10.data/data/data/couchapps/T0Request/couchapp.json +5 -0
- reqmon-2.3.10.data/data/data/couchapps/T0Request/filters/repfilter.js +3 -0
- reqmon-2.3.10.data/data/data/couchapps/T0Request/language +1 -0
- reqmon-2.3.10.data/data/data/couchapps/T0Request/updates/updaterequest.js +79 -0
- reqmon-2.3.10.data/data/data/couchapps/T0Request/validate_doc_update.js +6 -0
- reqmon-2.3.10.data/data/data/couchapps/T0Request/views/byrequest/map.js +3 -0
- reqmon-2.3.10.data/data/data/couchapps/T0Request/views/bystatus/map.js +7 -0
- reqmon-2.3.10.data/data/data/couchapps/T0Request/views/bystatusandtime/map.js +7 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/ColVis.css +76 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/font-awesome.min.css +4 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-check-16.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-cross-16.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-plus-16.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-square-check-16.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/cms_logo.gif +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/cms_logo.jpeg +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_highlight-hard_55_5c9ccc_1x100.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_inset-soft_100_fcfdfd_1x100.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_217bc0_256x240.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_2694e8_256x240.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_2e83ff_256x240.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_469bdd_256x240.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_6da8d5_256x240.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_cd0a0a_256x240.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_d8e7f3_256x240.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_f9bd01_256x240.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/warning-16.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/jquery-ui-1.12.0.css +1312 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/jquery.dataTables.css +241 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/logdb.css +60 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/main_layout.css +565 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/FontAwesome.otf +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.eot +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.svg +565 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.ttf +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.woff +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.woff2 +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/Sorting icons.psd +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/back_disabled.jpg +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/back_enabled.jpg +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/error.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/favicon.ico +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/forward_disabled.jpg +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/forward_enabled.jpg +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/loader-1.gif +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/module.caption.backg.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/module.caption.backg.rolledup.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/rollup.gif +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_asc.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_asc_disabled.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_both.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_desc.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_desc_disabled.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/stable.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/warning.png +0 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html +105 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html.min +106 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html.org +125 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.ActiveRequestController.js +61 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.GenericController.js +38 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.WorkloadSummaryController.js +12 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/import.js +6 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T0/WMStats.RequestSummary.js +71 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T0/WMStats.RunSummary.js +70 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.AgentRequestSummary.js +28 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.CMSSWSummary.js +28 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.CampaignSummary.js +28 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.ReqMgrRequest.js +10 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.RequestSummary.js +190 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Agents.js +98 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Alerts.js +21 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Campaigns.js +25 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.GenericRequests.js +728 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.History.js +78 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.JobDetails.js +19 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.JobSummary.js +32 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.LogDBData.js +93 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.LogMessage.js +38 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.SiteSummary.js +24 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Sites.js +25 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Tasks.js +107 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.WorkloadSummary.js +20 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats._StructBase.js +37 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/import.js +29 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.ActiveRequestModel.js +9 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestLogDetailModel.js +17 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestLogModel.js +14 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestModel.js +3 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestSearchModel.js +8 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.ActiveRequestModel.js +9 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.ReqMgrRequestModel.js +8 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestLogDetailModel.js +18 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestLogModel.js +14 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestSearchModel.js +8 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.AgentModel.js +3 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.AlertModel.js +6 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.HistoryModel.js +14 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.JobDetailModel.js +22 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.JobSummaryModel.js +18 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.WorkloadSummaryModel.js +8 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._AjaxModelBase.js +55 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._ModelBase.js +77 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._RequestModelBase.js +127 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/import.js +26 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/ViewModels/WMStats.ViewModel.js +511 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/ViewModels/import.js +2 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/T0/WMStats.Controls.js +117 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/T1/WMStats.Controls.js +158 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/WMStats.CommonControls.js +100 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/import.js +10 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Graphs/WMStats.SiteHistoryGraph.js +8 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Graphs/import.js +3 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.CategoryDetailList.js +38 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestAlertGUI.js +128 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestDataList.js +25 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestDetailList.js +68 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestSummaryList.js +31 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.CategoryDetailList.js +54 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestAlertGUI.js +81 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestDataList.js +26 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestDetailList.js +122 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestSummaryList.js +35 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.ResubmissionList.js +64 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.AgentDetailList.js +137 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.CategoryTitle.js +20 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.HTMLList.js +12 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.JobDetailList.js +178 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.RequestLogList.js +88 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.RequestTitle.js +33 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/import.js +25 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.ActiveRequestTable.js +142 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.RunSummaryTable.js +77 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.TaskSummaryTable.js +127 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/addCategoryMap.js +10 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.ActiveRequestTable.js +132 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.ActiveRequestTableWithJob.js +164 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.AgentRequestSummaryTable.js +78 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.CMSSWSummaryTable.js +76 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.CampaignSummaryTable.js +76 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.SiteSummaryTable.js +63 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.TaskSummaryTable.js +124 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/addCategoryMap.js +17 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.JobSummaryTable.js +71 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.Table.js +70 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.TableController.js +130 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.WorkloadSummaryTable.js +62 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/import.js +26 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/WMStats.CategoryMap.js +45 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/WMStats.View.IndexHTML.js +137 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/import.js +3 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Ajax.js +74 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Couch.js +83 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Globals.js +200 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Utils.js +283 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/import-all.min.js +7 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/loader.js +27 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/global.min.js +639 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/import-all-t0.min.js +4317 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/import-all-t1.min.js +4972 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/lib/jquery.dataTables.columnFilter.js +732 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/lib/namespace.js +23 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/filters/deleteFatDocFilter.js +3 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/filters/filterDeletedDocs.js +3 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/filters/repfilter.js +7 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/rewrites.json +110 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/shows/redirect.js +23 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/agentInfo.js +17 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/generalFields.js +11 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/insertRequest.js +13 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/jobLogArchiveLocation.js +10 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/jobStateTransition.js +17 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/jobSummaryState.js +5 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/totalStats.js +39 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStats/validate_doc_update.js +10 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl/language +1 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl/views/requestAgentUrl/map.erl +11 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl/views/requestAgentUrl/reduce.erl +1 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl1/language +1 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl1/views/byAgentURL/map.erl +11 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl2/language +1 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl2/views/allWorkflows/map.erl +10 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl2/views/allWorkflows/reduce.erl +1 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl3/language +1 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl3/views/jobsByStatusWorkflow/map.erl +32 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl3/views/jobsByStatusWorkflow/reduce.erl +1 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl4/language +1 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl4/views/cooledoffRequests/map.erl +16 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl4/views/cooledoffRequests/reduce.erl +1 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl5/language +1 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl5/views/time/map.erl +11 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl6/language +1 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl6/views/requestHistory/map.erl +11 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl6/views/requestHistory/reduce.erl +1 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl7/language +1 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl7/views/agentInfo/map.erl +10 -0
- reqmon-2.3.10.data/data/data/couchapps/WMStatsErl7/views/latestRequest/map.erl +11 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/index.html +44 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/js/container/histogram.js +141 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/js/container/tree.js +67 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/js/dataMap/errorData.js +69 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/js/htmlFormatter/listFormatter.js +79 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/js/layout/gridLayout.js +77 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/performanceHistogram.html +46 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/style/main.css +17 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/couchapp.json +4 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/filters/repfilter.js +3 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/lib/mustache.js +333 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/lib/validate.js +29 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/lists/completedWorkflows.js +27 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/lists/performanceHistogram.js +15 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/rewrites.json +65 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/shows/histogramByWorkflow.js +75 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/shows/lumiMissingByWorkflow.js +97 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/templates/histogramByWorkflow.html +126 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/templates/performanceData.html +44 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/updates/updateacdc.js +6 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/updates/updatecollection.js +5 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/validate_doc_update.js +8 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/vendor/protovis/_attachments/protovis-r3.2.js +277 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/views/outputDataByPrimDs/map.js +21 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/views/performanceDataByCampaign/map.js +19 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/views/summaryByInputdataset/map.js +7 -0
- reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/views/summaryByOutputdataset/map.js +7 -0
- reqmon-2.3.10.dist-info/LICENSE +202 -0
- reqmon-2.3.10.dist-info/METADATA +24 -0
- reqmon-2.3.10.dist-info/NOTICE +16 -0
- reqmon-2.3.10.dist-info/RECORD +424 -0
- reqmon-2.3.10.dist-info/WHEEL +5 -0
- reqmon-2.3.10.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
WMStats.namespace('JobDetailList');
|
|
2
|
+
(function() {
|
|
3
|
+
|
|
4
|
+
var stateTransitionFormat = function(state) {
|
|
5
|
+
return "<b>" + state['newstate'] + ":</b> " +
|
|
6
|
+
WMStats.Utils.utcClock(new Date(state['timestamp'] * 1000)) +
|
|
7
|
+
", " + state['location'];
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
var inputFileFormat = function(inputFile) {
|
|
11
|
+
return inputFile['lfn'];
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
var lumiFormat = function(lumis) {
|
|
15
|
+
|
|
16
|
+
function lumiRangeFormat() {
|
|
17
|
+
if (startLumi == preLumi) {
|
|
18
|
+
lumiFormat.push("[" + startLumi + "]");
|
|
19
|
+
} else {
|
|
20
|
+
lumiFormat.push("[" + startLumi + " - " + preLumi + "]");
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var preLumi = null;
|
|
25
|
+
var startLumi = null;
|
|
26
|
+
var lumiFormat = new Array();
|
|
27
|
+
for (var i in lumis) {
|
|
28
|
+
for (var j in lumis[i]) {
|
|
29
|
+
for (var k in lumis[i][j]) {
|
|
30
|
+
var currentLumi = Number(lumis[i][j][k]);
|
|
31
|
+
if (startLumi === null) {
|
|
32
|
+
startLumi = currentLumi;
|
|
33
|
+
} else if ((preLumi + 1) !== currentLumi) {
|
|
34
|
+
lumiRangeFormat();
|
|
35
|
+
startLumi = currentLumi;
|
|
36
|
+
};
|
|
37
|
+
preLumi = currentLumi;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
if (startLumi !== null) {
|
|
43
|
+
lumiRangeFormat();
|
|
44
|
+
};
|
|
45
|
+
return lumiFormat;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
var logArchiveFormat = function(archiveObj, key) {
|
|
49
|
+
return key;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
var format = function (data) {
|
|
53
|
+
var jobDetails = data.getData();
|
|
54
|
+
var requestData = WMStats.ActiveRequestModel.getData();
|
|
55
|
+
var htmlstr = '<div><nav id="jobDetailNav" class="button-group"><ul>';
|
|
56
|
+
var jobDivIDPrefix = "jobDetail-";
|
|
57
|
+
for (var index in jobDetails) {
|
|
58
|
+
var buttonNumber = Number(index) + 1;
|
|
59
|
+
if (buttonNumber == 1) {
|
|
60
|
+
htmlstr += '<li><a href="#' + jobDivIDPrefix + index + '" class="pageButton button-selected">' + buttonNumber +' </a></li>';
|
|
61
|
+
} else {
|
|
62
|
+
htmlstr += '<li><a href="#' + jobDivIDPrefix + index + '" class="pageButton button-unselected">' + buttonNumber +' </a></li>';
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
htmlstr += '</nav></ul></div>';
|
|
66
|
+
for (var index in jobDetails) {
|
|
67
|
+
var jobDoc = jobDetails[index];
|
|
68
|
+
if (index === "0") {
|
|
69
|
+
htmlstr += "<div class='jobDetailBox' id='" + jobDivIDPrefix + index + "'>";
|
|
70
|
+
} else {
|
|
71
|
+
htmlstr += "<div class='jobDetailBox hideDiv' id='" + jobDivIDPrefix + index + "'>";
|
|
72
|
+
}
|
|
73
|
+
htmlstr += "<ul>";
|
|
74
|
+
htmlstr += "<li><b>Job Name:</b> " + jobDoc._id + "</li>";
|
|
75
|
+
htmlstr += "<li><b>WMBS job id:</b> " + jobDoc.wmbsid + "</li>";
|
|
76
|
+
htmlstr += "<li><b>Workflow:</b> " + jobDoc.workflow + "</li>";
|
|
77
|
+
htmlstr += "<li><b>Task:</b> " + jobDoc.task + "</li>";
|
|
78
|
+
htmlstr += "<li><b>Status:</b> " + jobDoc.state + "</li>";
|
|
79
|
+
htmlstr += "<li><b>Input dataset:</b> " + WMStats.Utils.getInputDatasets(requestData.getData(jobDoc.workflow)) + "</li>";
|
|
80
|
+
if (typeof jobDoc.site == "object") {
|
|
81
|
+
htmlstr += "<li><b>Site:</b> N/A </li>";
|
|
82
|
+
} else {
|
|
83
|
+
htmlstr += "<li><b>Site:</b> " + jobDoc.site + "</li>";
|
|
84
|
+
}
|
|
85
|
+
htmlstr += "<li><b>Agent:</b> " + jobDoc.agent_name + "</li>";
|
|
86
|
+
htmlstr += "<li><b>ACDC URL:</b> " + jobDoc.acdc_url + "</li>";
|
|
87
|
+
htmlstr += "<li>" + WMStats.Utils.expandFormat(jobDoc.state_history, "State Transition", stateTransitionFormat) + "</li>";
|
|
88
|
+
htmlstr += "<li><b>Exit code:</b> " + jobDoc.exitcode + "</li>";
|
|
89
|
+
htmlstr += "<li><b>Retry count:</b> " + jobDoc.retrycount + "</li>";
|
|
90
|
+
htmlstr += "<li><b>Errors:</b> ";
|
|
91
|
+
for (var errorType in jobDoc.errors) {
|
|
92
|
+
htmlstr += "<ul>";
|
|
93
|
+
htmlstr += "<li><b>" + errorType + "</b></li>";
|
|
94
|
+
for (var i in jobDoc.errors[errorType]){
|
|
95
|
+
htmlstr += "<ul>";
|
|
96
|
+
htmlstr += "<li><b>" + jobDoc.errors[errorType][i].type +" (Exit Code: " + jobDoc.errors[errorType][i].exitCode + ")</b></li>";
|
|
97
|
+
htmlstr += "<ul>";
|
|
98
|
+
htmlstr += "<li><pre>" + WMStats.Utils.escapeHtml(jobDoc.errors[errorType][i].details) +"</pre></li>";
|
|
99
|
+
htmlstr += "</ul>";
|
|
100
|
+
htmlstr += "</ul>";
|
|
101
|
+
}
|
|
102
|
+
htmlstr += "</ul>";
|
|
103
|
+
}
|
|
104
|
+
htmlstr += "</li>";
|
|
105
|
+
|
|
106
|
+
htmlstr += "<li>" + WMStats.Utils.expandFormat(jobDoc.inputfiles, "Input files", inputFileFormat) + "</li>";
|
|
107
|
+
htmlstr += "<li>" + WMStats.Utils.expandFormat(lumiFormat(jobDoc.lumis), "Lumis") + "</li>";
|
|
108
|
+
|
|
109
|
+
htmlstr += "<li><b>Output:</b> ";
|
|
110
|
+
for (var i in jobDoc.output) {
|
|
111
|
+
htmlstr += "<ul>";
|
|
112
|
+
htmlstr += "<li><b>" + jobDoc.output[i].type + "</b></li>";
|
|
113
|
+
htmlstr += "<ul>";
|
|
114
|
+
htmlstr += "<li><b>lfn:</b> " + jobDoc.output[i].lfn +"</li>";
|
|
115
|
+
|
|
116
|
+
htmlstr += "<li><b>location:</b> ";
|
|
117
|
+
htmlstr += jobDoc.output[i].location;
|
|
118
|
+
if (jobDoc.output[i].type === "logArchive") {
|
|
119
|
+
htmlstr += "<li class='pfn'><b>pfn:</b> ";
|
|
120
|
+
// call phedex to get lfn
|
|
121
|
+
}
|
|
122
|
+
/*
|
|
123
|
+
for (var j in jobDoc.output[i].location) {
|
|
124
|
+
htmlstr += jobDoc.output[i].location[j] + " ";
|
|
125
|
+
}*/
|
|
126
|
+
htmlstr += "</li>";
|
|
127
|
+
htmlstr += "<li><b>checksums: adler32:</b> " + jobDoc.output[i].checksums.adler32 + "</li>";
|
|
128
|
+
htmlstr += "<li><b>size:</b> " + jobDoc.output[i].size + "</li>";
|
|
129
|
+
htmlstr += "</ul>";
|
|
130
|
+
htmlstr += "</ul>";
|
|
131
|
+
}
|
|
132
|
+
htmlstr += "</li>";
|
|
133
|
+
if (jobDoc.worker_node_info) {
|
|
134
|
+
htmlstr += "<li><b>Worker Node:</b>" + jobDoc.worker_node_info.HostName + "</li>";
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
htmlstr += "<li>" + WMStats.Utils.expandFormat(jobDoc.logArchiveLFN, "log archive", logArchiveFormat) + "</li>";
|
|
138
|
+
if (jobDoc.eos_log_url) {
|
|
139
|
+
htmlstr += '<li><b>EOS log URL:</b><a href="' + jobDoc.eos_log_url.replace("eoscmshttp", "eoscmsweb") + '"> download log </a></li>';
|
|
140
|
+
}
|
|
141
|
+
htmlstr += "</ul>";
|
|
142
|
+
htmlstr += "</div>";
|
|
143
|
+
}
|
|
144
|
+
return htmlstr;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
WMStats.JobDetailList = function (data, containerDiv) {
|
|
149
|
+
$(containerDiv).html(format(data));
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
// control job Detail
|
|
153
|
+
|
|
154
|
+
var vm = WMStats.ViewModel;
|
|
155
|
+
|
|
156
|
+
vm.JobDetail.subscribe("data", function() {
|
|
157
|
+
WMStats.JobDetailList(vm.JobDetail.data(), vm.JobDetail.id());
|
|
158
|
+
});
|
|
159
|
+
/*
|
|
160
|
+
vm.AlertJobDetail.subscribe("data", function() {
|
|
161
|
+
WMStats.JobDetailList(vm.AlertJobDetail.data(), vm.AlertJobDetail.id());
|
|
162
|
+
});
|
|
163
|
+
*/
|
|
164
|
+
$(document).on('click', "#jobDetailNav li a", function(event){
|
|
165
|
+
$('div.jobDetailBox').hide();
|
|
166
|
+
$(this.hash).show();
|
|
167
|
+
//TODO call phedex to get PFN
|
|
168
|
+
|
|
169
|
+
$("#jobDetailNav li a").removeClass("button-selected").addClass("button-unselected");
|
|
170
|
+
$(this).removeClass("button-unselected").addClass("button-selected");
|
|
171
|
+
event.preventDefault();
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
$(WMStats.Globals.Event).on(WMStats.CustomEvents.PHEDEX_PFN_SUCCESS,
|
|
175
|
+
function(event, requestName) {
|
|
176
|
+
$('#acdc_submission div.requestDetailBox').append(WMStats.Utils.formatReqDetailUrl(requestName));
|
|
177
|
+
});
|
|
178
|
+
})();
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
WMStats.namespace('WMStats.RequestLogList');
|
|
2
|
+
(function() {
|
|
3
|
+
|
|
4
|
+
function createRequestLogList(res, containerDiv) {
|
|
5
|
+
var pat_war = /.*warning.*/;
|
|
6
|
+
var pat_err = /.*error.*/;
|
|
7
|
+
// construct list
|
|
8
|
+
$.each(res, function(i)
|
|
9
|
+
{
|
|
10
|
+
var req = $('<div/>')
|
|
11
|
+
.addClass('request')
|
|
12
|
+
.text(res[i].request);
|
|
13
|
+
$(containerDiv).append(req);
|
|
14
|
+
var obj = res[i];
|
|
15
|
+
var keys = Object.keys(obj);
|
|
16
|
+
$.each(keys, function(j) {
|
|
17
|
+
var thr = $('<div/>')
|
|
18
|
+
.addClass('thread')
|
|
19
|
+
.text(keys[j]);
|
|
20
|
+
$(containerDiv).append(thr);
|
|
21
|
+
var values = obj[keys[j]];
|
|
22
|
+
$.each(values, function(k) {
|
|
23
|
+
var val = values[k];
|
|
24
|
+
var type = val.type;
|
|
25
|
+
var msg_cls = 'agent-info';
|
|
26
|
+
var icon_cls = '';
|
|
27
|
+
if(val.type.match(pat_war)) {
|
|
28
|
+
msg_cls = 'agent-warning';
|
|
29
|
+
icon_cls = 'fa fa-bell-o medium agent-warning';
|
|
30
|
+
} else if(val.type.match(pat_err)) {
|
|
31
|
+
msg_cls = 'agent-error';
|
|
32
|
+
icon_cls = 'fa fa-exclamation-triangle medium agent-error';
|
|
33
|
+
} else {
|
|
34
|
+
msg_cls = 'agent-info';
|
|
35
|
+
icon_cls = 'fa fa-check medium agent-info';
|
|
36
|
+
}
|
|
37
|
+
var icon = $('<i/>').addClass(icon_cls).addClass('type-ts-msg');
|
|
38
|
+
var date = new Date(val.ts);
|
|
39
|
+
var span = $('<span/>').addClass('type-ts-msg '+msg_cls).text(val.type);
|
|
40
|
+
var rest = $('<span/>').text(' | '+date.toGMTString()+' | '+val.msg);
|
|
41
|
+
var ttm = $('<div/>')
|
|
42
|
+
.addClass('type-ts-msg')
|
|
43
|
+
.add(icon).add(rest).add('<br/>');
|
|
44
|
+
$(containerDiv).append(ttm);
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
$(containerDiv).append('<br/><hr/>');
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
var errorFormat = function(logData) {
|
|
52
|
+
//var formatStr = "<div class='fa fa-exclamation-triangle medium agent-error'>";
|
|
53
|
+
var formatStr = "";
|
|
54
|
+
for (var i in logData) {
|
|
55
|
+
formatStr += "<details> <summary> <b>" + logData[i].request + "</b></summary> <ul>";
|
|
56
|
+
formatStr += "<li><b>agent</b>: " + logData[i].agent + "</li>";
|
|
57
|
+
formatStr += "<li><b>thread</b>: " + logData[i].thr + "</li>";
|
|
58
|
+
formatStr += "<li><b>type</b>: " + logData[i].type + "</li>";
|
|
59
|
+
formatStr += "<li><b>update time</b>: " + WMStats.Utils.utcClock(new Date(logData[i].ts * 1000)) + "</li>";
|
|
60
|
+
formatStr += "<li><b>error message</b>: <pre>" + logData[i].messages[0].msg + "</pre></li>";
|
|
61
|
+
formatStr += "<li><b>id</b>: " + logData[i].id + "</li>";
|
|
62
|
+
formatStr += "</ul></details>";
|
|
63
|
+
}
|
|
64
|
+
//formatStr += "</div>";
|
|
65
|
+
return formatStr;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
var format = function (data) {
|
|
70
|
+
var htmlstr = "";
|
|
71
|
+
htmlstr += errorFormat(data);
|
|
72
|
+
return htmlstr;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
WMStats.RequestLogList = function (data, containerDiv) {
|
|
76
|
+
$(containerDiv).html(format(data));
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
// controller for this view to be triggered
|
|
80
|
+
var vm = WMStats.ViewModel;
|
|
81
|
+
vm.LogDBPage.subscribe("data", function() {
|
|
82
|
+
//TODO get id form the view
|
|
83
|
+
var divID = '#logdb_summary';
|
|
84
|
+
logDBData = vm.LogDBPage.data();
|
|
85
|
+
errors = logDBData.getLogWithLastestError();
|
|
86
|
+
WMStats.RequestLogList(errors, divID);
|
|
87
|
+
});
|
|
88
|
+
})();
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
WMStats.namespace('WMStats.RequestTitle');
|
|
2
|
+
(function() {
|
|
3
|
+
var format = function (data) {
|
|
4
|
+
var workflow;
|
|
5
|
+
var dataType;
|
|
6
|
+
if (typeof data === "string") {
|
|
7
|
+
workflow = data;
|
|
8
|
+
dataType = 0;
|
|
9
|
+
} else {
|
|
10
|
+
workflow = data.getData().workflow;
|
|
11
|
+
dataType = 1;
|
|
12
|
+
};
|
|
13
|
+
var requestInfo = WMStats.ActiveRequestModel.getData().getData(workflow);
|
|
14
|
+
|
|
15
|
+
var htmlstr = "";
|
|
16
|
+
//htmlstr += "<legend>request</legend>";
|
|
17
|
+
htmlstr += "<div class='requestSummaryBox'>";
|
|
18
|
+
htmlstr += "<ul>";
|
|
19
|
+
htmlstr += "<li><b>" + workflow + "</b></li>";
|
|
20
|
+
if (dataType == 1) {
|
|
21
|
+
htmlstr += "<li><b>agent: </b>" + requestInfo.agent_url + "</li>";
|
|
22
|
+
};
|
|
23
|
+
htmlstr += "</ul>";
|
|
24
|
+
htmlstr += "</div>";
|
|
25
|
+
return htmlstr;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
WMStats.RequestTitle = function (data, containerDiv) {
|
|
29
|
+
if (typeof data === "string" || (typeof data === "object" && data.getData().workflow !== undefined)) {
|
|
30
|
+
$(containerDiv).html(format(data));
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
})();
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
WMStats.Globals.importScripts([
|
|
2
|
+
//"js/Views/HTMLList/WMStats.HTMLList.js",
|
|
3
|
+
"js/Views/HTMLList/WMStats.JobDetailList.js",
|
|
4
|
+
"js/Views/HTMLList/WMStats.AgentDetailList.js",
|
|
5
|
+
"js/Views/HTMLList/WMStats.CategoryTitle.js",
|
|
6
|
+
"js/Views/HTMLList/WMStats.RequestTitle.js",
|
|
7
|
+
"js/Views/HTMLList/WMStats.RequestLogList.js"
|
|
8
|
+
]);
|
|
9
|
+
|
|
10
|
+
if (WMStats.Globals.VARIANT == "tier1") {
|
|
11
|
+
//import tier1 specific table
|
|
12
|
+
WMStats.Globals.importScripts(["js/Views/HTMLList/T1/WMStats.RequestDetailList.js",
|
|
13
|
+
"js/Views/HTMLList/T1/WMStats.RequestAlertGUI.js",
|
|
14
|
+
"js/Views/HTMLList/T1/WMStats.CategoryDetailList.js",
|
|
15
|
+
"js/Views/HTMLList/T1/WMStats.RequestSummaryList.js",
|
|
16
|
+
"js/Views/HTMLList/T1/WMStats.RequestDataList.js",
|
|
17
|
+
"js/Views/HTMLList/T1/WMStats.ResubmissionList.js"]);
|
|
18
|
+
} else if (WMStats.Globals.VARIANT == "tier0") {
|
|
19
|
+
//import tie0 specific table
|
|
20
|
+
WMStats.Globals.importScripts(["js/Views/HTMLList/T0/WMStats.RequestDetailList.js",
|
|
21
|
+
"js/Views/HTMLList/T0/WMStats.RequestAlertGUI.js",
|
|
22
|
+
"js/Views/HTMLList/T0/WMStats.CategoryDetailList.js",
|
|
23
|
+
"js/Views/HTMLList/T0/WMStats.RequestSummaryList.js",
|
|
24
|
+
"js/Views/HTMLList/T0/WMStats.RequestDataList.js"]);
|
|
25
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
WMStats.namespace("ActiveRequestTable");
|
|
2
|
+
|
|
3
|
+
WMStats.ActiveRequestTable = function (requestData, containerDiv) {
|
|
4
|
+
|
|
5
|
+
var formatReqDetailUrl = WMStats.Utils.formatReqDetailUrl;
|
|
6
|
+
var formatWorkloadSummarylUrl = WMStats.Utils.formatWorkloadSummarylUrl;
|
|
7
|
+
var tableConfig = {
|
|
8
|
+
"pageLength": 25,
|
|
9
|
+
"scrollX": "",
|
|
10
|
+
"columns": [
|
|
11
|
+
{"title": "D",
|
|
12
|
+
"defaultContent": 0,
|
|
13
|
+
"render": function (data, type, row, meta) {
|
|
14
|
+
if (type === "display") {
|
|
15
|
+
return WMStats.Utils.formatDetailButton("detail", row.skipped);
|
|
16
|
+
}
|
|
17
|
+
if (row.skipped) {
|
|
18
|
+
return 1;
|
|
19
|
+
}
|
|
20
|
+
}},
|
|
21
|
+
{"title": "L",
|
|
22
|
+
"defaultContent": 0,
|
|
23
|
+
"render": function (data, type, row, meta) {
|
|
24
|
+
return WMStats.Utils.formatDetailButton("drill");
|
|
25
|
+
}},
|
|
26
|
+
{ "data": "workflow", "title": "workflow"},
|
|
27
|
+
/*
|
|
28
|
+
{ "defaultContent": "new",
|
|
29
|
+
"title": "status",
|
|
30
|
+
"render": function (data, type, row, meta) {
|
|
31
|
+
|
|
32
|
+
var status = row.request_status[row.request_status.length -1].status;
|
|
33
|
+
var reqSummary = requestData.getSummary(row.workflow);
|
|
34
|
+
var totalJobs = reqSummary.getWMBSTotalJobs();
|
|
35
|
+
if (totalJobs > 0) {
|
|
36
|
+
if (reqSummary.getTotalSubmitted() > 0) {
|
|
37
|
+
if (reqSummary.getJobStatus("submitted.running") > 0) {
|
|
38
|
+
status = "running";
|
|
39
|
+
} else {
|
|
40
|
+
status = "submitted";
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
} else {
|
|
44
|
+
if (reqSummary.getTotalPaused() > 0) {
|
|
45
|
+
status = "paused";
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return status
|
|
50
|
+
}
|
|
51
|
+
},*/
|
|
52
|
+
{ "title": "status",
|
|
53
|
+
"render": function (data, type, row, meta) {
|
|
54
|
+
if (type === "display") {
|
|
55
|
+
return formatWorkloadSummarylUrl(row.workflow,
|
|
56
|
+
row.request_status[row.request_status.length -1].status);
|
|
57
|
+
}
|
|
58
|
+
return row.request_status[row.request_status.length -1].status;
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{ "title": "duration",
|
|
62
|
+
"render": function (data, type, row, meta) {
|
|
63
|
+
if (type === "display") {
|
|
64
|
+
var currentTime = Math.round(new Date().getTime() / 1000);
|
|
65
|
+
var startTime = row.request_status[row.request_status.length -1].update_time;
|
|
66
|
+
return WMStats.Utils.formatDuration(currentTime - startTime);
|
|
67
|
+
}
|
|
68
|
+
return row.request_status[row.request_status.length -1].update_time;
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
{ "defaultContent": 0,
|
|
72
|
+
"title": "job progress",
|
|
73
|
+
"render": function (data, type, row, meta) {
|
|
74
|
+
var reqSummary = requestData.getSummary(row.workflow);
|
|
75
|
+
var totalJobs = reqSummary.getWMBSTotalJobs() || 1;
|
|
76
|
+
var result = (reqSummary.getJobStatus("success") + reqSummary.getTotalFailure()) /
|
|
77
|
+
totalJobs * 100;
|
|
78
|
+
return (result.toFixed(1) + "%");
|
|
79
|
+
},
|
|
80
|
+
"type": "num-fmt"
|
|
81
|
+
},
|
|
82
|
+
{ "defaultContent": 0,
|
|
83
|
+
"title": "submitted",
|
|
84
|
+
"render": function (data, type, row, meta) {
|
|
85
|
+
var result = requestData.getKeyValue(row.workflow, "status.submitted.first", 0);
|
|
86
|
+
result += requestData.getKeyValue(row.workflow, "status.submitted.retry", 0);
|
|
87
|
+
return result;
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{ "defaultContent": 0,
|
|
91
|
+
"title": "pending",
|
|
92
|
+
"render": function (data, type, row, meta) {
|
|
93
|
+
var result = requestData.getKeyValue(row.workflow, "status.submitted.pending", 0);
|
|
94
|
+
return result;
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{ "defaultContent": 0,
|
|
98
|
+
"title": "running",
|
|
99
|
+
"render": function (data, type, row, meta) {
|
|
100
|
+
var result = requestData.getKeyValue(row.workflow, "status.submitted.running", 0);
|
|
101
|
+
return result;
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{ "defaultContent": 0,
|
|
105
|
+
"title": "cool off ",
|
|
106
|
+
"render": function (data, type, row, meta) {
|
|
107
|
+
var reqSummary = requestData.getSummary(row.workflow);
|
|
108
|
+
return reqSummary.getTotalCooloff();
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{ "defaultContent": 0,
|
|
112
|
+
"title": "paused",
|
|
113
|
+
"render": function (data, type, row, meta) {
|
|
114
|
+
var reqSummary = requestData.getSummary(row.workflow);
|
|
115
|
+
return reqSummary.getTotalPaused();
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{ "defaultContent": 0,
|
|
119
|
+
"title": "failed",
|
|
120
|
+
"render": function (data, type, row, meta) {
|
|
121
|
+
var reqSummary = requestData.getSummary(row.workflow);
|
|
122
|
+
return reqSummary.getTotalFailure();
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{ "defaultContent": 0,
|
|
126
|
+
"title": "run",
|
|
127
|
+
"render": function (data, type, row, meta) {
|
|
128
|
+
return requestData.getKeyValue(row.workflow, "run", 0);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
//TODO add more data (consult dataops)
|
|
132
|
+
]
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
function runNumerDesc(a, b) {
|
|
136
|
+
return (Number(b.run) - Number(a.run));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
tableConfig.data = requestData.getList(runNumerDesc);
|
|
140
|
+
|
|
141
|
+
return WMStats.Table(tableConfig).create(containerDiv, null);
|
|
142
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
WMStats.namespace("RunSummaryTable");
|
|
2
|
+
|
|
3
|
+
WMStats.RunSummaryTable = function (data, containerDiv) {
|
|
4
|
+
|
|
5
|
+
var tableConfig = {
|
|
6
|
+
"pageLength": 25,
|
|
7
|
+
"scrollX": "",
|
|
8
|
+
"columns": [
|
|
9
|
+
{"title": "D",
|
|
10
|
+
"defaultContent": 0,
|
|
11
|
+
"render": function (data, type, row, meta) {
|
|
12
|
+
return WMStats.Utils.formatDetailButton("detail");
|
|
13
|
+
}},
|
|
14
|
+
{"title": "L",
|
|
15
|
+
"defaultContent": 0,
|
|
16
|
+
"render": function (data, type, row, meta) {
|
|
17
|
+
return WMStats.Utils.formatDetailButton("drill");
|
|
18
|
+
}},
|
|
19
|
+
{ "data": "key", "title": "run"},
|
|
20
|
+
{ "render": function (data, type, row, meta) {
|
|
21
|
+
return row.summary.summaryStruct.numRequests;
|
|
22
|
+
}, "title": "requests", "defaultContent": 0,
|
|
23
|
+
},
|
|
24
|
+
{ "render": function (data, type, row, meta) {
|
|
25
|
+
return row.summary.summaryStruct.runStatus;
|
|
26
|
+
}, "title": "run status", "defaultContent": "Active",
|
|
27
|
+
},
|
|
28
|
+
{ "render": function (data, type, row, meta) {
|
|
29
|
+
return row.summary.getJobStatus("success");
|
|
30
|
+
}, "title": "success", "defaultContent": 0,
|
|
31
|
+
},
|
|
32
|
+
{ "render": function (data, type, row, meta) {
|
|
33
|
+
return row.summary.getTotalFailure();
|
|
34
|
+
}, "title": "failure", "defaultContent": 0,
|
|
35
|
+
},
|
|
36
|
+
{ "defaultContent": 0,
|
|
37
|
+
"title": "job progress",
|
|
38
|
+
"render": function (data, type, row, meta) {
|
|
39
|
+
var totalJobs = row.summary.getWMBSTotalJobs() || 1;
|
|
40
|
+
var result = (row.summary.getJobStatus("success") +
|
|
41
|
+
row.summary.getTotalFailure()) /
|
|
42
|
+
totalJobs * 100;
|
|
43
|
+
if (type === 'display') {
|
|
44
|
+
return result.toFixed(1) + "%";
|
|
45
|
+
}
|
|
46
|
+
return result.toFixed(1);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{ "render": function (data, type, row, meta) {
|
|
50
|
+
return row.summary.getJobStatus("submitted.pending");
|
|
51
|
+
}, "title": "pending", "defaultContent": 0,
|
|
52
|
+
},
|
|
53
|
+
{ "render": function (data, type, row, meta) {
|
|
54
|
+
return row.summary.getJobStatus("submitted.running");
|
|
55
|
+
}, "title": "running", "defaultContent": 0,
|
|
56
|
+
},
|
|
57
|
+
{ "render": function (data, type, row, meta) {
|
|
58
|
+
return row.summary.getTotalCooloff();
|
|
59
|
+
}, "title": "cool off", "defaultContent": 0,
|
|
60
|
+
},
|
|
61
|
+
{ "render": function (data, type, row, meta) {
|
|
62
|
+
return row.summary.getTotalPaused();
|
|
63
|
+
}, "title": "paused", "defaultContent": 0,
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
function runNumerDesc(a, b) {
|
|
69
|
+
return (Number(b.key) - Number(a.key));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
tableConfig.data = data.getList(runNumerDesc);
|
|
73
|
+
|
|
74
|
+
var filterConfig = {};
|
|
75
|
+
|
|
76
|
+
return WMStats.Table(tableConfig).create(containerDiv,filterConfig);
|
|
77
|
+
};
|