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,78 @@
|
|
|
1
|
+
WMStats.namespace("History");
|
|
2
|
+
WMStats.namespace("TimeBucket");
|
|
3
|
+
|
|
4
|
+
WMStats.TimeBucket = function() {
|
|
5
|
+
|
|
6
|
+
var _bucket = new Array();
|
|
7
|
+
var _bucketSize = 24;
|
|
8
|
+
var _interval = 3600; // 1 hour
|
|
9
|
+
|
|
10
|
+
function addRow(currentTime, row) {
|
|
11
|
+
var timestamp = row.key[0];
|
|
12
|
+
var couchDoc = row.doc;
|
|
13
|
+
var index = parseInt((currentTime - timestamp) / 3600);
|
|
14
|
+
var updateFlag = false;
|
|
15
|
+
if (_bucket[index] && _bucket[index][couchDoc.agent_url]) {
|
|
16
|
+
if (_bucket[index][couchDoc.agent_url].timestamp < couchDoc.timestamp) {
|
|
17
|
+
updteFlag = true;
|
|
18
|
+
}
|
|
19
|
+
} else if (_bucket[index]) {
|
|
20
|
+
updateFlag = true;
|
|
21
|
+
} else {
|
|
22
|
+
_bucket[index] = {};
|
|
23
|
+
_bucket[index][couchDoc.agent_url] = {};
|
|
24
|
+
_bucket[index][couchDoc.agent_url].requests = {};
|
|
25
|
+
updateFlag = true;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (updateFlag) {
|
|
29
|
+
_bucket[index][couchDoc.agent_url].timestamp = couchDoc.timestamp;
|
|
30
|
+
_bucket[index][couchDoc.agent_url].requests[couchDoc.workflow] = couchDoc;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function addHistory(couchData) {
|
|
35
|
+
var dataRows = couchData.rows;
|
|
36
|
+
var currentTime = Math.round((new Date()).getTime() / 1000);
|
|
37
|
+
for (var i in dataRows) {
|
|
38
|
+
addRow(currentTime, dataRows[i]);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function getData() {
|
|
43
|
+
return _bucket;
|
|
44
|
+
}
|
|
45
|
+
/*
|
|
46
|
+
function getSiteFailureRate() {
|
|
47
|
+
var requestData = []
|
|
48
|
+
for (var i in _bucket) {
|
|
49
|
+
requestData[i] = {}
|
|
50
|
+
for (var request in _bucket[i]) {
|
|
51
|
+
requestData[i][request]
|
|
52
|
+
}
|
|
53
|
+
requestData[i] = _bucket.requests
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
*/
|
|
57
|
+
return {
|
|
58
|
+
addHistory: addHistory,
|
|
59
|
+
getData: getData
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
WMStats.History = function (couchData) {
|
|
64
|
+
var _data;
|
|
65
|
+
|
|
66
|
+
var historyData = new WMStats._StructBase();
|
|
67
|
+
|
|
68
|
+
historyData.convertCouchData = function(data) {
|
|
69
|
+
var bucket = WMStats.TimeBucket();
|
|
70
|
+
bucket.addHistory(data);
|
|
71
|
+
return bucket.getData();
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
if (couchData) historyData.setData(couchData);
|
|
76
|
+
|
|
77
|
+
return historyData;
|
|
78
|
+
};
|
reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.JobDetails.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
WMStats.namespace("JobDetails");
|
|
2
|
+
|
|
3
|
+
WMStats.JobDetails = function (couchData) {
|
|
4
|
+
|
|
5
|
+
var jobDetailData = new WMStats._StructBase();
|
|
6
|
+
|
|
7
|
+
jobDetailData.convertCouchData = function(data) {
|
|
8
|
+
var dataRows = data.rows;
|
|
9
|
+
var jobDetails = [];
|
|
10
|
+
for (var i in dataRows){
|
|
11
|
+
jobDetails.push(dataRows[i].doc);
|
|
12
|
+
}
|
|
13
|
+
return jobDetails;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
if (couchData) jobDetailData.setData(couchData);
|
|
17
|
+
|
|
18
|
+
return jobDetailData;
|
|
19
|
+
};
|
reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.JobSummary.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
WMStats.namespace("JobSummary");
|
|
2
|
+
|
|
3
|
+
WMStats.JobSummary = function (couchData) {
|
|
4
|
+
|
|
5
|
+
var jobSummaryData = new WMStats._StructBase();
|
|
6
|
+
|
|
7
|
+
jobSummaryData.convertCouchData = function(data) {
|
|
8
|
+
var jobSummary = {};
|
|
9
|
+
jobSummary.status = [];
|
|
10
|
+
for (var i in data.rows){
|
|
11
|
+
jobSummary.workflow = data.rows[i].key[0];
|
|
12
|
+
var statusSummary = {};
|
|
13
|
+
statusSummary.task = data.rows[i].key[1];
|
|
14
|
+
statusSummary.status = data.rows[i].key[2];
|
|
15
|
+
statusSummary.exitCode = data.rows[i].key[3];
|
|
16
|
+
statusSummary.site = data.rows[i].key[4];
|
|
17
|
+
if (typeof(statusSummary.site) === "object") {
|
|
18
|
+
statusSummary.site = "{}";
|
|
19
|
+
}
|
|
20
|
+
statusSummary.acdcURL = data.rows[i].key[5];
|
|
21
|
+
statusSummary.agentName = data.rows[i].key[6];
|
|
22
|
+
statusSummary.errorMsg = data.rows[i].key[7];
|
|
23
|
+
statusSummary.count = data.rows[i].value;
|
|
24
|
+
jobSummary.status.push(statusSummary);
|
|
25
|
+
}
|
|
26
|
+
return jobSummary;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
if (couchData) jobSummaryData.setData(couchData);
|
|
30
|
+
|
|
31
|
+
return jobSummaryData;
|
|
32
|
+
};
|
reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.LogDBData.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
WMStats.namespace("LogDBData");
|
|
2
|
+
|
|
3
|
+
WMStats.LogDBData = function (couchData) {
|
|
4
|
+
|
|
5
|
+
var logDBData = new WMStats._StructBase();
|
|
6
|
+
logDBData._sortedLogs = {};
|
|
7
|
+
logDBData._errorLogIDList =[];
|
|
8
|
+
logDBData._errorLogs = [];
|
|
9
|
+
|
|
10
|
+
logDBData._timestampSort = function(a, b) {
|
|
11
|
+
// sort the record by descending order
|
|
12
|
+
return (a.ts - b.ts);
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
logDBData._getValue = function(obj, key, defaultType) {
|
|
16
|
+
if (obj.key === undefined) {
|
|
17
|
+
if (defaultType !== undefined) {
|
|
18
|
+
obj[key] = defaultType;
|
|
19
|
+
} else {
|
|
20
|
+
obj[key] = {};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return obj[key];
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
logDBData._getThreadValue = function(obj, request, agent, thread) {
|
|
27
|
+
requestObj = this._getValue(this._sortedLogs, request);
|
|
28
|
+
agentObj = this._getValue(requestObj, agent);
|
|
29
|
+
threadObj = this._getValue(agentObj, thread, []);
|
|
30
|
+
return threadObj;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
logDBData.convertCouchData = function (couchData) {
|
|
34
|
+
var results = [];
|
|
35
|
+
if (couchData.rows) {
|
|
36
|
+
for (var i in couchData.rows) {
|
|
37
|
+
row = couchData.rows[i]['value'];
|
|
38
|
+
row.request = couchData.rows[i]['key'];
|
|
39
|
+
row.id = couchData.rows[i].id;
|
|
40
|
+
results.push(row);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
// and sortby ts stamp decending order
|
|
44
|
+
results.sort(this._timestampSort);
|
|
45
|
+
return results;
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
logDBData._setLogWithLastestError = function () {
|
|
49
|
+
|
|
50
|
+
for (var i in this._data) {
|
|
51
|
+
thrResult = this._getThreadValue(this._sortedLogs, this._data[i].request,
|
|
52
|
+
this._data[i].agent, this._data[i].thr);
|
|
53
|
+
if (this._data[i].type !== "message") {
|
|
54
|
+
thrResult.push(this._data[i]);
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
var logs = this._sortedLogs;
|
|
59
|
+
for (var req in this._sortedLogs) {
|
|
60
|
+
for (var agent in logs[req]) {
|
|
61
|
+
for (var thread in logs[req][agent]) {
|
|
62
|
+
for (var i in logs[req][agent][thread]) {
|
|
63
|
+
if (logs[req][agent][thread][i].type === "agent-error" ||
|
|
64
|
+
logs[req][agent][thread][i].type === "agent-warning") {
|
|
65
|
+
this._errorLogs.push(logs[req][agent][thread][i]);
|
|
66
|
+
this._errorLogIDList.push(logs[req][agent][thread][i].id);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return this._errorLogs;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
logDBData.getErrorLogIDs = function () {
|
|
77
|
+
return this._errorLogIDList;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
logDBData.setMessages = function (request, agent, thread, messages) {
|
|
81
|
+
this._sortedLogs[request][agent][thread][0].messages = messages;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
logDBData.getLogWithLastestError = function() {
|
|
85
|
+
return this._errorLogs;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
if (couchData) logDBData.setData(couchData);
|
|
89
|
+
|
|
90
|
+
logDBData._setLogWithLastestError();
|
|
91
|
+
|
|
92
|
+
return logDBData;
|
|
93
|
+
};
|
reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.LogMessage.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
WMStats.namespace("LogMessage");
|
|
2
|
+
|
|
3
|
+
WMStats.LogMessage = function (couchData) {
|
|
4
|
+
|
|
5
|
+
var logdbDetailData = new WMStats._StructBase();
|
|
6
|
+
|
|
7
|
+
//set default value to []
|
|
8
|
+
logdbDetailData._data =[];
|
|
9
|
+
|
|
10
|
+
logdbDetailData.convertCouchData = function(data) {
|
|
11
|
+
var dataRows = data.rows;
|
|
12
|
+
var rows =[];
|
|
13
|
+
for (var i in dataRows) {
|
|
14
|
+
var tableRow = {};
|
|
15
|
+
doc = dataRows[i].doc;
|
|
16
|
+
tableRow.request = doc.request;
|
|
17
|
+
tableRow.agent = doc.identifier;
|
|
18
|
+
tableRow.thr = doc.thr;
|
|
19
|
+
tableRow.messages = doc.messages;
|
|
20
|
+
rows.push(tableRow);
|
|
21
|
+
}
|
|
22
|
+
return rows;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
logdbDetailData.setMessagesToLogDBData = function() {
|
|
26
|
+
var logDBData = WMStats.RequestLogModel.getData();
|
|
27
|
+
var d = this._data;
|
|
28
|
+
for (var i in d) {
|
|
29
|
+
logDBData.setMessages(d[i].request, d[i].agent, d[i].thr, d[i].messages);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
if (couchData) logdbDetailData.setData(couchData);
|
|
34
|
+
|
|
35
|
+
logdbDetailData.setMessagesToLogDBData();
|
|
36
|
+
|
|
37
|
+
return logdbDetailData;
|
|
38
|
+
};
|
reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.SiteSummary.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
WMStats.namespace("SiteSummary");
|
|
2
|
+
|
|
3
|
+
WMStats.SiteSummary = function() {
|
|
4
|
+
var siteSummary = {totalEvents: 0,
|
|
5
|
+
processedEvents: 0,
|
|
6
|
+
numRequests: 0};
|
|
7
|
+
var siteSummary = new WMStats.GenericRequestsSummary(siteSummary);
|
|
8
|
+
|
|
9
|
+
siteSummary.createSummaryFromRequestDoc = function(doc) {
|
|
10
|
+
var summary = WMStats.SiteSummary();
|
|
11
|
+
summary.summaryStruct.totalEvents = Number(this._get(doc, "input_events", 0));
|
|
12
|
+
summary.summaryStruct.processedEvents = this._get(doc, "output_progress.0.events", 0);
|
|
13
|
+
summary.summaryStruct.numRequests = 1;
|
|
14
|
+
summary.jobStatus = doc;
|
|
15
|
+
//support legacy code which had cooloff jobs instead cooloff.create, cooloff.submit
|
|
16
|
+
//cooloff.job
|
|
17
|
+
if ((typeof summary.jobStatus.cooloff) === "number") {
|
|
18
|
+
summary.jobStatus.cooloff = {create: 0, submit: 0, job: summary.jobStatus.cooloff};
|
|
19
|
+
}
|
|
20
|
+
return summary;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
return siteSummary;
|
|
24
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
WMStats.namespace("Sites");
|
|
2
|
+
|
|
3
|
+
WMStats.Sites = function (couchData) {
|
|
4
|
+
var _data;
|
|
5
|
+
var baseColumns = ["timestamp", "site", "agent_url"];
|
|
6
|
+
|
|
7
|
+
var siteData = new WMStats._StructBase();
|
|
8
|
+
|
|
9
|
+
siteData.convertCouchData = function(data) {
|
|
10
|
+
var dataRows = data.rows;
|
|
11
|
+
var rows =[];
|
|
12
|
+
for (var i in dataRows) {
|
|
13
|
+
var tableRow = dataRows[i].value;
|
|
14
|
+
for (var j = 0; j < baseColumns.length; j ++) {
|
|
15
|
+
tableRow[baseColumns[j]] = dataRows[i].key[j];
|
|
16
|
+
}
|
|
17
|
+
rows.push(tableRow);
|
|
18
|
+
}
|
|
19
|
+
return rows;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
if (couchData) siteData.setData(couchData);
|
|
23
|
+
|
|
24
|
+
return siteData;
|
|
25
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
WMStats.namespace("Tasks");
|
|
2
|
+
WMStats.namespace("TaskStruck");
|
|
3
|
+
WMStats.namespace("TasksSummary");
|
|
4
|
+
|
|
5
|
+
WMStats.TasksSummary = function(task) {
|
|
6
|
+
var tier1Summary = {totalEvents: 0,
|
|
7
|
+
processedEvents: 0};
|
|
8
|
+
if (task) {
|
|
9
|
+
var taskSummaryStruct = task.subscription_status || {};
|
|
10
|
+
} else {
|
|
11
|
+
var taskSummaryStruct = {subscription_status: {finished: 0, open:0, total:0}};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
var taskSummary = new WMStats.GenericRequestsSummary(taskSummaryStruct);
|
|
16
|
+
|
|
17
|
+
taskSummary.getAvgProgressSummary = function () {
|
|
18
|
+
|
|
19
|
+
var progressStat = {};
|
|
20
|
+
var datasets = {};
|
|
21
|
+
var numDataset = 0;
|
|
22
|
+
|
|
23
|
+
for(var site in task.sites) {
|
|
24
|
+
for (var outputDS in task.sites[site].dataset) {
|
|
25
|
+
if (datasets[outputDS] === undefined) {
|
|
26
|
+
numDataset += 1;
|
|
27
|
+
datasets[outputDS] = true;
|
|
28
|
+
}
|
|
29
|
+
WMStats.Utils.updateObj(progressStat, task.sites[site].dataset[outputDS]);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
for (var prop in progressStat) {
|
|
34
|
+
progressStat[prop] = progressStat[prop] / numDataset;
|
|
35
|
+
}
|
|
36
|
+
progressStat.numDataset = numDataset;
|
|
37
|
+
return progressStat;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
taskSummary.summaryStruct.progress = taskSummary.getAvgProgressSummary();
|
|
41
|
+
|
|
42
|
+
taskSummary.jobStatus = task.status;
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
return taskSummary;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
WMStats.TaskStruct = function(taskName, task) {
|
|
50
|
+
this._taskName = taskName;
|
|
51
|
+
this._task = task;
|
|
52
|
+
this._summary = WMStats.TasksSummary(task);
|
|
53
|
+
// number of requests in the data
|
|
54
|
+
this._addJobs = WMStats.Utils.updateObj;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
WMStats.TaskStruct.prototype = {
|
|
58
|
+
|
|
59
|
+
getProgressStat: function () {
|
|
60
|
+
var progressStat = {};
|
|
61
|
+
for(var site in this._task.sites) {
|
|
62
|
+
WMStats.Utils.updateObj(progressStat, this._task.sites[site].dataset);
|
|
63
|
+
}
|
|
64
|
+
return progressStat;
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
getName: function() {
|
|
68
|
+
return this._taskName;
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
getSummary: function() {
|
|
72
|
+
return this._summary;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
WMStats.Tasks = function (tasks, requestName) {
|
|
77
|
+
/*
|
|
78
|
+
* Data structure for holding the tasks.
|
|
79
|
+
* tasks structure is
|
|
80
|
+
* {taskName: {'status': {'success: 0, running:10},
|
|
81
|
+
* 'site': {'T2_US_FNAL': {'success: 0, running:10
|
|
82
|
+
* 'jobtype': 'Processing',
|
|
83
|
+
* 'subscription_status': {finished: 0, open:0, total:0}
|
|
84
|
+
* }}}
|
|
85
|
+
*/
|
|
86
|
+
// request data by workflow name
|
|
87
|
+
var taskStructDict = {};
|
|
88
|
+
for (var taskName in tasks) {
|
|
89
|
+
taskStructDict[taskName] = new WMStats.TaskStruct(taskName, tasks[taskName]);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
this._data = taskStructDict;
|
|
93
|
+
this._workflow = requestName;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
WMStats.Tasks.prototype = {
|
|
97
|
+
|
|
98
|
+
getWorkflow: function() {
|
|
99
|
+
return this._workflow;
|
|
100
|
+
},
|
|
101
|
+
getData: function () {return this._data;},
|
|
102
|
+
|
|
103
|
+
getSummary: function(taskName) {
|
|
104
|
+
// TODO need to add summary case for taskName undefined.
|
|
105
|
+
return this._data[taskName].getSummary();
|
|
106
|
+
}
|
|
107
|
+
};
|
reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.WorkloadSummary.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
WMStats.namespace("WorkloadSummary");
|
|
2
|
+
|
|
3
|
+
WMStats.WorkloadSummary = function (couchData) {
|
|
4
|
+
|
|
5
|
+
var workloadSummaryData = new WMStats._StructBase();
|
|
6
|
+
|
|
7
|
+
workloadSummaryData.convertCouchData = function(data) {
|
|
8
|
+
var dataRows = data.rows;
|
|
9
|
+
var workloadSummary = [];
|
|
10
|
+
for (var i in dataRows){
|
|
11
|
+
var wmstatsDoc = WMStats.Globals.convertRequestDocToWMStatsFormat(dataRows[i].doc);
|
|
12
|
+
workloadSummary.push(wmstatsDoc);
|
|
13
|
+
}
|
|
14
|
+
return workloadSummary;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
if (couchData) workloadSummaryData.setData(couchData);
|
|
18
|
+
|
|
19
|
+
return workloadSummaryData;
|
|
20
|
+
};
|
reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats._StructBase.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
WMStats.namespace("_StructBase");
|
|
2
|
+
|
|
3
|
+
WMStats._StructBase = function() {
|
|
4
|
+
this._data = null;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
WMStats._StructBase.prototype = {
|
|
8
|
+
|
|
9
|
+
getData: function() {
|
|
10
|
+
return this._data;
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
setData: function(couchData) {
|
|
14
|
+
this._data = this.convertCouchData(couchData);
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
getDataByKey: function(key, combineFunc) {
|
|
18
|
+
var data = {};
|
|
19
|
+
var dataList = this._data;
|
|
20
|
+
for (var i in dataList) {
|
|
21
|
+
if (data[dataList[i][key]] === undefined) {
|
|
22
|
+
data[dataList[i][key]] = dataList[i];
|
|
23
|
+
} else if (combineFuc === undefined) {
|
|
24
|
+
data[dataList[i][key]] = dataList[i];
|
|
25
|
+
} else {
|
|
26
|
+
data[dataList[i][key]] = combineFunc(data[dataList[i][key]], dataList[i]);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
return data;
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
convertCouchData: function(couchData) {
|
|
34
|
+
// defaut conversion need to be over written
|
|
35
|
+
return couchData;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
WMStats.Globals.importScripts([
|
|
2
|
+
"js/DataStruct/WMStats._StructBase.js",
|
|
3
|
+
"js/DataStruct/WMStats.GenericRequests.js",
|
|
4
|
+
"js/DataStruct/WMStats.Tasks.js",
|
|
5
|
+
"js/DataStruct/WMStats.Agents.js",
|
|
6
|
+
"js/DataStruct/WMStats.Sites.js",
|
|
7
|
+
"js/DataStruct/WMStats.JobSummary.js",
|
|
8
|
+
"js/DataStruct/WMStats.Campaigns.js",
|
|
9
|
+
"js/DataStruct/WMStats.Alerts.js",
|
|
10
|
+
"js/DataStruct/WMStats.SiteSummary.js",
|
|
11
|
+
"js/DataStruct/WMStats.JobDetails.js",
|
|
12
|
+
"js/DataStruct/WMStats.WorkloadSummary.js",
|
|
13
|
+
"js/DataStruct/WMStats.History.js",
|
|
14
|
+
"js/DataStruct/WMStats.LogDBData.js",
|
|
15
|
+
"js/DataStruct/WMStats.LogMessage.js"
|
|
16
|
+
]);
|
|
17
|
+
|
|
18
|
+
if (WMStats.Globals.VARIANT == "tier1") {
|
|
19
|
+
//import tier1 specific table
|
|
20
|
+
WMStats.Globals.importScripts(["js/DataStruct/T1/WMStats.RequestSummary.js",
|
|
21
|
+
"js/DataStruct/T1/WMStats.CampaignSummary.js",
|
|
22
|
+
"js/DataStruct/T1/WMStats.CMSSWSummary.js",
|
|
23
|
+
"js/DataStruct/T1/WMStats.AgentRequestSummary.js",
|
|
24
|
+
"js/DataStruct/T1/WMStats.ReqMgrRequest.js"]);
|
|
25
|
+
} else if (WMStats.Globals.VARIANT == "tier0") {
|
|
26
|
+
//import tie0 specific table
|
|
27
|
+
WMStats.Globals.importScripts(["js/DataStruct/T0/WMStats.RequestSummary.js",
|
|
28
|
+
"js/DataStruct/T0/WMStats.RunSummary.js"]);
|
|
29
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
WMStats.namespace("ActiveRequestModel");
|
|
2
|
+
WMStats.ActiveRequestModel = function() {
|
|
3
|
+
|
|
4
|
+
var uri = "/t0_reqmon/data/requestcache";
|
|
5
|
+
var reqModel = new WMStats._AjaxModelBase(uri, WMStats.Requests);
|
|
6
|
+
reqModel.setTrigger(WMStats.CustomEvents.REQUESTS_LOADED);
|
|
7
|
+
|
|
8
|
+
return reqModel;
|
|
9
|
+
}();
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
WMStats.namespace("RequestLogDetailModel");
|
|
2
|
+
// don't set the initial view - it is only used for doc retrieval
|
|
3
|
+
WMStats.RequestLogDetailModel = new WMStats._ModelBase('', {},
|
|
4
|
+
WMStats.LogMessage);
|
|
5
|
+
|
|
6
|
+
WMStats.RequestLogDetailModel.setDBSource(WMStats.T0LogDBCouch);
|
|
7
|
+
WMStats.RequestLogDetailModel.setTrigger(WMStats.CustomEvents.ERROR_LOG_LOADED);
|
|
8
|
+
|
|
9
|
+
$(WMStats.Globals.Event).on(WMStats.CustomEvents.LOG_LOADED,
|
|
10
|
+
function(event) {
|
|
11
|
+
var options = {"include_docs": true};
|
|
12
|
+
|
|
13
|
+
var logData = WMStats.RequestLogModel.getData();
|
|
14
|
+
options.keys = logData.getErrorLogIDs();
|
|
15
|
+
|
|
16
|
+
WMStats.RequestLogDetailModel.retrieveData("allDocs", options);
|
|
17
|
+
});
|
reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestLogModel.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
WMStats.namespace("RequestLogModel");
|
|
2
|
+
// don't set the initial view - it is only used for doc retrieval
|
|
3
|
+
WMStats.RequestLogModel = new WMStats._ModelBase('', {},
|
|
4
|
+
WMStats.LogDBData);
|
|
5
|
+
|
|
6
|
+
WMStats.RequestLogModel.setDBSource(WMStats.T0LogDBCouch);
|
|
7
|
+
WMStats.RequestLogModel.setTrigger(WMStats.CustomEvents.LOG_LOADED);
|
|
8
|
+
|
|
9
|
+
$(WMStats.Globals.Event).on(WMStats.CustomEvents.REQUESTS_LOADED,
|
|
10
|
+
function(event) {
|
|
11
|
+
var options = {"stale": "update_after"};
|
|
12
|
+
|
|
13
|
+
WMStats.RequestLogModel.retrieveData("logByRequest", options);
|
|
14
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
WMStats.namespace("RequestSearchModel");
|
|
2
|
+
|
|
3
|
+
WMStats.RequestSearchModel = new WMStats._ModelBase('',
|
|
4
|
+
{"reduce": false, 'include_docs': true},
|
|
5
|
+
WMStats.WorkloadSummary);
|
|
6
|
+
|
|
7
|
+
WMStats.RequestSearchModel.setDBSource(WMStats.T0Couch);
|
|
8
|
+
WMStats.RequestSearchModel.setTrigger(WMStats.CustomEvents.WORKLOAD_SUMMARY_READY);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
WMStats.namespace("ActiveRequestModel");
|
|
2
|
+
WMStats.ActiveRequestModel = function() {
|
|
3
|
+
|
|
4
|
+
var uri = "/wmstatsserver/data/requestcache";
|
|
5
|
+
var reqModel = new WMStats._AjaxModelBase(uri, WMStats.Requests);
|
|
6
|
+
reqModel.setTrigger(WMStats.CustomEvents.REQUESTS_LOADED);
|
|
7
|
+
|
|
8
|
+
return reqModel;
|
|
9
|
+
}();
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
WMStats.namespace("ReqMgrRequestModel");
|
|
2
|
+
// don't set the initial view - it is only used for doc retrieval
|
|
3
|
+
WMStats.ReqMgrRequestModel = new WMStats._ModelBase('', {},
|
|
4
|
+
WMStats.ReqMgrRequest);
|
|
5
|
+
|
|
6
|
+
WMStats.ReqMgrRequestModel.setDBSource(WMStats.ReqMgrCouch);
|
|
7
|
+
WMStats.ReqMgrRequestModel.setTrigger(WMStats.CustomEvents.RESUBMISSION_SUMMARY_READY);
|
|
8
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
WMStats.namespace("RequestLogDetailModel");
|
|
2
|
+
// don't set the initial view - it is only used for doc retrieval
|
|
3
|
+
WMStats.RequestLogDetailModel = new WMStats._ModelBase('', {},
|
|
4
|
+
WMStats.LogMessage);
|
|
5
|
+
|
|
6
|
+
WMStats.RequestLogDetailModel.setDBSource(WMStats.LogDBCouch);
|
|
7
|
+
WMStats.RequestLogDetailModel.setTrigger(WMStats.CustomEvents.ERROR_LOG_LOADED);
|
|
8
|
+
|
|
9
|
+
$(WMStats.Globals.Event).on(WMStats.CustomEvents.LOG_LOADED,
|
|
10
|
+
function(event) {
|
|
11
|
+
var options = {"include_docs": true};
|
|
12
|
+
|
|
13
|
+
var logData = WMStats.RequestLogModel.getData();
|
|
14
|
+
options.keys = logData.getErrorLogIDs();
|
|
15
|
+
if (options.keys.length > 0) {
|
|
16
|
+
WMStats.RequestLogDetailModel.retrieveData("allDocs", options);
|
|
17
|
+
};
|
|
18
|
+
});
|
reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestLogModel.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
WMStats.namespace("RequestLogModel");
|
|
2
|
+
// don't set the initial view - it is only used for doc retrieval
|
|
3
|
+
WMStats.RequestLogModel = new WMStats._ModelBase('', {},
|
|
4
|
+
WMStats.LogDBData);
|
|
5
|
+
|
|
6
|
+
WMStats.RequestLogModel.setDBSource(WMStats.LogDBCouch);
|
|
7
|
+
WMStats.RequestLogModel.setTrigger(WMStats.CustomEvents.LOG_LOADED);
|
|
8
|
+
|
|
9
|
+
$(WMStats.Globals.Event).on(WMStats.CustomEvents.REQUESTS_LOADED,
|
|
10
|
+
function(event) {
|
|
11
|
+
var options = {"stale": "update_after"};
|
|
12
|
+
|
|
13
|
+
WMStats.RequestLogModel.retrieveData("logByRequest", options);
|
|
14
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
WMStats.namespace("RequestSearchModel");
|
|
2
|
+
|
|
3
|
+
WMStats.RequestSearchModel = new WMStats._ModelBase('',
|
|
4
|
+
{"reduce": false, 'include_docs': true},
|
|
5
|
+
WMStats.WorkloadSummary);
|
|
6
|
+
|
|
7
|
+
WMStats.RequestSearchModel.setDBSource(WMStats.ReqMgrCouch);
|
|
8
|
+
WMStats.RequestSearchModel.setTrigger(WMStats.CustomEvents.WORKLOAD_SUMMARY_READY);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
WMStats.namespace("HistoryModel");
|
|
2
|
+
|
|
3
|
+
WMStats.HistoryModel = new WMStats._ModelBase('requestHistory', {}, WMStats.History);
|
|
4
|
+
|
|
5
|
+
WMStats.HistoryModel.setOptions = function() {
|
|
6
|
+
var current = Math.round((new Date()).getTime() / 1000);
|
|
7
|
+
this._options= {'reduce': false,
|
|
8
|
+
'startkey': [current, {}],
|
|
9
|
+
'endkey': [current - 600*60*24],
|
|
10
|
+
'include_docs': true,
|
|
11
|
+
'descending': true};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
WMStats.HistoryModel.setTrigger(WMStats.CustomEvents.HISTORY_LOADED);
|