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
reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/T1/WMStats.Controls.js
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
WMStats.namespace("Controls");
|
|
2
|
+
WMStats.Controls = function($){
|
|
3
|
+
|
|
4
|
+
var vm = WMStats.ViewModel;
|
|
5
|
+
var vmRegistry = WMStats.ViewModel.Registry;
|
|
6
|
+
|
|
7
|
+
var _categorySelector;
|
|
8
|
+
|
|
9
|
+
function setFilter(selector) {
|
|
10
|
+
$(selector).append('<legend>filter</legend><div name="filter" class="filterFormat">\
|
|
11
|
+
<div class="verticalFilter"> campaign: <br/><input name="campaign" value=""></input> </div> \
|
|
12
|
+
<div class="verticalFilter"> workflow: <br/><input name="workflow" value=""></input> </div>\
|
|
13
|
+
<div class="verticalFilter"> type: <br/><input name="request_type" value=""></input> </div>\
|
|
14
|
+
<div class="verticalFilter"> status: <br/><input name="request_status" value=""></input> </div>\
|
|
15
|
+
<div class="verticalFilter"> input dataset: <br/><input name="inputdataset" value=""></input> </div>\
|
|
16
|
+
<div class="verticalFilter"> output dataset: <br/><input name="outputdatasets" value=""></input> </div>\
|
|
17
|
+
<div class="verticalFilter"> site whitelist: <br/><input name="site_white_list" value=""></input> </div>\
|
|
18
|
+
<div class="verticalFilter"> team: <br/><input name="team" value=""></input> </div> \
|
|
19
|
+
<div class="endFlter"> agent:<br/><input name="agent_url" value=""></input> </div>\
|
|
20
|
+
</div>');
|
|
21
|
+
var _filterSelector = selector + ' div[name="filter"] input';
|
|
22
|
+
|
|
23
|
+
$(document).on('keyup', selector + " input",
|
|
24
|
+
function() {WMStats.Utils.delay(function() {
|
|
25
|
+
//change the view model filter value
|
|
26
|
+
WMStats.ViewModel.ActiveRequestPage.filter(WMStats.Utils.createInputFilter(_filterSelector));
|
|
27
|
+
|
|
28
|
+
}, 300)});
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
function setCategoryButton(selector) {
|
|
32
|
+
var categoryBottons =
|
|
33
|
+
'<nav id="category_button" class="button-group">\
|
|
34
|
+
<ul><li><a href="#campaign" class="nav-button nav-button-selected"> Campaign </a></li>\
|
|
35
|
+
<li><a href="#sites" class="nav-button button-unselected"> Site </a></li>\
|
|
36
|
+
<li><a href="#cmssw" class="nav-button button-unselected"> CMSSW </a></li>\
|
|
37
|
+
<li><a href="#agent" class="nav-button button-unselected"> Agent </a></li></ul>\
|
|
38
|
+
</nav>';
|
|
39
|
+
|
|
40
|
+
$(selector).append(categoryBottons);
|
|
41
|
+
|
|
42
|
+
$(document).on('click', selector + " li a", function(event){
|
|
43
|
+
var category = this.hash.substring(1);
|
|
44
|
+
var vmCategory;
|
|
45
|
+
if (category === "campaign") {
|
|
46
|
+
vmCategory = vm.CampaignCategory;
|
|
47
|
+
} else if (category === "sites") {
|
|
48
|
+
vmCategory = vm.SiteCategory;
|
|
49
|
+
} else if (category === "cmssw") {
|
|
50
|
+
vmCategory = vm.CMSSWCategory;
|
|
51
|
+
} else if (category === "agent") {
|
|
52
|
+
vmCategory = vm.AgentCategory;
|
|
53
|
+
}
|
|
54
|
+
vm.CategoryView.category(vmCategory);
|
|
55
|
+
$(selector + " li a").removeClass("nav-button-selected").addClass("button-unselected");
|
|
56
|
+
$(this).addClass("nav-button-selected");
|
|
57
|
+
event.preventDefault();
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
function setViewSwitchButton(selector) {
|
|
62
|
+
var viewSwitchBottons =
|
|
63
|
+
'<nav id="view_switch_button" class="button-group">\
|
|
64
|
+
<ul><li><a href="#progress" class="nav-button nav-button-selected"> progress </a></li>\
|
|
65
|
+
<li><a href="#numJobs" class="nav-button button-unselected"> number of jobs </a></li></ul>\
|
|
66
|
+
</nav>';
|
|
67
|
+
|
|
68
|
+
$(selector).append(viewSwitchBottons);
|
|
69
|
+
|
|
70
|
+
$(document).on('click', "#view_switch_button li a", function(event){
|
|
71
|
+
// format is either progress or numJobs need to decouple the name
|
|
72
|
+
var buttonName = this.hash.substring(1);
|
|
73
|
+
var requestFormat;
|
|
74
|
+
if (buttonName === "progress") {
|
|
75
|
+
requestFormat = vm.RequestProgress;
|
|
76
|
+
} else if (buttonName === "numJobs") {
|
|
77
|
+
requestFormat = vm.RequestJobs;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
vm.RequestView.format(requestFormat);
|
|
81
|
+
// this might not be the efficient way. or directly update the table.
|
|
82
|
+
vm.RequestView.propagateUpdate();
|
|
83
|
+
$("#view_switch_button li a").removeClass("nav-button-selected").addClass("button-unselected");
|
|
84
|
+
$(this).addClass("nav-button-selected");
|
|
85
|
+
event.preventDefault();
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
function setAllRequestButton(selector) {
|
|
91
|
+
var requestButtons =
|
|
92
|
+
'<nav id="all_requests" class="button-group">\
|
|
93
|
+
<ul><li><a href="#" class="nav-button"> all requests </a></li></ul>\
|
|
94
|
+
</nav>';
|
|
95
|
+
|
|
96
|
+
$(selector).append(requestButtons).addClass("button-group");
|
|
97
|
+
|
|
98
|
+
$(document).on('click', "#all_requests li a", function(event){
|
|
99
|
+
vm.RequestView.categoryKey("all");
|
|
100
|
+
event.preventDefault();
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
vm.RequestView.subscribe("categoryKey", function(){
|
|
104
|
+
var buttonSelector = "#all_requests li a";
|
|
105
|
+
if (vm.RequestView.categoryKey() === "all") {
|
|
106
|
+
$(buttonSelector).removeClass("button-unselected").addClass("nav-button-selected");
|
|
107
|
+
} else {
|
|
108
|
+
$(buttonSelector).removeClass("nav-button-selected").addClass("button-unselected");
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/* set the view tab and control*/
|
|
114
|
+
function setTabs(selector) {
|
|
115
|
+
var tabs = '<ul><li class="first"><a href="#category_view">Category</a></li>\
|
|
116
|
+
<li><a href="#request_view">» Requests</a></li>\
|
|
117
|
+
<li><a href="#job_view">» Jobs</a></li></ul>';
|
|
118
|
+
$(selector).append(tabs).addClass("tabs");
|
|
119
|
+
$(selector + " ul").addClass("tabs-nav");
|
|
120
|
+
|
|
121
|
+
// add controller for this view
|
|
122
|
+
function changeTab(event, data) {
|
|
123
|
+
$(selector + ' li').removeClass("tabs-selected");
|
|
124
|
+
$(selector + ' a[href="' + data.id() +'"]').parent().addClass("tabs-selected");
|
|
125
|
+
}
|
|
126
|
+
// viewModel -> view control
|
|
127
|
+
vm.ActiveRequestPage.subscribe("view", changeTab);
|
|
128
|
+
|
|
129
|
+
// view -> viewModel control
|
|
130
|
+
$(document).on('click', selector + " li a", function(event){
|
|
131
|
+
vm.ActiveRequestPage.view(vmRegistry[this.hash]);
|
|
132
|
+
event.preventDefault();
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
function setExternalLink(selector) {
|
|
139
|
+
var outsideLink =
|
|
140
|
+
'<a href="/couchdb/alertscollector/_design/AlertsCollector/index.html" target="alertColletorFrame"> agent alert </a>';
|
|
141
|
+
|
|
142
|
+
$(selector).append(outsideLink);
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
return {
|
|
147
|
+
setFilter: setFilter,
|
|
148
|
+
setTabs: setTabs,
|
|
149
|
+
setCategoryButton: setCategoryButton,
|
|
150
|
+
setAllRequestButton: setAllRequestButton,
|
|
151
|
+
setViewSwitchButton: setViewSwitchButton,
|
|
152
|
+
setExternalLink: setExternalLink,
|
|
153
|
+
requests: "requests",
|
|
154
|
+
sites: "sites",
|
|
155
|
+
campaign: "campaign",
|
|
156
|
+
cmssw: "cmssw"
|
|
157
|
+
};
|
|
158
|
+
}(jQuery);
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
WMStats.namespace("CommonControls");
|
|
2
|
+
WMStats.CommonControls = function($){
|
|
3
|
+
|
|
4
|
+
var vm = WMStats.ViewModel;
|
|
5
|
+
var vmRegistry = WMStats.ViewModel.Registry;
|
|
6
|
+
|
|
7
|
+
function setUTCClock(selector) {
|
|
8
|
+
setInterval(function() {
|
|
9
|
+
$(selector).text(WMStats.Utils.utcClock());
|
|
10
|
+
}, 100);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
function setLinkTabs(selector) {
|
|
14
|
+
var linkTabs =
|
|
15
|
+
'<nav id="linkTabs" class="linkTabs">\
|
|
16
|
+
<ul><li><a href="#activeRequestPage"> active request </a></li>\
|
|
17
|
+
<li><a href="#requestAlertPage"> request alert <strong></strong></a></li>\
|
|
18
|
+
<li><a href="#agentInfoPage"> agent info <strong></strong></a></li>\
|
|
19
|
+
<li><a href="#logDBPage"> error logs <strong></strong></a></li>\
|
|
20
|
+
<li><a href="#workloadSummaryPage"> search </a></li></ul>\
|
|
21
|
+
</nav>';
|
|
22
|
+
|
|
23
|
+
$(selector).append(linkTabs);
|
|
24
|
+
|
|
25
|
+
// add controller for this view
|
|
26
|
+
function changeTab(event, data) {
|
|
27
|
+
$('#linkTabs li').removeClass("title-tab-selected").addClass("title-tab-hide");
|
|
28
|
+
$('#linkTabs a[href="' + data.id() +'"]').parent().removeClass("title-tab-hide").addClass("title-tab-selected");
|
|
29
|
+
}
|
|
30
|
+
// viewModel -> view control
|
|
31
|
+
vm.subscribe("page", changeTab);
|
|
32
|
+
|
|
33
|
+
// view -> viewModel control
|
|
34
|
+
$(document).on('click', "#linkTabs li a", function(event){
|
|
35
|
+
vm.page(vmRegistry[this.hash]);
|
|
36
|
+
event.preventDefault();
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
function setWorkloadSummarySearch(selector) {
|
|
41
|
+
var searchOption =
|
|
42
|
+
'<fieldset id="SearchOptionsPane">\
|
|
43
|
+
<legend>Search WorkloadSummary</legend>\
|
|
44
|
+
<div id="searchPane">\
|
|
45
|
+
<div class="OptionBox">\
|
|
46
|
+
<select name="SearchOptions" class="searchSelector" title="Select a search option">\
|
|
47
|
+
<option value="request" data-search-type="stringMatch" selected="selected"> request name</option>\
|
|
48
|
+
<option value="outputdataset" data-search-type="stringMatch"> output dataset </option>\
|
|
49
|
+
<option value="inputdataset" data-search-type="stringMatch">input dataset</option>\
|
|
50
|
+
<option value="prep_id" data-search-type="stringMatch">prep id</option>\
|
|
51
|
+
<option value="data_pileup" data-search-type="stringMatch">data pileup</option>\
|
|
52
|
+
<option value="mc_pileup" data-search-type="stringMatch">mc pileup</option>\
|
|
53
|
+
<option value="request_date" data-search-type="dateRange">date range</option>\
|
|
54
|
+
</select>\
|
|
55
|
+
</div>\
|
|
56
|
+
<div class="SearchBox">\
|
|
57
|
+
<input type="text" size="100" name="workloadSummarySearch" value=""></input>\
|
|
58
|
+
</div>\
|
|
59
|
+
</div>\
|
|
60
|
+
<div>\
|
|
61
|
+
<button type="submit" id="WorkloadSummarySearchButton">submit</button>\
|
|
62
|
+
</div>\
|
|
63
|
+
</fieldset>';
|
|
64
|
+
|
|
65
|
+
$(selector).append(searchOption);
|
|
66
|
+
|
|
67
|
+
// change the search options
|
|
68
|
+
$(document).on('change', 'select[name="SearchOptions"]',function(){
|
|
69
|
+
var filterType = $(':selected', this).attr('data-search-type');
|
|
70
|
+
var searchBox = $('#searchPane .SearchBox');
|
|
71
|
+
$(searchBox).empty();
|
|
72
|
+
$('div.template.'+ filterType).children().clone().appendTo('#searchPane .SearchBox');
|
|
73
|
+
$('#searchPane .SearchBox input[name="dateRange1"]').datepicker({
|
|
74
|
+
altField: 'input[name="dateRange1"]',
|
|
75
|
+
altFormat: "yy/mm/dd",
|
|
76
|
+
changeYear: true,
|
|
77
|
+
yearRange: "2012:c"});
|
|
78
|
+
$('#searchPane .SearchBox input[name="dateRange2"]').datepicker({
|
|
79
|
+
altField: 'input[name="dateRange2"]',
|
|
80
|
+
altFormat: "yy/mm/dd",
|
|
81
|
+
changeYear: true,
|
|
82
|
+
yearRange: "2012:c"});
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
// control submit button
|
|
86
|
+
$(document).on('click', '#WorkloadSummarySearchButton', function(event) {
|
|
87
|
+
var keys = {};
|
|
88
|
+
keys.searchCategory = $('#search_option_board select[name="SearchOptions"] :selected').val();
|
|
89
|
+
keys.searchValue = $('input[name="workloadSummarySearch"]').val();
|
|
90
|
+
vm.SearchPage.keys(keys);
|
|
91
|
+
event.stopPropagation();
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
setUTCClock: setUTCClock,
|
|
97
|
+
setLinkTabs: setLinkTabs,
|
|
98
|
+
setWorkloadSummarySearch: setWorkloadSummarySearch
|
|
99
|
+
};
|
|
100
|
+
}(jQuery);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//import common scripts
|
|
2
|
+
WMStats.Globals.importScripts(["js/Views/Controls/WMStats.CommonControls.js"]);
|
|
3
|
+
|
|
4
|
+
if (WMStats.Globals.VARIANT == "tier1") {
|
|
5
|
+
//import tier1 specific table
|
|
6
|
+
WMStats.Globals.importScripts(["js/Views/Controls/T1/WMStats.Controls.js"]);
|
|
7
|
+
} else if (WMStats.Globals.VARIANT == "tier0") {
|
|
8
|
+
//import tie0 specific table
|
|
9
|
+
WMStats.Globals.importScripts( ["js/Views/Controls/T0/WMStats.Controls.js"]);
|
|
10
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
WMStats.namespace('CategoryDetailList');
|
|
2
|
+
(function() {
|
|
3
|
+
var format = function (requestStruct) {
|
|
4
|
+
var htmlstr = '';
|
|
5
|
+
var reqDoc = requestStruct.requests;
|
|
6
|
+
var reqSummary = requestStruct.summary;
|
|
7
|
+
|
|
8
|
+
htmlstr += "<div class='requestDetailBox'>";
|
|
9
|
+
htmlstr += "<ul>";
|
|
10
|
+
if (reqDoc) {
|
|
11
|
+
|
|
12
|
+
htmlstr += "<li><b>category:</b> " + requestStruct.key + "</li>";
|
|
13
|
+
htmlstr += "<li><b>queued (first):</b> " + reqSummary.getJobStatus("queued.first", 0) + "</li>";
|
|
14
|
+
htmlstr += "<li><b>queued (retried):</b> " + reqSummary.getJobStatus("queued.retry", 0) + "</li>";
|
|
15
|
+
htmlstr += "<li><b>created:</b> " + reqSummary.getWMBSTotalJobs() + "</li>";
|
|
16
|
+
htmlstr += "<li><b>paused jobs:</b> " + reqSummary.getTotalPaused() + "</li>";
|
|
17
|
+
htmlstr += "<li><b>cooloff jobs:</b> " + reqSummary.getTotalCooloff() + "</li>";
|
|
18
|
+
htmlstr += "<li><b>submitted:</b> " + reqSummary.getTotalSubmitted() + "</li>";
|
|
19
|
+
htmlstr += "<li><b>pending:</b> " + reqSummary.getJobStatus("submitted.pending", 0) + "</li>";
|
|
20
|
+
htmlstr += "<li><b>running:</b> " + reqSummary.getJobStatus("submitted.running", 0) + "</li>";
|
|
21
|
+
htmlstr += "<li><b>failure:</b> " + reqSummary.getTotalFailure() + "</li>";
|
|
22
|
+
htmlstr += "<li><b>success:</b> " + reqSummary.getJobStatus("success", 0) + "</li>";
|
|
23
|
+
}
|
|
24
|
+
htmlstr += "</ul>";
|
|
25
|
+
htmlstr += "</div>";
|
|
26
|
+
return htmlstr;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
WMStats.CategoryDetailList = function (data, containerDiv) {
|
|
30
|
+
$(containerDiv).html(format(data));
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var vm = WMStats.ViewModel;
|
|
34
|
+
|
|
35
|
+
vm.CategoryDetail.subscribe("data", function() {
|
|
36
|
+
WMStats.CategoryDetailList(vm.CategoryDetail.data(), vm.CategoryDetail.id());
|
|
37
|
+
});
|
|
38
|
+
})();
|
|
@@ -0,0 +1,128 @@
|
|
|
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 sPaused = summary.getJobStatus("paused.submit");
|
|
18
|
+
var jPaused = summary.getJobStatus("paused.job");
|
|
19
|
+
var cPaused = summary.getJobStatus("paused.create");
|
|
20
|
+
var lastState = errorArray[i].getLastStateAndTime();
|
|
21
|
+
var lastStatus = "N/A";
|
|
22
|
+
var lastUpdate = "N/A";
|
|
23
|
+
if (lastState !== null) {
|
|
24
|
+
lastStatus = lastState.status;
|
|
25
|
+
lastUpdate = WMStats.Utils.utcClock(new Date(lastState.update_time * 1000));
|
|
26
|
+
}
|
|
27
|
+
htmlList += ('<li> <a class="requestAlert">' + workflow + "</a>: status:" +
|
|
28
|
+
lastStatus + " (" + lastUpdate + "), cooloff " + cooloff +
|
|
29
|
+
" submit paused:" + sPaused + " job paused:" + jPaused +
|
|
30
|
+
" create paused:" + cPaused +
|
|
31
|
+
" failure:" + failure + " success:" + success +
|
|
32
|
+
" running:" + running + " pending:" + pending + '</li>');
|
|
33
|
+
}
|
|
34
|
+
htmlList += "</ul></div></fieldset>";
|
|
35
|
+
|
|
36
|
+
errorFlag = true;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
function mapType(workflowName){
|
|
42
|
+
// TODO: this is a hack to get jobType rely on the conventsion
|
|
43
|
+
// need a better solution
|
|
44
|
+
var workflowType = workflowName.split("_")[0].toLowerCase();
|
|
45
|
+
if (workflowType == "express") {
|
|
46
|
+
return 1;
|
|
47
|
+
} else if (workflowType == "repack") {
|
|
48
|
+
return 2;
|
|
49
|
+
} else if (workflowType == "promptreco") {
|
|
50
|
+
return 3;
|
|
51
|
+
}
|
|
52
|
+
return 4;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function alertSort(a, b) {
|
|
56
|
+
var aRun = a.run;
|
|
57
|
+
var bRun = b.run;
|
|
58
|
+
if (aRun == bRun) {
|
|
59
|
+
var aType = mapType(a.workflow);
|
|
60
|
+
var bType = mapType(b.workflow);
|
|
61
|
+
if ( aType == bType){
|
|
62
|
+
var aJobs = a.getSummary().getTotalPaused() + a.getSummary().getTotalCooloff();
|
|
63
|
+
var bJobs = b.getSummary().getTotalPaused() + b.getSummary().getTotalCooloff();
|
|
64
|
+
return bJobs - aJobs;
|
|
65
|
+
} else {
|
|
66
|
+
return aType - bType;
|
|
67
|
+
}
|
|
68
|
+
} else {
|
|
69
|
+
return aRun - bRun;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
var alertRequests = requestData.getRequestAlerts();
|
|
74
|
+
var errorFlag = false;
|
|
75
|
+
|
|
76
|
+
var htmlList = "";
|
|
77
|
+
|
|
78
|
+
if (alertRequests.cPaused.length > 0) {
|
|
79
|
+
var paused = alertRequests.cPaused.sort(alertSort);
|
|
80
|
+
displayAlert(paused, "create paused");
|
|
81
|
+
};
|
|
82
|
+
if (alertRequests.sPaused.length > 0) {
|
|
83
|
+
var paused = alertRequests.sPaused.sort(alertSort);
|
|
84
|
+
displayAlert(paused, "submit paused");
|
|
85
|
+
};
|
|
86
|
+
if (alertRequests.jPaused.length > 0) {
|
|
87
|
+
var paused = alertRequests.jPaused.sort(alertSort);
|
|
88
|
+
displayAlert(paused, "job paused");
|
|
89
|
+
};
|
|
90
|
+
if (alertRequests.configError.length > 0) {
|
|
91
|
+
var configError = alertRequests.configError.sort(alertSort);
|
|
92
|
+
displayAlert(configError, "Config Error");
|
|
93
|
+
};
|
|
94
|
+
if (alertRequests.siteError.length > 0) {
|
|
95
|
+
var siteError = alertRequests.siteError.sort(alertSort);
|
|
96
|
+
displayAlert(siteError, "Site Error");
|
|
97
|
+
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
$(containerDiv).addClass("request_error_box");
|
|
102
|
+
if (errorFlag) {
|
|
103
|
+
$(containerDiv).removeClass("stable warning").addClass("error").html(htmlList);
|
|
104
|
+
} else {
|
|
105
|
+
$(containerDiv).removeClass("warning error").addClass("stable").html("request alarm");
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
// controller for request alert view
|
|
110
|
+
(function() {
|
|
111
|
+
|
|
112
|
+
var vm = WMStats.ViewModel;
|
|
113
|
+
vm.RequestAlertPage.subscribe("data", function(){
|
|
114
|
+
var divSelector = vm.RequestAlertPage.id() + " div.summary_data";
|
|
115
|
+
WMStats.RequestAlertGUI(vm.RequestAlertPage.data(), divSelector);
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
$(document).on('click', 'a.requestAlert', function() {
|
|
119
|
+
var workflow = $(this).text();
|
|
120
|
+
vm.JobView.requestName(workflow);
|
|
121
|
+
//TODO: this cause calling one more time for retrieving data
|
|
122
|
+
vm.ActiveRequestPage.view(vm.JobView);
|
|
123
|
+
vm.page(vm.ActiveRequestPage);
|
|
124
|
+
|
|
125
|
+
$(this).addClass('reviewed');
|
|
126
|
+
});
|
|
127
|
+
})();
|
|
128
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
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 created: " + summary.getWMBSTotalJobs() + "</li>";
|
|
10
|
+
htmlstr += "<li> paused: " + summary.getTotalPaused() + "</li>";
|
|
11
|
+
htmlstr += "<li> cooloff: " + summary.getTotalCooloff() + "</li>";
|
|
12
|
+
htmlstr += "<li> success: " + summary.getJobStatus('success') + "</li>";
|
|
13
|
+
htmlstr += "<li> failure: " + summary.getTotalFailure() + "</li>";
|
|
14
|
+
htmlstr += "<li> queued: " + summary.getTotalQueued() + "</li>";
|
|
15
|
+
htmlstr += "<li> running: " + summary.getJobStatus('submitted.running') + "</li>";
|
|
16
|
+
htmlstr += "<li> pending: " + summary.getJobStatus('submitted.pending') + "</li>";
|
|
17
|
+
htmlstr += "</ul>";
|
|
18
|
+
htmlstr += "</div>";
|
|
19
|
+
return htmlstr;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
WMStats.RequestDataList = function (data, containerDiv) {
|
|
23
|
+
$(containerDiv).html(format(data));
|
|
24
|
+
};
|
|
25
|
+
})();
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
WMStats.namespace('RequestDetailList');
|
|
2
|
+
(function() {
|
|
3
|
+
|
|
4
|
+
var vm = WMStats.ViewModel;
|
|
5
|
+
var transitionFormat = function(dataArray, maxLength, summaryStr) {
|
|
6
|
+
var htmlstr = "";
|
|
7
|
+
if (dataArray == undefined || dataArray.length == undefined ||
|
|
8
|
+
dataArray.length <= maxLength) {
|
|
9
|
+
|
|
10
|
+
htmlstr += dataArray;
|
|
11
|
+
} else {
|
|
12
|
+
htmlstr += "<details> <summary>" + summaryStr +"</summary><ul>";
|
|
13
|
+
for (var i in dataArray) {
|
|
14
|
+
htmlstr += "<li> <b>" + dataArray[i].status + ":</b> " + WMStats.Utils.utcClock(new Date(dataArray[i].update_time * 1000)) + "</li>";
|
|
15
|
+
}
|
|
16
|
+
htmlstr += "</ul></details>";
|
|
17
|
+
}
|
|
18
|
+
return htmlstr;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var format = function (requestStruct) {
|
|
22
|
+
var htmlstr = '<div class="closingButton">X</div>';
|
|
23
|
+
var reqDoc = requestStruct.requests;
|
|
24
|
+
var reqSummary = requestStruct.summary;
|
|
25
|
+
|
|
26
|
+
htmlstr += "<div class='requestDetailBox'>";
|
|
27
|
+
htmlstr += "<ul>";
|
|
28
|
+
if (reqDoc) {
|
|
29
|
+
|
|
30
|
+
htmlstr += "<li><b>category:</b> " + requestStruct.key + "</li>";
|
|
31
|
+
htmlstr += "<li><b>state transition</b> " + transitionFormat(reqDoc[requestStruct.key].request_status, 0, "State List") + "</li>";
|
|
32
|
+
htmlstr += "<li><b>queued (first):</b> " + reqSummary.getJobStatus("queued.first", 0) + "</li>";
|
|
33
|
+
htmlstr += "<li><b>queued (retried):</b> " + reqSummary.getJobStatus("queued.retry", 0) + "</li>";
|
|
34
|
+
htmlstr += "<li><b>created:</b> " + reqSummary.getWMBSTotalJobs() + "</li>";
|
|
35
|
+
htmlstr += "<li><b>paused jobs:</b> " + reqSummary.getTotalPaused() + "</li>";
|
|
36
|
+
htmlstr += "<li><b>cooloff jobs:</b> " + reqSummary.getTotalCooloff() + "</li>";
|
|
37
|
+
htmlstr += "<li><b>submitted:</b> " + reqSummary.getTotalSubmitted() + "</li>";
|
|
38
|
+
htmlstr += "<li><b>pending:</b> " + reqSummary.getJobStatus("submitted.pending", 0) + "</li>";
|
|
39
|
+
htmlstr += "<li><b>running:</b> " + reqSummary.getJobStatus("submitted.running", 0) + "</li>";
|
|
40
|
+
htmlstr += "<li><b>failure:</b> " + reqSummary.getTotalFailure() + "</li>";
|
|
41
|
+
htmlstr += "<li><b>success:</b> " + reqSummary.getJobStatus("success", 0) + "</li>";
|
|
42
|
+
if (reqDoc.skipped) {
|
|
43
|
+
htmlstr += "<li>" + WMStats.Utils.expandFormat(reqDoc.getSkippedDetail(), "Skipped Summary", siteStatusFormat) + "</li>";
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
htmlstr += "</ul>";
|
|
47
|
+
htmlstr += "</div>";
|
|
48
|
+
return htmlstr;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
WMStats.RequestDetailList = function (workflow, containerDiv) {
|
|
52
|
+
var allRequests = vm.ActiveRequestPage.data();
|
|
53
|
+
var reqDoc = allRequests.getData(workflow);
|
|
54
|
+
var reqSummary = allRequests.getSummary(workflow);
|
|
55
|
+
var requests = {};
|
|
56
|
+
requests[workflow] = reqDoc;
|
|
57
|
+
var data = {key: workflow, requests: requests, summary: reqSummary};
|
|
58
|
+
$(containerDiv).html(format(data));
|
|
59
|
+
$(containerDiv).show("slide", {}, 500);
|
|
60
|
+
vm.RequestDetail.open = true;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
var vm = WMStats.ViewModel;
|
|
64
|
+
|
|
65
|
+
vm.RequestDetail.subscribe("requestName", function() {
|
|
66
|
+
WMStats.RequestDetailList(vm.RequestDetail.requestName(), vm.RequestDetail.id());
|
|
67
|
+
});
|
|
68
|
+
})();
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
WMStats.namespace('RequestSummaryList');
|
|
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><b>requests:</b> " + summary.summaryStruct.length + "</li>";
|
|
9
|
+
htmlstr += "<li><b>created:</b> " + summary.getWMBSTotalJobs() + "</li>";
|
|
10
|
+
htmlstr += "<li><b>cooloff:</b> " + summary.getTotalCooloff() + "</li>";
|
|
11
|
+
htmlstr += "<li><b>success:</b> " + summary.getJobStatus('success') + "</li>";
|
|
12
|
+
htmlstr += "<li><b>failure:</b> " + summary.getTotalFailure() + "</li>";
|
|
13
|
+
htmlstr += "<li><b>queued:</b> " + summary.getTotalQueued() + "</li>";
|
|
14
|
+
htmlstr += "<li><b>running:</b> " + summary.getJobStatus('submitted.running') + "</li>";
|
|
15
|
+
htmlstr += "<li><b>pending:</b> " + summary.getJobStatus('submitted.pending') + "</li>";
|
|
16
|
+
htmlstr += "</ul>";
|
|
17
|
+
htmlstr += "</div>";
|
|
18
|
+
return htmlstr;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
WMStats.RequestSummaryList = function (data, containerDiv) {
|
|
22
|
+
$(containerDiv).html(format(data));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var vm = WMStats.ViewModel;
|
|
26
|
+
|
|
27
|
+
vm.ActiveRequestPage.subscribe("data", function() {
|
|
28
|
+
var filteredData = vm.ActiveRequestPage.data();
|
|
29
|
+
WMStats.RequestSummaryList(filteredData.getSummary(), "#filter_summary");
|
|
30
|
+
});
|
|
31
|
+
})();
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
WMStats.namespace('CategoryDetailList');
|
|
2
|
+
(function() {
|
|
3
|
+
var format = function (requestStruct) {
|
|
4
|
+
var htmlstr = '';
|
|
5
|
+
var reqDoc = requestStruct.requests[requestStruct.key];
|
|
6
|
+
var reqSummary = requestStruct.summary;
|
|
7
|
+
|
|
8
|
+
htmlstr += "<div class='requestDetailBox'>";
|
|
9
|
+
htmlstr += "<ul>";
|
|
10
|
+
if (reqDoc) {
|
|
11
|
+
htmlstr += "<li><b>campaign:</b> " + reqDoc.campaign + "</li>";
|
|
12
|
+
htmlstr += "<li><b>workflow:</b> " + WMStats.Utils.formatReqDetailUrl(reqDoc.workflow) + "</li>";
|
|
13
|
+
htmlstr += "<li><b>requestor:</b> " + reqDoc.requestor + "</li>";
|
|
14
|
+
htmlstr += "<li><b>request date:</b> " + reqDoc.request_date + "</li>";
|
|
15
|
+
htmlstr += "<li><b>request type:</b> " + reqDoc.request_type + "</li>";
|
|
16
|
+
htmlstr += "<li><b>CMSSW:</b> " + reqDoc.cmssw + "</li>";
|
|
17
|
+
htmlstr += "<li><b>user dn:</b> " + reqDoc.user_dn + "</li>";
|
|
18
|
+
//htmlstr += "<li><b>vo role:</b> " + reqDoc.vo_role + "</li>";
|
|
19
|
+
//htmlstr += "<li><b>vo group:</b> " + reqDoc.vo_group + "</li>";
|
|
20
|
+
htmlstr += "<li><b>status:</b> " + WMStats.Utils.formatWorkloadSummarylUrl(reqDoc.workflow,
|
|
21
|
+
reqDoc.request_status[reqDoc.request_status.length - 1].status) + "</li>";
|
|
22
|
+
htmlstr += "<li><b>input dataset:</b> " + WMStats.Utils.getInputDatasets(reqDoc) + "</li>";
|
|
23
|
+
htmlstr += "<li><b>input events:</b> " + reqDoc.input_events + "</li>";
|
|
24
|
+
htmlstr += "<li><b>input lumis:</b> " + reqDoc.input_lumis + "</li>";
|
|
25
|
+
htmlstr += "<li><b>input files:</b> " + reqDoc.input_num_files + "</li>";
|
|
26
|
+
htmlstr += "<li><b>site white list:</b> " + reqDoc.site_white_list + "</li>";
|
|
27
|
+
htmlstr += "<li><b>output datasets:</b> " + reqDoc.outputdatasets + "</li>";
|
|
28
|
+
}
|
|
29
|
+
if (reqSummary) {
|
|
30
|
+
htmlstr += "<li><b>output events:</b> " + reqSummary.summaryStruct.processedEvents + "</li>";
|
|
31
|
+
htmlstr += "<li><b>queued (first):</b> " + reqSummary.getJobStatus("queued.first", 0) + "</li>";
|
|
32
|
+
htmlstr += "<li><b>queued (retried):</b> " + reqSummary.getJobStatus("queued.retry", 0) + "</li>";
|
|
33
|
+
htmlstr += "<li><b>cooloff jobs:</b> " + reqSummary.getTotalCooloff() + "</li>";
|
|
34
|
+
htmlstr += "<li><b>pending:</b> " + reqSummary.getJobStatus("submitted.pending", 0) + "</li>";
|
|
35
|
+
htmlstr += "<li><b>running:</b> " + reqSummary.getJobStatus("submitted.running", 0) + "</li>";
|
|
36
|
+
htmlstr += "<li><b>failure:</b>" + reqSummary.getTotalFailure() + "</li>";
|
|
37
|
+
htmlstr += "<li><b>success:</b> " + reqSummary.getJobStatus("success", 0) + "</li>";
|
|
38
|
+
}
|
|
39
|
+
htmlstr += "</ul>";
|
|
40
|
+
htmlstr += "</div>";
|
|
41
|
+
return htmlstr;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
WMStats.CategoryDetailList = function (data, containerDiv) {
|
|
45
|
+
$(containerDiv).html(format(data));
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
var vm = WMStats.ViewModel;
|
|
49
|
+
|
|
50
|
+
vm.CategoryDetail.subscribe("data", function() {
|
|
51
|
+
WMStats.CategoryDetailList(vm.CategoryDetail.data(), vm.CategoryDetail.id());
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
})();
|