Ext.Ajax.timeout=58000;var indexTabURL=parent.indexTabURL;var selected_comp="";var selected_compType="";var selected_compTypeText="";var selected_serverTypeText="";var selected_serverNameText="";var componentDetailUrl="";var rootCauseCheck=true;var stackTraceUrl="";var csrfToken="";var aggregateReloadURL="";
var isGlobalWithInfoPattern=false;var topPoc=0;var uPsHeight="21px";var toBckComp=requestParams.toBckComp;if(serverdashboard_skin=="Light"){uPsHeight="20px";}var selectedRecord=null;var insideSelectedTabInd=0;var insideSelectedTabId="";var insideActiveTab="";function setSession(d,c){var b=null;var a=document.getElementsByTagName("body")[0];
if(!Ext.isEmpty(Ext.get(a))){b=new Ext.LoadMask(Ext.get(a),{msg:"Loading...",cls:"maskDash"});b.show();}d=d+"&com.eg.CSRF_NONCE="+csrfToken;Ext.Ajax.request({url:d,success:function(f){var r=f.responseText;if(!Ext.isEmpty(r)&&r!=undefined){var h=Ext.decode(r);var l=h.threshType;if(!Ext.isEmpty(l)&&l!=undefined){var o=h.isGlobalThreshType;
var e=h.isGroupThreshType;var v=h.isGlobalDescThreshType;var x=h.isSpecificThreshType;var i=h.isDefaultThreshType;var q=h.urlValue;if(q.indexOf("?")==-1){q=q+"?referrerModule=monitor";}else{q=q+"&referrerModule=monitor";}if(o){threshTypeVar="Global";var u=h.componentType;var j=h.componentName;var n=h.testName;
var k=h.descName;var s=h.testState;var m=h.layerName;w="&comeFrom=admin&isNewMon=true";if(!Ext.isEmpty(u)){w+="&componentType="+u;}if(!Ext.isEmpty(j)){w+="&component="+j;}if(!Ext.isEmpty(n)){w+="&testName="+n;}Ext.Ajax.request({url:q+w,method:"POST",timeout:600000000,success:function(z){var A=z.responseText;
if(!Ext.isEmpty(A)&&A!=undefined){var y=Ext.decode(A);b.hide();componentDashboard.app.getController("Main").configureMainRender(y,"Global",c);}}});}else{if(e){threshTypeVar="Group";var u=h.strServer;var j=h.component;var n=h.testFromMon;var k=h.descName;var s=h.testState;var m=h.layerName;var p=h.from;
var t="&comeFrom=admin&isNewMon=true&existthreshsettings="+threshTypeVar;if(!Ext.isEmpty(u)){t+="&comptype="+u+"&server="+u;}if(!Ext.isEmpty(j)){t+="&compname="+j;}if(!Ext.isEmpty(n)){t+="&test="+n;}if(!Ext.isEmpty(k)){t+="&descName="+k;}if(!Ext.isEmpty(p)){t+="&from="+p;}Ext.Ajax.request({url:q+t,method:"POST",timeout:600000000,success:function(z){var A=z.responseText;
if(!Ext.isEmpty(A)&&A!=undefined){var y=Ext.decode(A);b.hide();componentDashboard.app.getController("Main").configureMainRender(y,"Specific",c);}}});}else{if(v){var u=h.componentType;var j=h.componentName;var n=h.testName;var k=h.descName;var s=h.testState;var m=h.layerName;isGlobalWithInfoPattern=h.isGlobalWithInfoPattern;
var p=h.from;threshTypeVar="DefaultDescriptor";var g=threshTypeVar;if(!Ext.isEmpty(isGlobalWithInfoPattern)&&isGlobalWithInfoPattern){var w="&comeFrom=admin&from=defaultThreshPage&isNewMon=true";if(!Ext.isEmpty(n)){w+="&testName="+n;}if(!Ext.isEmpty(u)){w+="&strServer="+u;}if(!Ext.isEmpty(j)){w+="&component="+j;
}if(!Ext.isEmpty(k)){w+="&descName="+k;}q=q+w;}else{g="Specific";var t="&comeFrom=admin&isNewMon=true&from=defaultDescriptorTest";if(!Ext.isEmpty(u)){t+="&comptype="+u+"&server="+u;}if(!Ext.isEmpty(j)){t+="&compname="+j;}if(!Ext.isEmpty(n)){t+="&test="+n;}if(!Ext.isEmpty(k)){t+="&descName="+k;}if(!Ext.isEmpty(p)){t+="&from="+p;
}q=q+t;}Ext.Ajax.request({url:q,method:"POST",timeout:600000000,success:function(z){var A=z.responseText;if(!Ext.isEmpty(A)&&A!=undefined){var y=Ext.decode(A);b.hide();componentDashboard.app.getController("Main").configureMainRender(y,g,c);}}});}else{if(!Ext.isEmpty(l)&&l!=undefined){if(l=="Specific"||l=="Descriptor"){threshTypeVar=l;
}else{threshTypeVar="Default";}}var u=h.comptype;var j=h.compname;var n=h.testFromMon;var k=h.descName;var s=h.testState;var m=h.layerName;var p=h.from;var t="&comeFrom=admin&isNewMon=true";if(!Ext.isEmpty(u)){t+="&comptype="+u+"&server="+u;}if(!Ext.isEmpty(j)){t+="&compname="+j;}if(!Ext.isEmpty(n)){t+="&test="+n;
}if(!Ext.isEmpty(k)){t+="&descName="+k;}if(!Ext.isEmpty(p)){t+="&from="+p;}Ext.Ajax.request({url:q+t,method:"POST",timeout:600000000,success:function(z){var A=z.responseText;if(!Ext.isEmpty(A)&&A!=undefined){var y=Ext.decode(A);b.hide();componentDashboard.app.getController("Main").configureMainRender(y,l,c);
}}});}}}}}}});}function execute(){var b="../servlet/com.eg.EgDashboardController?";try{var a=Ext.getCmp("windowValue");if(!Ext.isEmpty(a)&&a!=null&&a!=undefined){return;}}catch(c){}componentDashboard.app.getController("Main").refresh(b);}function graphload(a){componentDashboard.app.getController("SystemController").historyTabImageLoadHandler(a);
}function detailsgraphload(a){componentDashboard.app.getController("SystemController").detailsTabImageLoadHandler(a);}function ciscoAreaChartOnClick(a){componentDashboard.app.getController("NetworkController").ciscoAreaChartOnClick(a);}function ciscoPieChartOnClick(a){componentDashboard.app.getController("NetworkController").ciscoPieChartOnClick(a);
}function dialAreaChartOnclick(a){componentDashboard.app.getController("InterfaceController").dialAreaChartOnclick(a);}function interfacedialOnclick(a){componentDashboard.app.getController("InterfaceController").interfacedialOnclick(a);}function virtualnetworkgraphload(a){componentDashboard.app.getController("VirtualController").virtualnetworkImageLoadHandler(a);
}function virtualsystemgraphload(a){componentDashboard.app.getController("VirtualController").virtualsystemImageLoadHandler(a);}function detailsClicked(b,a,d){var c="/final/monitor/EgTestStatusInfo.jsp?"+b+"&layer="+a+"&badmeslist="+d;testInfoGlobalURL=c;componentDashboard.app.getController("Main").openTestInfoWindow(c);
}function showAggregateDetails(a){aggregateReloadURL=a;componentDashboard.app.getController("Main").openAggregateDetails(a);}function showCompositeDetails(a){componentDashboard.app.getController("Main").openCompositeDetails(a);}function stackTraceClicked(a,b){stackTraceUrl=a;componentDashboard.app.getController("Main").openJVMThreadStackTrace(a);
}function componenetDetailsPopUp(a){componentDetailUrl=a;componentDashboard.app.getController("Main").openComponentDetails();}function LayersToDashboard(b){var a="/final/monitor/realUserMonitorsDashboard.jsp?fromLayersToDashboard=true&layersTitle="+encodeURI(b);window.location.href=a;}function DashboardToRumApp(b){try{var a="/final/monitor/rumAppFlow.jsp?iniName=eg_rumdashboard&userBased=true&fromMenu=false&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+b+"&isBackFromRUM=true";
window.location.href=a;}catch(c){alert(c);}}function LayersToHistoryOfAlarm(b,c){var a="/final/monitor/EgAlarmHistoryView.jsp?newAlarms=true&compTypeList="+c+"&compNameList="+encodeURI(b)+"&glduration=0&duration=0&timeselect=seconds&eventsPerPage=All&arrangeAlarms=-1&fromDashBoard=true&dashboardcomptype="+c+"&dashboardcompname="+encodeURI(b)+"&fromePage=layer&selectedLayer=All";
window.location.href=a;}function LoadNetscalerTopology(){var a="/final/monitor/netScaler.jsp?isFromMenu=true&compName="+encodeURI(requestParams.hostName)+"&isFromLayer=true";window.location.href=a;}function LoadResourceConsumption(a){window.location.href=a;}function LayersToUxDashboard(a){if(a==null||a==""||a=="NA"){alert("Not Applicable");
}else{window.location.href=a;}}function LogonDetailsPopUp(a,b){if(a!=null&&a!=undefined&&a!=""){Ext.widget("window",{height:540,width:880,bodyBorder:false,bodyPadding:"9 10 10 10",cls:"UxLogonInnerWindow",frame:true,title:b,modal:true,ghost:false,frame:true,resizable:false,closable:true,draggable:true,closeAction:"destroy",layout:"anchor",shadow:"sides",items:[{xtype:"container",margin:0,bodyPadding:0,padding:0,border:false,bodyStyle:{"background":"red !important"},frame:false,width:850,height:508,autoEl:{tag:"iframe",frameborder:"0",height:"100%",src:a,}}]}).show();
}}var moreInfosWin=null;function MoreInfoLayerTreePopUp(a,c,b){if(a!=null&&a!=undefined&&a!=""){if(c==null||c==undefined||c==""){a="/final/servlet/com.eg.EgDashboardController?"+a+"&page=More Infos";c="More Infos";}moreInfosWin=Ext.create("utilities.GenericWindow",{height:563,width:"90%",bodyBorder:false,id:"moreInfoWindowBgRemove",ui:"eg-new-window",style:{"background":"none"},padding:"0 0 0 0",frame:false,title:c,header:false,modal:true,ghost:false,resizable:false,closable:true,draggable:true,closeAction:"destroy",layout:{type:"fit",align:"stretch"},margin:0,bodyPadding:"0",constrain:true,floating:true,shadow:false,hidden:true,items:[{xtype:"component",flex:1,autoEl:{tag:"iframe",frameborder:0,border:false,margin:0,src:a,}}]});
moreInfosWin.show();}if(b!=undefined&&b!=null){b.stopPropagation();}return false;}function closeMoreInfoLayerTreePopUp(){if(parent.moreInfosWin!=null&&parent.moreInfosWin!=undefined){parent.moreInfosWin.close();parent.moreInfosWin=null;}}function showPopup(m,j,b,n,a,i,o,h,d,g){m=decodeURIComponent(m);
var l=m;var k=document.getElementById("alertDetails");if(m!=null&&m!="undefined"&&m.indexOf("- ")>-1){var p=m.substring(0,m.indexOf("-"));var q=m.substring(m.indexOf(" ")+1)+"|"+p;l="+"+parent.filterEncode(q);l=l.replace(/#/g,"|hash|");}var c="";if(!Ext.isEmpty(g)&&g!=undefined){var c=g.substr(g.indexOf("(")+1,g.indexOf(")"));
}var f="";if(!Ext.isEmpty(d)&&d!=undefined){f=d;}if(h==null||h=="undefined"){h="";}var e="/final/monitor/componentAlarmDetails.jsp?testName="+l+"&layerName="+j+"&compName="+b+"&compType="+n+"&measName="+a+"&infoStr="+i+"&msmtHost="+o+"&lastMeasure="+f+"&fakeType="+h;componentDashboard.app.getController("Main").showAlarmDetails(encodeURI(e));
}function showFullviewVMTab(b,d,a){var c="ddGraph";if(a==1){c="analysisBargraph";}componentDashboard.app.getController("VirtualController").showBigGraphForVMTab(b,c);}function threadWindow(a){var b=Ext.getCmp("stackeTraceId").stackTraceUrl;componentDashboard.app.getController("ApplicationController").showThreadDetails(b,a);
}function setDDDataURL(a){}function bigGraphOnClick(){componentDashboard.app.getController("VirtualController").bigGraphOnClick();}function dialOnclick(a){componentDashboard.app.getController("VirtualController").dialOnclick(a);}function dialOnclickforInsideView(a){componentDashboard.app.getController("VirtualController").dialOnclick(a);
}function showMaximizedView(b,a,c){componentDashboard.app.getController("VirtualController").showMaximizedView(b,c);}function loadDetailsTable(a,b){componentDashboard.app.getController("NetworkController").loadDetailsTable(a,b);}function loadMaximizedView(a){if(a.indexOf("TrendGraph")>0){if(selectedTab.toLowerCase()=="system"){componentDashboard.app.getController("SystemController").trendGraphOnclick(a);
}else{if(selectedTab.toLowerCase()=="network"){componentDashboard.app.getController("NetworkController").trendGraphOnclick(a);}else{if(selectedTab.toLowerCase()=="application"){componentDashboard.app.getController("ApplicationController").trendGraphOnclick(a);}}}}else{if(a.indexOf("SummaryGraph")>0){if(selectedTab.toLowerCase()=="system"){componentDashboard.app.getController("SystemController").summaryGraphOnclick(a);
}else{if(selectedTab.toLowerCase()=="network"){componentDashboard.app.getController("NetworkController").summaryGraphOnclick(a);}else{if(selectedTab.toLowerCase()=="application"){componentDashboard.app.getController("ApplicationController").summaryGraphOnclick(a);}}}}else{if(selectedTab.toLowerCase()=="network"&&(isIncludedNetflowDeviceAvailable||isExcludedNetflowDeviceAvailable)){componentDashboard.app.getController("NetworkController").AreaGraphOnClick(a);
}else{if(selectedTab.toLowerCase()=="network"&&a.indexOf("DDGraph")>0){if(a.indexOf("~")>0){ddLinkURL=a.substring(a.indexOf("~")+1);}a=a.substring(0,a.indexOf("~"));componentDashboard.app.getController("NetworkController").DDGraphOnClick(a);}else{if(selectedTab.toLowerCase()=="network"&&a.indexOf("ComparisonGraph")>0){componentDashboard.app.getController("NetworkController").ComparisonGraphGraphOnClick(a);
}else{if(selectedTab.toLowerCase()=="network"){componentDashboard.app.getController("NetworkController").MeasureGraphOnClick(a);}else{if(selectedTab.toLowerCase()=="application"&&a.indexOf("DDGraph")>0){if(a.indexOf("~")>0){ddLinkURL=a.substring(a.indexOf("~")+1);}a=a.substring(0,a.indexOf("~"));componentDashboard.app.getController("ApplicationController").DDGraphOnClick(a);
}else{if(selectedTab.toLowerCase()=="application"&&a.indexOf("ComparisonGraph")>0){componentDashboard.app.getController("ApplicationController").ComparisonGraphGraphOnClick(a);}else{if(selectedTab.toLowerCase()=="application"){componentDashboard.app.getController("ApplicationController").MeasureGraphOnClick(a);
}else{if(selectedTab.toLowerCase()=="system"&&a.indexOf("DDGraph")>0){if(a.indexOf("~")>0){ddLinkURL=a.substring(a.indexOf("~")+1);}a=a.substring(0,a.indexOf("~"));componentDashboard.app.getController("SystemController").DDGraphOnClick(a);}else{if(selectedTab.toLowerCase()=="system"&&a.indexOf("ComparisonGraph")>0){componentDashboard.app.getController("SystemController").ComparisonGraphGraphOnClick(a);
}else{if(selectedTab.toLowerCase()=="system"){componentDashboard.app.getController("SystemController").MeasureGraphOnClick(a);}else{if(selectedTab.toLowerCase()=="interfaces"){componentDashboard.app.getController("InterfaceController").AreaGraphOnClick(a);}else{componentDashboard.app.getController("VirtualController").displayBigGraph(a,"Measuregraph");
}}}}}}}}}}}}}}function closeMaximizedView(){closeBigHighchart();}function checkValidValue(c){var b=/^(\-)$|^(\-|\-?(([0-9]+\.|\.)?[0-9]+))$/i;var a=b.test(c);return a;}function checkNegativeValue(c){if(c=="-"){c="0";}var b=/^\-([0-9]+\.|\.)?[0-9]+/;var a=b.test(c);return a;}function checkNegativeFormat(c){var b=/^(\-{0,1})[0-9]{1,10}(\.[0-9]{1,4})?$/;
var a=b.test(c);return a;}function checkNonNegativeFormat(c){var b=/^[0-9]{0,10}(\.[0-9]{1,4})?$/;var a=b.test(c);return a;}Ext.state.Manager.setProvider(new Ext.state.CookieProvider());Ext.Loader.setConfig({enabled:true,disableCaching:false,preserveScripts:false,garbageCollect:false,paths:{"Ext.ux":"/final/scripts/ux","utilities":"/final/scripts/utilities","componentDashboard":"/final/monitor/eg_scripts/componentDashboard"}});
Ext.Loader.syncRequire(["componentDashboard.controller.Main","componentDashboard.controller.LayersController"]);if(requiresBasic&&(!requiresWithVirtual)){Ext.application({name:"componentDashboard",requires:["componentDashboard.view.Main"],appFolder:"/final/monitor/eg_scripts/componentDashboard",controllers:["Main","LayersController","SystemController","NetworkController","NetflowController"],init:function(){init();
},launch:function(){componentDashboard.app=this;Ext.create("Ext.container.Viewport",{layout:"fit",cls:"viewport-panel",items:[{xtype:"main"}]});}});}else{if(requiresBasic&&requiresWithVirtual){Ext.application({name:"componentDashboard",requires:["componentDashboard.view.Main"],appFolder:"/final/monitor/eg_scripts/componentDashboard",controllers:["Main","LayersController","SystemController","NetworkController","VirtualController","NetflowController"],init:function(){init();
},launch:function(){componentDashboard.app=this;Ext.create("Ext.container.Viewport",{layout:"fit",cls:"viewport-panel",items:[{xtype:"main"}]});}});}else{if((!requiresBasic)&&requiresWithApplication){Ext.application({name:"componentDashboard",requires:["componentDashboard.view.Main"],appFolder:"/final/monitor/eg_scripts/componentDashboard",controllers:["Main","LayersController","SystemController","NetworkController","ApplicationController"],init:function(){init();
},launch:function(){componentDashboard.app=this;Ext.create("Ext.container.Viewport",{layout:"fit",cls:"viewport-panel",items:[{xtype:"main"}]});}});}else{if((!requiresBasic)&&requiresWithInterface){Ext.application({name:"componentDashboard",requires:["componentDashboard.view.Main"],appFolder:"/final/monitor/eg_scripts/componentDashboard",controllers:["Main","LayersController","SystemController","NetworkController","InterfaceController"],init:function(){init();
},launch:function(){componentDashboard.app=this;Ext.create("Ext.container.Viewport",{layout:"fit",cls:"viewport-panel",items:[{xtype:"main"}]});}});}else{Ext.application({name:"componentDashboard",requires:["componentDashboard.view.Main"],appFolder:"/final/monitor/eg_scripts/componentDashboard",controllers:["Main","LayersController","SystemController","NetworkController","VirtualController","ApplicationController","InterfaceController"],init:function(){init();
},launch:function(){componentDashboard.app=this;Ext.create("Ext.container.Viewport",{layout:"fit",cls:"viewport-panel",items:[{xtype:"main"}]});}});}}}}function openScreenShot(a,d){if(Ext.isEmpty(a)||a==null||a==undefined){return;}var c="-";if(a.indexOf("|")>0){c=a.substring(a.indexOf("|")+1);a=a.substring(0,a.indexOf("|"));
}try{if(d==undefined||d=="undefined"||d==""){d="Failure Screenshot";}Ext.create("Ext.window.Window",{title:d,height:"90%",cls:"logonWindowShadow",modal:true,shadow:"sides",shadowOffset:50,resizable:false,width:"80%",layout:"fit",resizable:false,width:"80%",items:[{xtype:"component",style:{"align":"center"},listeners:{"render":function(e){Ext.EventManager.onWindowResize(function(f,g){e.doComponentLayout();
});}},autoEl:{tag:"iframe",frameborder:false,width:"100%",height:"100%",style:{"align":"center"},src:"/final/monitor/screenshotDisplay.jsp?managerId="+encodeURI(c)+"&imageID="+encodeURI(a)+".jpg"}}]}).show();}catch(b){}}