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,63 @@
|
|
|
1
|
+
WMStats.namespace("SiteSummaryTable");
|
|
2
|
+
|
|
3
|
+
WMStats.SiteSummaryTable = function (data, containerDiv) {
|
|
4
|
+
|
|
5
|
+
var tableConfig = {
|
|
6
|
+
"pageLength": 50,
|
|
7
|
+
"dom": '<"top"plf>rt<"bottom"ip>',
|
|
8
|
+
"scrollX": "",
|
|
9
|
+
"columns": [
|
|
10
|
+
{"title": "D",
|
|
11
|
+
"defaultContent": 0,
|
|
12
|
+
"render": function (data, type, row, meta) {
|
|
13
|
+
return WMStats.Utils.formatDetailButton("detail");
|
|
14
|
+
}},
|
|
15
|
+
{"title": "L",
|
|
16
|
+
"defaultContent": 0,
|
|
17
|
+
"render": function (data, type, row, meta) {
|
|
18
|
+
return WMStats.Utils.formatDetailButton("drill");
|
|
19
|
+
}},
|
|
20
|
+
{ "data": "key", "title": "site"},
|
|
21
|
+
{ "render": function (data, type, row, meta) {
|
|
22
|
+
return row.summary.summaryStruct.numRequests;
|
|
23
|
+
}, "title": "requests", "defaultContent": 0,
|
|
24
|
+
},
|
|
25
|
+
{ "render": function (data, type, row, meta) {
|
|
26
|
+
return row.summary.getJobStatus("submitted.pending");
|
|
27
|
+
}, "title": "pending", "defaultContent": 0,
|
|
28
|
+
},
|
|
29
|
+
{ "render": function (data, type, row, meta) {
|
|
30
|
+
return row.summary.getJobStatus("submitted.running");
|
|
31
|
+
}, "title": "running", "defaultContent": 0,
|
|
32
|
+
},
|
|
33
|
+
{ "render": function (data, type, row, meta) {
|
|
34
|
+
return row.summary.getTotalCooloff();
|
|
35
|
+
}, "title": "cool off", "defaultContent": 0,
|
|
36
|
+
}, /*
|
|
37
|
+
{ "defaultContent": 0,
|
|
38
|
+
"title": "event progress",
|
|
39
|
+
"render": function (data, type, row, meta) {
|
|
40
|
+
//TODO this might not needed since input_events should be number not string. (for the regacy record)
|
|
41
|
+
var totalEvents = row.summary.summaryStruct.totalEvents || 1;
|
|
42
|
+
var result = row.summary.summaryStruct.processedEvents / totalEvents * 100
|
|
43
|
+
return (result.toFixed(1) + "%");
|
|
44
|
+
}
|
|
45
|
+
},*/
|
|
46
|
+
{ "defaultContent": 0,
|
|
47
|
+
"title": "failure rate",
|
|
48
|
+
"render": function (data, type, row, meta) {
|
|
49
|
+
var failJobs = row.summary.getTotalFailure();
|
|
50
|
+
var successJobs = row.summary.getJobStatus("success");
|
|
51
|
+
var totalCompleteJobs = (successJobs + failJobs) || 1;
|
|
52
|
+
var result = failJobs / totalCompleteJobs * 100;
|
|
53
|
+
return (result.toFixed(1) + "%");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
};
|
|
58
|
+
tableConfig.data = data.getList();
|
|
59
|
+
|
|
60
|
+
var filterConfig = {};
|
|
61
|
+
|
|
62
|
+
return WMStats.Table(tableConfig).create(containerDiv,filterConfig);
|
|
63
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
WMStats.namespace("TaskSummaryTable");
|
|
2
|
+
|
|
3
|
+
WMStats.TaskSummaryTable = function (data, containerDiv) {
|
|
4
|
+
|
|
5
|
+
var taskData = data;
|
|
6
|
+
var _activePageData = WMStats.ViewModel.ActiveRequestPage.data();
|
|
7
|
+
var tableConfig = {
|
|
8
|
+
"dom": '<"top"plf>rt<"bottom"ip>',
|
|
9
|
+
"pageLength": 25,
|
|
10
|
+
"columns": [
|
|
11
|
+
{ "render": function (data, type, row, meta) {
|
|
12
|
+
if (type == 'display') {
|
|
13
|
+
var taskList = row[0].split('/');
|
|
14
|
+
return taskList[taskList.length - 1];
|
|
15
|
+
}
|
|
16
|
+
return row;
|
|
17
|
+
}, "title": "task", "sWidth": "150px"},
|
|
18
|
+
{ "defaultContent": 0,
|
|
19
|
+
"title": "created",
|
|
20
|
+
"render": function (data, type, row, meta) {
|
|
21
|
+
var taskSummary = taskData.getSummary(row[0]);
|
|
22
|
+
var jobs = taskSummary.getWMBSTotalJobs();
|
|
23
|
+
return jobs;
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{ "defaultContent": 0,
|
|
27
|
+
"title": "queued",
|
|
28
|
+
"render": function (data, type, row, meta) {
|
|
29
|
+
var taskSummary = taskData.getSummary(row[0]);
|
|
30
|
+
var jobs = taskSummary.getTotalQueued();
|
|
31
|
+
return jobs;
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{ "defaultContent": 0,
|
|
35
|
+
"title": "pending ",
|
|
36
|
+
"render": function (data, type, row, meta) {
|
|
37
|
+
var taskSummary = taskData.getSummary(row[0]);
|
|
38
|
+
var jobs = taskSummary.getPending();
|
|
39
|
+
return jobs;
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{ "defaultContent": 0,
|
|
43
|
+
"title": "running ",
|
|
44
|
+
"render": function (data, type, row, meta) {
|
|
45
|
+
var taskSummary = taskData.getSummary(row[0]);
|
|
46
|
+
var jobs = taskSummary.getRunning();
|
|
47
|
+
return jobs;
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{ "defaultContent": 0,
|
|
51
|
+
"title": "success ",
|
|
52
|
+
"render": function (data, type, row, meta) {
|
|
53
|
+
var taskSummary = taskData.getSummary(row[0]);
|
|
54
|
+
var jobs = taskSummary.getJobStatus("success");
|
|
55
|
+
return jobs;
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{ "defaultContent": 0,
|
|
59
|
+
"title": "failure ",
|
|
60
|
+
"render": function (data, type, row, meta) {
|
|
61
|
+
var taskSummary = taskData.getSummary(row[0]);
|
|
62
|
+
var jobs = taskSummary.getTotalFailure();
|
|
63
|
+
return jobs;
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{ "defaultContent": 0,
|
|
67
|
+
"title": "cool off ",
|
|
68
|
+
"render": function (data, type, row, meta) {
|
|
69
|
+
var taskSummary = taskData.getSummary(row[0]);
|
|
70
|
+
var jobs = taskSummary.getTotalCooloff();
|
|
71
|
+
return jobs;
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{ "defaultContent": 0,
|
|
75
|
+
"title": "event progress",
|
|
76
|
+
"render": function (data, type, row, meta) {
|
|
77
|
+
//TODO this might not needed since input_events should be number not string. (for the legacy record)
|
|
78
|
+
var inputEvents = Number(_activePageData.getKeyValue(taskData.getWorkflow(), "input_events", 1)) || 1;
|
|
79
|
+
var outputEvents = taskData.getSummary(row[0]).getAvgEvents() || 0;
|
|
80
|
+
var result = (outputEvents / inputEvents) * 100;
|
|
81
|
+
return (result.toFixed(1) + "%");
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{ "defaultContent": 0,
|
|
85
|
+
"title": "lumi progress",
|
|
86
|
+
"render": function (data, type, row, meta) {
|
|
87
|
+
var inputLumis = Number(_activePageData.getKeyValue(taskData.getWorkflow(), "input_lumis", 1)) || 1;
|
|
88
|
+
var outputLumis = taskData.getSummary(row[0]).getAvgLumis();
|
|
89
|
+
var result = (outputLumis / inputLumis) * 100;
|
|
90
|
+
return (result.toFixed(1) + "%");
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"order": [[1, 'asc']]
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
var taskNamesArray = [];
|
|
98
|
+
for (var taskNames in data.getData()){
|
|
99
|
+
taskNamesArray.push([taskNames]);
|
|
100
|
+
}
|
|
101
|
+
tableConfig.data = taskNamesArray;
|
|
102
|
+
|
|
103
|
+
var filterConfig = {};
|
|
104
|
+
|
|
105
|
+
return WMStats.Table(tableConfig).create(containerDiv, filterConfig);
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
(function() {
|
|
109
|
+
var vm = WMStats.ViewModel;
|
|
110
|
+
var E = WMStats.CustomEvents;
|
|
111
|
+
|
|
112
|
+
vm.JobView.subscribe("requestName", function() {
|
|
113
|
+
// empty job detail and resubmission window first
|
|
114
|
+
vm.JobDetail.keys(null, true);
|
|
115
|
+
$(vm.JobDetail.id()).empty();
|
|
116
|
+
$(vm.Resubmission.id()).empty();
|
|
117
|
+
// need to create the lower level view
|
|
118
|
+
var divSelector = vm.JobView.id() + " div.task_summary";
|
|
119
|
+
var tasks = WMStats.ActiveRequestModel.getData().getTasks(vm.JobView.requestName());
|
|
120
|
+
WMStats.TaskSummaryTable(tasks, divSelector);
|
|
121
|
+
$(WMStats.Globals.Event).triggerHandler(E.AJAX_LOADING_START);
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
})();
|
reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/addCategoryMap.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//T1 specific categoryMap
|
|
2
|
+
(function(vm){
|
|
3
|
+
//register mapping
|
|
4
|
+
WMStats.CategorySummaryMap.add(vm.SiteCategory.name(), WMStats.SiteSummary);
|
|
5
|
+
WMStats.CategoryTableMap.add(vm.SiteCategory.name(), WMStats.SiteSummaryTable);
|
|
6
|
+
|
|
7
|
+
WMStats.CategoryTableMap.add(vm.RequestView.categoryName,
|
|
8
|
+
{'progress': WMStats.ActiveRequestTable,
|
|
9
|
+
'numJobs':WMStats.ActiveRequestTableWithJob});
|
|
10
|
+
|
|
11
|
+
WMStats.CategorySummaryMap.add(vm.CampaignCategory.name(), WMStats.CampaignSummary);
|
|
12
|
+
WMStats.CategoryTableMap.add(vm.CampaignCategory.name(), WMStats.CampaignSummaryTable);
|
|
13
|
+
WMStats.CategorySummaryMap.add(vm.CMSSWCategory.name(), WMStats.CMSSWSummary);
|
|
14
|
+
WMStats.CategoryTableMap.add(vm.CMSSWCategory.name(), WMStats.CMSSWSummaryTable);
|
|
15
|
+
WMStats.CategorySummaryMap.add(vm.AgentCategory.name(), WMStats.AgentRequestSummary);
|
|
16
|
+
WMStats.CategoryTableMap.add(vm.AgentCategory.name(), WMStats.AgentRequestSummaryTable);
|
|
17
|
+
})(WMStats.ViewModel);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
WMStats.namespace("JobSummaryTable");
|
|
2
|
+
|
|
3
|
+
WMStats.JobSummaryTable = function (data, containerDiv) {
|
|
4
|
+
|
|
5
|
+
var tableConfig = {
|
|
6
|
+
"dom": '<"top"plf>rt<"bottom"ip>',
|
|
7
|
+
"pageLength": 25,
|
|
8
|
+
"columns": [
|
|
9
|
+
{"title": "L",
|
|
10
|
+
"defaultContent": 0,
|
|
11
|
+
"render": function (data, type, row, meta) {
|
|
12
|
+
return WMStats.Utils.formatDetailButton("drill");
|
|
13
|
+
}},
|
|
14
|
+
{ "render": function (data, type, row, meta) {
|
|
15
|
+
if (type == 'display') {
|
|
16
|
+
var taskList = row.task.split('/');
|
|
17
|
+
return taskList[taskList.length - 1];
|
|
18
|
+
}
|
|
19
|
+
return row.task;
|
|
20
|
+
}, "title": "task", "width": "150px"},
|
|
21
|
+
{ "data": "status", "title": "status"},
|
|
22
|
+
{ "data": "site", "title": "site"},
|
|
23
|
+
{ "data": "exitCode", "title": "exit code"},
|
|
24
|
+
{ "data": "count", "title": "jobs"},
|
|
25
|
+
{ "data": "errorMsg", "title": "error mesage",
|
|
26
|
+
"defaultContent": ""},
|
|
27
|
+
{ "title": "acdc", defaultContent: "",
|
|
28
|
+
"width": "15px",
|
|
29
|
+
"render": function (data, type, row, meta) {
|
|
30
|
+
if (type == 'display') {
|
|
31
|
+
var taskList = row.task.split('/');
|
|
32
|
+
var endTask = taskList[taskList.length - 1];
|
|
33
|
+
if (row.status !== "success" &&
|
|
34
|
+
!endTask.match(/LogCollect$/) &&
|
|
35
|
+
!endTask.match(/Cleanup$/)) {
|
|
36
|
+
return WMStats.Utils.formatDetailButton("acdc");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return "";
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"order": [[1, 'asc']]
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
tableConfig.data = data.getData().status;
|
|
47
|
+
|
|
48
|
+
var filterConfig = {};
|
|
49
|
+
|
|
50
|
+
$(containerDiv).data('workflow', (data.getData()).workflow);
|
|
51
|
+
|
|
52
|
+
// store the table data
|
|
53
|
+
WMStats.JobSummaryTable.data = WMStats.Table(tableConfig).create(containerDiv, filterConfig);
|
|
54
|
+
return WMStats.JobSummaryTable.data;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
(function() {
|
|
58
|
+
var vm = WMStats.ViewModel;
|
|
59
|
+
|
|
60
|
+
vm.JobView.subscribe("data", function() {
|
|
61
|
+
// need to create the lower level view
|
|
62
|
+
var divSelector = vm.JobView.id() + " div.summary_data";
|
|
63
|
+
WMStats.JobSummaryTable(vm.JobView.data(), divSelector);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
/*
|
|
67
|
+
vm.AlertJobView.subscribe("data", function() {
|
|
68
|
+
WMStats.JobSummaryTable(vm.AlertJobView.data(), vm.AlertJobView.id());
|
|
69
|
+
});
|
|
70
|
+
*/
|
|
71
|
+
})();
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
WMStats.namespace("Table");
|
|
2
|
+
WMStats.Table = function(config, tableSetting) {
|
|
3
|
+
|
|
4
|
+
var tableSetting = tableSetting || '<table cellpadding="0" cellspacing="0" border="0.5" class="display" width="100%"></table>';
|
|
5
|
+
var tableConfig = {
|
|
6
|
+
//"paginationType": "full_numbers",
|
|
7
|
+
//"scrollX": "100%",
|
|
8
|
+
//"scrollCollapse": true,
|
|
9
|
+
"stateSave": true,
|
|
10
|
+
"processing": true,
|
|
11
|
+
//"iDisplayLength": 10,
|
|
12
|
+
"dom": '<"top"pl>rt<"bottom"ip>',
|
|
13
|
+
//"sDom": 'C<"clear">lfrtip',
|
|
14
|
+
"autoWidth": true,
|
|
15
|
+
"jQueryUI": true
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
function updateConfig(config) {
|
|
19
|
+
for (var prop in config) {
|
|
20
|
+
tableConfig[prop] = config[prop];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* footer is needed to use columnFilter */
|
|
26
|
+
function _footer() {
|
|
27
|
+
var footer = '<tfoot><tr>';
|
|
28
|
+
|
|
29
|
+
for (var i in tableConfig.aoColumns) {
|
|
30
|
+
if (tableConfig.aoColumns[i].bVisible != false){
|
|
31
|
+
footer += '<th>' + tableConfig.aoColumns[i]["title"] + '</th>';
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
footer += '</tr></tfoot>';
|
|
35
|
+
return footer;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function create(selector, filterConfig) {
|
|
39
|
+
$(selector).empty();
|
|
40
|
+
$(selector).html(tableSetting);
|
|
41
|
+
|
|
42
|
+
tableConfig.stateSaveCallback = function(settings,data) {
|
|
43
|
+
localStorage.setItem(selector, JSON.stringify(data));
|
|
44
|
+
};
|
|
45
|
+
tableConfig.stateLoadCallback = function(settings) {
|
|
46
|
+
return JSON.parse(localStorage.getItem(selector));
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
var oTable = $(selector + " table").DataTable(tableConfig);
|
|
50
|
+
if ( oTable.length > 0 ) {
|
|
51
|
+
oTable.columns.adjust().draw();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
jQuery(WMStats.Globals.Event).triggerHandler(WMStats.CustomEvents.LOADING_DIV_END);
|
|
55
|
+
|
|
56
|
+
//TODO: enable column filter
|
|
57
|
+
//if (filterConfig) {
|
|
58
|
+
//oTable.append(_footer());
|
|
59
|
+
//https://datatables.net/reference/api/column().search()
|
|
60
|
+
//}
|
|
61
|
+
return oTable;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (config) {updateConfig(config);}
|
|
65
|
+
|
|
66
|
+
return {'config': tableConfig,
|
|
67
|
+
'updateConfig': updateConfig,
|
|
68
|
+
'create': create
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Add EventHandler
|
|
3
|
+
*/
|
|
4
|
+
(function($) {
|
|
5
|
+
|
|
6
|
+
//custom events
|
|
7
|
+
var E = WMStats.CustomEvents;
|
|
8
|
+
var vm = WMStats.ViewModel;
|
|
9
|
+
|
|
10
|
+
// Super class for table event handling
|
|
11
|
+
function TableEventHandler(containerID, populateRequestTable) {
|
|
12
|
+
this.containerID = containerID;
|
|
13
|
+
if (populateRequestTable) {
|
|
14
|
+
this.populateRequestTable = populateRequestTable;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
// add Classmethod and property
|
|
18
|
+
TableEventHandler.highlightRow = function(selector, currenElement) {
|
|
19
|
+
$(selector).removeClass('mouseclickRow');
|
|
20
|
+
$(currenElement).addClass('mouseclickRow');
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
TableEventHandler.prototype = {
|
|
24
|
+
constructor: TableEventHandler,
|
|
25
|
+
|
|
26
|
+
tableRowBind: function(bind, parentSelector, func) {
|
|
27
|
+
var currentObj = this;
|
|
28
|
+
var selector = parentSelector + " table tbody tr";
|
|
29
|
+
$(document).on(bind, selector, function () {
|
|
30
|
+
TableEventHandler.highlightRow(selector, this);
|
|
31
|
+
currentObj[func](this);
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
tableColumnBind: function(bind, parentSelector, name, func) {
|
|
36
|
+
var currentObj = this;
|
|
37
|
+
var selector = parentSelector + ' table tbody tr td div[name="' + name + '"]';
|
|
38
|
+
var rowSelector = parentSelector + ' table tbody tr';
|
|
39
|
+
$(document).on(bind, selector, function () {
|
|
40
|
+
var currentRow = $(this).closest("tr")[0];
|
|
41
|
+
TableEventHandler.highlightRow(rowSelector, currentRow);
|
|
42
|
+
currentObj[func](currentRow);
|
|
43
|
+
event.preventDefault();
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
populateRequestSummary: function(currentElement){
|
|
48
|
+
// create the request table
|
|
49
|
+
var nTds = $('td', currentElement);
|
|
50
|
+
vm.RequestView.categoryKey($(nTds[2]).text());
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
populateJobSummary: function(currentElement){
|
|
54
|
+
|
|
55
|
+
var nTds = $('td', currentElement);
|
|
56
|
+
vm.JobView.requestName($(nTds[2]).text());
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
populateRequestDetail: function(currentElement){
|
|
60
|
+
// create the request table
|
|
61
|
+
var nTds = $('td', currentElement);
|
|
62
|
+
vm.RequestDetail.requestName($(nTds[2]).text());
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
populateCategoryDetail: function(currentElement){
|
|
66
|
+
// create the request table
|
|
67
|
+
var nTds = $('td', currentElement);
|
|
68
|
+
vm.CategoryDetail.categoryKey($(nTds[2]).text());
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
populateJobDetail: function (currentElement){
|
|
72
|
+
// 2. create the job detail view
|
|
73
|
+
var summary = {};
|
|
74
|
+
// need to get the workflow name with out depending on the selector
|
|
75
|
+
summary.workflow = $("#job_view div.summary_data").data("workflow");
|
|
76
|
+
//summary.task = $(nTds[0]).text();
|
|
77
|
+
var currentRow = $(currentElement).closest("tr")[0];
|
|
78
|
+
var currentRowData = WMStats.JobSummaryTable.data.row(currentElement).data();
|
|
79
|
+
summary.task = currentRowData.task;
|
|
80
|
+
summary.status = currentRowData.status;
|
|
81
|
+
summary.site = currentRowData.site;
|
|
82
|
+
if (summary.site ==="{}"){
|
|
83
|
+
summary.site = {};
|
|
84
|
+
}
|
|
85
|
+
summary.acdcURL = currentRowData.acdcURL;
|
|
86
|
+
summary.exitCode = currentRowData.exitCode;
|
|
87
|
+
|
|
88
|
+
vm.JobDetail.keys(summary);
|
|
89
|
+
$(WMStats.Globals.Event).triggerHandler(E.AJAX_LOADING_START);
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
createACDCResubmission: function (currentElement){
|
|
93
|
+
var workflow = $("#job_view div.summary_data").data("workflow");
|
|
94
|
+
var summary = {};
|
|
95
|
+
summary.requestName = workflow;
|
|
96
|
+
//TODO: should be getting most information from request mgr database
|
|
97
|
+
var currentRowData = WMStats.JobSummaryTable.data.row(currentElement).data();
|
|
98
|
+
summary.task = currentRowData.task;
|
|
99
|
+
summary.acdcURL = currentRowData.acdcURL;
|
|
100
|
+
vm.Resubmission.keys(summary);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
var ActiveModelHandler = new TableEventHandler();
|
|
105
|
+
ActiveModelHandler.tableColumnBind('click', "#category_view div.summary_data", "drill",
|
|
106
|
+
"populateRequestSummary");
|
|
107
|
+
ActiveModelHandler.tableColumnBind("click", "#request_view div.summary_data", "drill",
|
|
108
|
+
"populateJobSummary");
|
|
109
|
+
//ActiveModelHandler.tableRowBind("click","#job_view div.summary_data",
|
|
110
|
+
// "populateJobDetail");
|
|
111
|
+
ActiveModelHandler.tableColumnBind("click","#job_view div.summary_data", "drill",
|
|
112
|
+
"populateJobDetail");
|
|
113
|
+
ActiveModelHandler.tableColumnBind("click","#job_view div.summary_data", "acdc",
|
|
114
|
+
"createACDCResubmission");
|
|
115
|
+
ActiveModelHandler.tableColumnBind('click', "#category_view div.summary_data", "detail",
|
|
116
|
+
"populateCategoryDetail");
|
|
117
|
+
ActiveModelHandler.tableColumnBind('click', "#request_view div.summary_data", "detail",
|
|
118
|
+
"populateRequestDetail");
|
|
119
|
+
|
|
120
|
+
// actual event binding codes
|
|
121
|
+
// row mouse over/ mouse out events
|
|
122
|
+
$(document).on('mouseover', 'tr', function(event) {
|
|
123
|
+
$(this).addClass('mouseoverRow');
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
$(document).on('mouseout', 'tr', function(event) {
|
|
127
|
+
$(this).removeClass('mouseoverRow');
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
})(jQuery);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
WMStats.namespace("WorkloadSummaryTable");
|
|
2
|
+
|
|
3
|
+
WMStats.WorkloadSummaryTable = function (data, containerDiv) {
|
|
4
|
+
|
|
5
|
+
var formatReqDetailUrl = WMStats.Utils.formatReqDetailUrl;
|
|
6
|
+
var formatWorkloadSummarylUrl = WMStats.Utils.formatWorkloadSummarylUrl;
|
|
7
|
+
|
|
8
|
+
var tableConfig = {
|
|
9
|
+
"pageLength": 25,
|
|
10
|
+
"scrollX": true,
|
|
11
|
+
"dom": 'lfrtip',
|
|
12
|
+
"columns": [
|
|
13
|
+
/*
|
|
14
|
+
{"title": "D",
|
|
15
|
+
"defaultContent": 0,
|
|
16
|
+
"width": "15px",
|
|
17
|
+
"render": function (data, type, row, meta) {
|
|
18
|
+
return WMStats.Utils.formatDetailButton("detail");
|
|
19
|
+
}},
|
|
20
|
+
{"title": "L",
|
|
21
|
+
"defaultContent": 0,
|
|
22
|
+
"width": "15px",
|
|
23
|
+
"render": function (data, type, row, meta) {
|
|
24
|
+
return WMStats.Utils.formatDetailButton("drill");
|
|
25
|
+
}},
|
|
26
|
+
*/
|
|
27
|
+
{ "data": "workflow", "title": "workflow",
|
|
28
|
+
"render": function (data, type, row, meta) {
|
|
29
|
+
return formatReqDetailUrl(row._id);
|
|
30
|
+
},
|
|
31
|
+
"width": "150px"
|
|
32
|
+
},
|
|
33
|
+
{"render": function (data, type, row, meta) {
|
|
34
|
+
if (type === "display") {
|
|
35
|
+
return formatWorkloadSummarylUrl(row._id,
|
|
36
|
+
row.request_status[row.request_status.length -1].status);
|
|
37
|
+
}
|
|
38
|
+
return row.request_status[row.request_status.length -1].status;
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{ "data": "request_type", "title": "type", "defaultContent": ""},
|
|
42
|
+
{ "data": "priority", "title": "priority", "defaultContent": 0},
|
|
43
|
+
{ "data": "campaign", "title": "campaign", "defaultContent": ""}
|
|
44
|
+
]
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
var filterConfig = {};
|
|
48
|
+
|
|
49
|
+
tableConfig.data = data.getData();
|
|
50
|
+
|
|
51
|
+
return WMStats.Table(tableConfig).create(containerDiv, filterConfig);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
(function() {
|
|
55
|
+
|
|
56
|
+
var vm = WMStats.ViewModel;
|
|
57
|
+
|
|
58
|
+
vm.SearchPage.subscribe("data", function(){
|
|
59
|
+
WMStats.WorkloadSummaryTable(vm.SearchPage.data(), "#search_result_board");
|
|
60
|
+
});
|
|
61
|
+
})();
|
|
62
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//import common scripts
|
|
2
|
+
|
|
3
|
+
WMStats.Globals.importScripts([
|
|
4
|
+
"js/Views/Tables/WMStats.Table.js",
|
|
5
|
+
"js/Views/Tables/WMStats.JobSummaryTable.js",
|
|
6
|
+
"js/Views/Tables/WMStats.WorkloadSummaryTable.js",
|
|
7
|
+
"js/Views/Tables/WMStats.TableController.js"
|
|
8
|
+
]);
|
|
9
|
+
|
|
10
|
+
if (WMStats.Globals.VARIANT == "tier1") {
|
|
11
|
+
//import tier1 specific table
|
|
12
|
+
WMStats.Globals.importScripts(["js/Views/Tables/T1/WMStats.ActiveRequestTable.js",
|
|
13
|
+
"js/Views/Tables/T1/WMStats.ActiveRequestTableWithJob.js",
|
|
14
|
+
"js/Views/Tables/T1/WMStats.TaskSummaryTable.js",
|
|
15
|
+
"js/Views/Tables/T1/WMStats.CampaignSummaryTable.js",
|
|
16
|
+
"js/Views/Tables/T1/WMStats.SiteSummaryTable.js",
|
|
17
|
+
"js/Views/Tables/T1/WMStats.CMSSWSummaryTable.js",
|
|
18
|
+
"js/Views/Tables/T1/WMStats.AgentRequestSummaryTable.js",
|
|
19
|
+
"js/Views/Tables/T1/addCategoryMap.js"]);
|
|
20
|
+
} else if (WMStats.Globals.VARIANT == "tier0") {
|
|
21
|
+
//import tie0 specific table
|
|
22
|
+
WMStats.Globals.importScripts(["js/Views/Tables/T0/WMStats.ActiveRequestTable.js",
|
|
23
|
+
"js/Views/Tables/T0/WMStats.RunSummaryTable.js",
|
|
24
|
+
"js/Views/Tables/T0/WMStats.TaskSummaryTable.js",
|
|
25
|
+
"js/Views/Tables/T0/addCategoryMap.js"]);
|
|
26
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
WMStats.namespace("CategorySummaryMap");
|
|
2
|
+
WMStats.namespace("CategoryTableMap");
|
|
3
|
+
|
|
4
|
+
WMStats.CategorySummaryMap = function(){
|
|
5
|
+
var summaryMap = {};
|
|
6
|
+
function add(category, summaryFunc) {
|
|
7
|
+
summaryMap[category] = summaryFunc;
|
|
8
|
+
}
|
|
9
|
+
function get(category) {
|
|
10
|
+
return summaryMap[category];
|
|
11
|
+
}
|
|
12
|
+
return {add: add, get: get};
|
|
13
|
+
}();
|
|
14
|
+
|
|
15
|
+
WMStats.CategoryTableMap = function(){
|
|
16
|
+
var tableMap = {};
|
|
17
|
+
var vm = WMStats.ViewModel;
|
|
18
|
+
function add(category, view) {
|
|
19
|
+
tableMap[category] = view;
|
|
20
|
+
}
|
|
21
|
+
function get(category, view) {
|
|
22
|
+
if (category === vm.RequestView.categoryName) {
|
|
23
|
+
return tableMap[category][vm.RequestView.format().name()];
|
|
24
|
+
}else {
|
|
25
|
+
return tableMap[category];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
return {add: add, get: get};
|
|
30
|
+
}();
|
|
31
|
+
|
|
32
|
+
(function(vm){
|
|
33
|
+
//WMStats.CategoryTableMap.add(WMStats.Controls.requests, WMStats.ActiveRequestTableWithJob);
|
|
34
|
+
|
|
35
|
+
// add controller
|
|
36
|
+
vm.CategoryView.subscribe("data", function() {
|
|
37
|
+
var view = WMStats.CategoryTableMap.get(vm.CategoryView.category().name());
|
|
38
|
+
view(vm.CategoryView.data(), vm.CategoryView.category().id());
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
vm.RequestView.subscribe("data", function() {
|
|
42
|
+
var view = WMStats.CategoryTableMap.get(vm.RequestView.categoryName);
|
|
43
|
+
view(vm.RequestView.data(), vm.RequestView.format().id());
|
|
44
|
+
});
|
|
45
|
+
})(WMStats.ViewModel);
|