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,141 @@
|
|
|
1
|
+
/***
|
|
2
|
+
* convertHistogramData
|
|
3
|
+
* takes data which get performanceDataByCampaign view
|
|
4
|
+
* and construct the list of by campaign and workload (workflow)
|
|
5
|
+
* (check data format from view/performaceDataByCampaign/map.js
|
|
6
|
+
* @param {Object} data
|
|
7
|
+
*/
|
|
8
|
+
convertToHistogramData = function(data){
|
|
9
|
+
var histoDataCollection = new Array();
|
|
10
|
+
for (var i in data.rows) {
|
|
11
|
+
for (var stat in data.rows[i].value) {
|
|
12
|
+
var item = {};
|
|
13
|
+
item['campaign'] = data.rows[i].key[0];
|
|
14
|
+
item['workload'] = data.rows[i].key[1];
|
|
15
|
+
item['histoData'] = histoData(data.rows[i].value[stat]);
|
|
16
|
+
histoDataCollection.push(item);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
return histoDataCollection;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/***
|
|
23
|
+
*
|
|
24
|
+
* @param {Object} data
|
|
25
|
+
*
|
|
26
|
+
* TODO: doesn't handle the underflow and overflow correctly.
|
|
27
|
+
* need to find what operators wants. commentted out the code
|
|
28
|
+
*/
|
|
29
|
+
convertToPVHistoData = function(data) {
|
|
30
|
+
var convertedData = {};
|
|
31
|
+
convertedData.lowerbound = 0;
|
|
32
|
+
convertedData.upperbound = 0;
|
|
33
|
+
convertedData.bins = [];
|
|
34
|
+
for (var i in data) {
|
|
35
|
+
bin = {};
|
|
36
|
+
var upperBound = 0;// need to set correctly for overflow
|
|
37
|
+
switch (data[i].type) {
|
|
38
|
+
case "underflow":
|
|
39
|
+
//bin.x = 0; // need to handle underflow
|
|
40
|
+
//bin.dx = 10;
|
|
41
|
+
break;
|
|
42
|
+
case "overflow":
|
|
43
|
+
//bin.x = 100; // need to handle overflow
|
|
44
|
+
//bin.dx = 10;
|
|
45
|
+
//upperBound = 110;
|
|
46
|
+
break;
|
|
47
|
+
case "standard":
|
|
48
|
+
// minus value shouldn't happen but if there is
|
|
49
|
+
// the case mapped to 0 to draw the histogram correctly.
|
|
50
|
+
if (data[i].lowerEdge < 0){
|
|
51
|
+
data[i].lowerEdge = 0;
|
|
52
|
+
};
|
|
53
|
+
if (data[i].upperEdge < 0){
|
|
54
|
+
data[i].upperEdge = 0;
|
|
55
|
+
};
|
|
56
|
+
bin.x = data[i].lowerEdge;
|
|
57
|
+
bin.dx = data[i].upperEdge - data[i].lowerEdge;
|
|
58
|
+
upperBound = data[i].upperEdge;
|
|
59
|
+
break;
|
|
60
|
+
default:
|
|
61
|
+
}
|
|
62
|
+
bin.y = data[i].nEvents;
|
|
63
|
+
convertedData.bins[i] = bin;
|
|
64
|
+
// it is not assumed data is ordered so take the max
|
|
65
|
+
convertedData.upperbound = Math.max(convertedData.upperbound, upperBound)
|
|
66
|
+
};
|
|
67
|
+
return convertedData;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
histogramContainer = function(rootPanel, config, data, category){
|
|
72
|
+
var histData = convertToPVHistoData(data);
|
|
73
|
+
var w = config.width,
|
|
74
|
+
h = config.height,
|
|
75
|
+
x = pv.Scale.linear(histData.lowerbound, histData.upperbound).range(0, w),
|
|
76
|
+
y = pv.Scale.linear(0, pv.max(histData.bins, function(d){
|
|
77
|
+
return d.y
|
|
78
|
+
})).range(0, h - 20);
|
|
79
|
+
|
|
80
|
+
var vis;
|
|
81
|
+
if (!rootPanel) {
|
|
82
|
+
vis = new pv.Panel();
|
|
83
|
+
}else {
|
|
84
|
+
vis = rootPanel.add(pv.Panel);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
vis.width(w)
|
|
88
|
+
.height(h)
|
|
89
|
+
.top(config.top + config.hPadding)
|
|
90
|
+
.left(config.left + config.wPadding);
|
|
91
|
+
|
|
92
|
+
if (config.label) {
|
|
93
|
+
var label = vis.add(pv.Label);
|
|
94
|
+
//set default label position
|
|
95
|
+
label.top(10).left(100).textAlign("center").text(category);
|
|
96
|
+
|
|
97
|
+
for (prop in config.label) {
|
|
98
|
+
label[prop](config.label[prop]);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
vis.add(pv.Bar)
|
|
103
|
+
.data(histData.bins)
|
|
104
|
+
.bottom(0)
|
|
105
|
+
.left(function(d){return x(d.x)})
|
|
106
|
+
.width(function(d){return x(d.dx);})
|
|
107
|
+
.height(function(d){return y(d.y);})
|
|
108
|
+
.fillStyle("rgb(169, 169, 169)")
|
|
109
|
+
.strokeStyle("rgba(255, 255, 255, .2)")
|
|
110
|
+
.lineWidth(1)
|
|
111
|
+
.antialias(false)
|
|
112
|
+
.anchor('top').add(pv.Label)
|
|
113
|
+
.text(function(d){return d.y})
|
|
114
|
+
.textStyle("blue")
|
|
115
|
+
.font("9px sans-serif")
|
|
116
|
+
.textBaseline("bottom")
|
|
117
|
+
.visible(function(d){return (d.y > 5)});
|
|
118
|
+
|
|
119
|
+
vis.add(pv.Rule)
|
|
120
|
+
.data(y.ticks(5))
|
|
121
|
+
.bottom(y)
|
|
122
|
+
.width(w)
|
|
123
|
+
.left(0)
|
|
124
|
+
.strokeStyle("#fff")
|
|
125
|
+
.anchor("left")
|
|
126
|
+
.add(pv.Label)
|
|
127
|
+
.text(y.tickFormat);
|
|
128
|
+
|
|
129
|
+
vis.add(pv.Rule)
|
|
130
|
+
.data(x.ticks())
|
|
131
|
+
.left(function(d){return x(d)})
|
|
132
|
+
.bottom(-5)
|
|
133
|
+
.height(5)
|
|
134
|
+
.anchor("bottom").add(pv.Label)
|
|
135
|
+
.text(x.tickFormat);
|
|
136
|
+
|
|
137
|
+
vis.add(pv.Rule)
|
|
138
|
+
.bottom(0);
|
|
139
|
+
|
|
140
|
+
return vis
|
|
141
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
treeContainer = function(rootPanel, config, data, category) {
|
|
2
|
+
|
|
3
|
+
var root = pv.dom(data)
|
|
4
|
+
.root("errors");
|
|
5
|
+
|
|
6
|
+
/* Recursively compute the package sizes.*/
|
|
7
|
+
root.visitAfter(function(n) {
|
|
8
|
+
if (n.firstChild) {
|
|
9
|
+
//n.nodeValue = pv.sum(n.childNodes, function(n) n.nodeValue);
|
|
10
|
+
n.nodeValue = "";
|
|
11
|
+
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
if (!rootPanel) {
|
|
16
|
+
vis = new pv.Panel()
|
|
17
|
+
.width(config.width)
|
|
18
|
+
} else {
|
|
19
|
+
vis = rootPanel.add(pv.Panel)
|
|
20
|
+
.width(config.width)
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
vis.height(function(){
|
|
24
|
+
return (root.nodes().length + 1) * 12
|
|
25
|
+
})
|
|
26
|
+
.top(config.top + config.hPadding)
|
|
27
|
+
.left(config.left + config.wPadding);
|
|
28
|
+
|
|
29
|
+
var layout = vis.add(pv.Layout.Indent)
|
|
30
|
+
.nodes(function(){
|
|
31
|
+
return root.nodes()
|
|
32
|
+
})
|
|
33
|
+
.depth(12)
|
|
34
|
+
.breadth(12);
|
|
35
|
+
|
|
36
|
+
layout.link.add(pv.Line);
|
|
37
|
+
|
|
38
|
+
var node = layout.node.add(pv.Panel)
|
|
39
|
+
.top(function(n){
|
|
40
|
+
return n.y - 6
|
|
41
|
+
})
|
|
42
|
+
.height(12)
|
|
43
|
+
.right(6)
|
|
44
|
+
.strokeStyle(null)
|
|
45
|
+
.events("all")
|
|
46
|
+
.event("mousedown", toggle);
|
|
47
|
+
|
|
48
|
+
node.anchor("left").add(pv.Dot)
|
|
49
|
+
.strokeStyle("#1f77b4")
|
|
50
|
+
.fillStyle(function(n) {return n.toggled ? "#1f77b4" : n.firstChild ? "#aec7e8" : "#ff7f0e"})
|
|
51
|
+
.title(function t(d) {return d.parentNode ? (t(d.parentNode) + "." + d.nodeName) : d.nodeName})
|
|
52
|
+
.anchor("right").add(pv.Label)
|
|
53
|
+
.text(function(n){
|
|
54
|
+
return n.nodeName
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
node.anchor("right").add(pv.Label)
|
|
58
|
+
.textStyle(function(n) {return n.firstChild || n.toggled ? "#aaa" : "#000"})
|
|
59
|
+
.text(function(n) {return n.nodeValue});
|
|
60
|
+
|
|
61
|
+
/* Toggles the selected node, then updates the layout. */
|
|
62
|
+
function toggle(n) {
|
|
63
|
+
n.toggle(pv.event.altKey);
|
|
64
|
+
return layout.reset().root;
|
|
65
|
+
}
|
|
66
|
+
return vis
|
|
67
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
errorSummary = function(errors) {
|
|
2
|
+
var summary = {};
|
|
3
|
+
/*
|
|
4
|
+
summary.totalJobs = 0;
|
|
5
|
+
summary.totalFiles = 0;
|
|
6
|
+
summary.totalFailureTime = 0;
|
|
7
|
+
*/
|
|
8
|
+
for (var task in errors) {
|
|
9
|
+
summary[task] = {};
|
|
10
|
+
/*
|
|
11
|
+
summary[task].totalJobs = 0;
|
|
12
|
+
summary[task].totalFiles = 0;
|
|
13
|
+
summary[task].failureTime = errors[task].failureTime;
|
|
14
|
+
*/
|
|
15
|
+
for (var step in errors[task]) {
|
|
16
|
+
if (step == "failureTime") {
|
|
17
|
+
//failureTime isn not step, ignore that
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
summary[task][step] = new Array();
|
|
21
|
+
var i = 0;
|
|
22
|
+
for (var code in errors[task][step]) {
|
|
23
|
+
codeSummary = {};
|
|
24
|
+
codeSummary.exitCode = code;
|
|
25
|
+
codeSummary.details = errors[task][step][code].errors[0].details;
|
|
26
|
+
codeSummary.type = errors[task][step][code].errors[0].type;
|
|
27
|
+
codeSummary.jobs = errors[task][step][code].jobs;
|
|
28
|
+
codeSummary.runLumis = getRunLumiRange(errors[task][step][code].runs)
|
|
29
|
+
codeSummary.input = errors[task][step][code].input;
|
|
30
|
+
summary[task][step][i] = codeSummary;
|
|
31
|
+
i++;
|
|
32
|
+
/*
|
|
33
|
+
summary[task].totalJobs += codeSummary.jobs;
|
|
34
|
+
summary[task].totalFiles += codeSummary.input.length;
|
|
35
|
+
summary.totalJobs += codeSummary.jobs;
|
|
36
|
+
summary.totalFiles += codeSummary.input.length;
|
|
37
|
+
*/
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//summary.totalFailureTime += summary[task].failureTime;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return summary;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function sortNumber(a, b) {
|
|
47
|
+
return a - b;
|
|
48
|
+
}
|
|
49
|
+
function getRunLumiRange(runLumiInfo){
|
|
50
|
+
var runSummary = {};
|
|
51
|
+
for (var runNumber in runLumiInfo) {
|
|
52
|
+
runSummary[runNumber] = {};
|
|
53
|
+
runSummary[runNumber].lumiRange = [];
|
|
54
|
+
//sort within but returns itself.
|
|
55
|
+
var sorted = runLumiInfo[runNumber].sort(sortNumber);
|
|
56
|
+
var start = sorted[0], end = sorted[0];
|
|
57
|
+
var k = 0;
|
|
58
|
+
for (var i = 0; i < runLumiInfo[runNumber].length; i++) {
|
|
59
|
+
if (end + 1 < sorted[i]) {
|
|
60
|
+
runSummary[runNumber].lumiRange[k] = [start, end];
|
|
61
|
+
start = sorted[i];
|
|
62
|
+
k++;
|
|
63
|
+
}
|
|
64
|
+
end = sorted[i];
|
|
65
|
+
};
|
|
66
|
+
runSummary[runNumber].lumiRange[k] = [start, end];
|
|
67
|
+
}
|
|
68
|
+
return runSummary;
|
|
69
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
keyFormatter = function (key, keyMap){
|
|
2
|
+
if (keyMap && keyMap[key]){
|
|
3
|
+
return keyMap[key];
|
|
4
|
+
} else {
|
|
5
|
+
return key;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
valueFormatter = function(func, values, key, valueMap, keyMap) {
|
|
10
|
+
if (valueMap && valueMap[key]) {
|
|
11
|
+
return valueMap[key](values, func, keyMap);
|
|
12
|
+
}
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
listFormatter = function(data, valueMap, keyMap) {
|
|
16
|
+
var outputHtml = "";
|
|
17
|
+
var formattedVal = null;
|
|
18
|
+
//data is either array or object
|
|
19
|
+
if (data instanceof Object){
|
|
20
|
+
//array case
|
|
21
|
+
if (data.length) {
|
|
22
|
+
outputHtml += "<ol>";
|
|
23
|
+
for (var i in data) {
|
|
24
|
+
outputHtml += ("<li>" + listFormatter(data[i], valueMap, keyMap) + "</li>");
|
|
25
|
+
};
|
|
26
|
+
outputHtml += "</ol>";
|
|
27
|
+
} else {
|
|
28
|
+
outputHtml += "<ul>";
|
|
29
|
+
for (var name in data) {
|
|
30
|
+
outputHtml += ("<li> <b>" + keyFormatter(name, keyMap) + "</b>");
|
|
31
|
+
formattedVal = valueFormatter(listFormatter, data[name], name, valueMap, keyMap)
|
|
32
|
+
if (formattedVal !== null) {
|
|
33
|
+
outputHtml += formattedVal;
|
|
34
|
+
} else {
|
|
35
|
+
outputHtml += listFormatter(data[name], valueMap, keyMap);
|
|
36
|
+
}
|
|
37
|
+
outputHtml += "</li>";
|
|
38
|
+
};
|
|
39
|
+
outputHtml += "</ul>";
|
|
40
|
+
}
|
|
41
|
+
} else {
|
|
42
|
+
outputHtml = ": " + data;
|
|
43
|
+
};
|
|
44
|
+
return outputHtml;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/** custom format for output data **/
|
|
49
|
+
outputKeyMap = {'nFiles': 'files'};
|
|
50
|
+
|
|
51
|
+
outputValueMap = {};
|
|
52
|
+
outputValueMap.size = function(data){
|
|
53
|
+
var outputHtml = ": " + data + " (bytes)";
|
|
54
|
+
return outputHtml;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** custom format for error data **/
|
|
58
|
+
errorKeyMap = {'exitCode': 'exit code',
|
|
59
|
+
'runLumis': 'run and lumi range',
|
|
60
|
+
'lumiRange' : 'lumi range'};
|
|
61
|
+
|
|
62
|
+
errorValueMap = {};
|
|
63
|
+
errorValueMap.lumiRange = function(data) {
|
|
64
|
+
var outputHtml = ": "
|
|
65
|
+
for (var i in data) {
|
|
66
|
+
outputHtml += "[" + data[i][0] + " - " + data[i][1] + "] ";
|
|
67
|
+
}
|
|
68
|
+
return outputHtml;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
errorValueMap.details = function(data){
|
|
72
|
+
var outputHtml = ":<pre> " + data + "</pre> ";
|
|
73
|
+
return outputHtml;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
errorValueMap.type = errorValueMap.details;
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
gridLayout = function(parentPanel, layoutConfig, data, metaData) {
|
|
2
|
+
|
|
3
|
+
// don't set the size of outermost panel yet until know the number of containers
|
|
4
|
+
var vis;
|
|
5
|
+
if (!parentPanel) {
|
|
6
|
+
vis = new pv.Panel()
|
|
7
|
+
}else {
|
|
8
|
+
vis = parentPanel.add(pv.Panel)
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
if (layoutConfig.label) {
|
|
12
|
+
var label = vis.add(pv.Label);
|
|
13
|
+
//set default label position
|
|
14
|
+
label.top(10).left(100).text(metaData);
|
|
15
|
+
|
|
16
|
+
for (prop in layoutConfig.label) {
|
|
17
|
+
label[prop](layoutConfig.label[prop]);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
var maxWidth = 0;
|
|
22
|
+
|
|
23
|
+
layoutConfig.width = 0;
|
|
24
|
+
layoutConfig.height = 0;
|
|
25
|
+
var cIndex = 1;
|
|
26
|
+
var rIndex = 1;
|
|
27
|
+
var numOfContainers = 0;
|
|
28
|
+
|
|
29
|
+
var childLayoutPanel = vis;
|
|
30
|
+
|
|
31
|
+
function moveToNextPosition (config) {
|
|
32
|
+
if (cIndex < layoutConfig.numOfColumns) {
|
|
33
|
+
config.left = config.left + config.width + config.wPadding * 2;
|
|
34
|
+
cIndex += 1;
|
|
35
|
+
layoutConfig.width += (config.width + config.wPadding * 2);
|
|
36
|
+
layoutConfig.height = (config.height + config.hPadding * 2);
|
|
37
|
+
if (maxWidth < layoutConfig.width) {maxWidth = layoutConfig.width};
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
cIndex = 1;
|
|
41
|
+
layoutConfig.width = (config.width + config.wPadding * 2);
|
|
42
|
+
if (maxWidth < layoutConfig.width) {maxWidth = layoutConfig.width};
|
|
43
|
+
config.left = layoutConfig.wPadding;
|
|
44
|
+
config.top = config.top + config.height + config.hPadding * 2;
|
|
45
|
+
rIndex += 1;
|
|
46
|
+
layoutConfig.height += (config.height + config.hPadding * 2);
|
|
47
|
+
}
|
|
48
|
+
return config;
|
|
49
|
+
}
|
|
50
|
+
var tempHeight = 0;
|
|
51
|
+
var config = layoutConfig.childConfig;
|
|
52
|
+
config.left = layoutConfig.wPadding;
|
|
53
|
+
config.top = layoutConfig.hPadding;
|
|
54
|
+
|
|
55
|
+
for (var element in data) {
|
|
56
|
+
if (!element) continue;
|
|
57
|
+
layoutConfig.childConfig.func(vis, config, data[element], element);
|
|
58
|
+
moveToNextPosition(config);
|
|
59
|
+
numOfContainers += 1;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
layoutConfig.width = maxWidth;
|
|
63
|
+
|
|
64
|
+
if (layoutConfig.wPaddingAddition) {
|
|
65
|
+
layoutConfig.width += layoutConfig.wPaddingAddition;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
if (layoutConfig.hPaddingAddition) {
|
|
69
|
+
layoutConfig.height += layoutConfig.hPaddingAddition;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
vis.width(layoutConfig.width)
|
|
73
|
+
.height(layoutConfig.height)
|
|
74
|
+
.top(layoutConfig.top + layoutConfig.hPadding)
|
|
75
|
+
.left(layoutConfig.left + layoutConfig.wPadding);
|
|
76
|
+
return vis;
|
|
77
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<title>Workflow Performance Histogram</title>
|
|
4
|
+
<script src="/_utils/script/json2.js"></script>
|
|
5
|
+
<script src="/_utils/script/jquery.js"></script>
|
|
6
|
+
<script src="/_utils/script/jquery.couch.js"></script>
|
|
7
|
+
<script type="text/javascript" src="vendor/protovis/protovis-r3.2.js"></script>
|
|
8
|
+
<script type="text/javascript" src="js/layout/gridLayout.js"></script>
|
|
9
|
+
<script type="text/javascript" src="js/container/histogram.js"></script>
|
|
10
|
+
<style type="text/css">
|
|
11
|
+
#center {
|
|
12
|
+
display: table-cell;
|
|
13
|
+
vertical-align: middle;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
#fig {
|
|
17
|
+
position: relative;
|
|
18
|
+
margin: auto;
|
|
19
|
+
width: 800px;
|
|
20
|
+
height: 200px;
|
|
21
|
+
}
|
|
22
|
+
</style>
|
|
23
|
+
</head>
|
|
24
|
+
<body>
|
|
25
|
+
<div id="center">
|
|
26
|
+
<div id="fig">
|
|
27
|
+
<script>
|
|
28
|
+
couchDB = $.couch.db("workloadSummary"); // change to correct db name
|
|
29
|
+
couchDB.view("WorkloadSummary/performanceDataByCampaign",{
|
|
30
|
+
//key: "test",
|
|
31
|
+
success : function(data){
|
|
32
|
+
var histDataArray = convertToHistogramData(data);
|
|
33
|
+
for (var i in histDataArray) {
|
|
34
|
+
//TODO: make a multiple historgram displayed
|
|
35
|
+
// using nested grid
|
|
36
|
+
//var config = {width: 300, height:100};
|
|
37
|
+
//histogramContainer(config, histDataArray[i].histoData, i)
|
|
38
|
+
//break;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
</script>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</body>
|
|
46
|
+
</html>
|