{
"includeFiles":[
],
"metadata":{
"amiCustomCss":[
".public_slidecontainer {\n",
" width: 100%; /* Width of the outside container */\n",
"}\n",
"\n",
"/* The slider itself */\n",
".public_slider {\n",
" -webkit-appearance: none; /* Override default CSS styles */\n",
" appearance: none;\n",
" width: 100%; /* Full-width */\n",
" height: 25px; /* Specified height */\n",
" background: #d3d3d3; /* Grey background */\n",
" outline: none; /* Remove outline */\n",
" opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */\n",
" -webkit-transition: .2s; /* 0.2 seconds transition on hover */\n",
" transition: opacity .2s;\n",
"}\n",
"\n",
"/* Mouse-over effects */\n",
".public_slider:hover {\n",
" opacity: 1; /* Fully shown on mouse-over */\n",
"}"
],
"amiScriptMethods":[
"{\n",
" //##### ##### ##### \n",
" // Autocomplete Files FlatFile\n",
" //##### ##### ##### \n",
" Table session_getTable(String id){\n",
" TablePanel tp ;\n",
" tp.getSelectedRows();\n",
" Table t = session.getValue(id);\n",
" if(t == null)\n",
" return null;\n",
" else {\n",
" create table ${id} = t;\n",
" return t;\n",
" }\n",
" };\n",
" int session_setTable(String id, String columns){\n",
" Table t = select ${columns} from `${id}`;\n",
" // Table t = select * from ${id}; // this returns error if id is diagnose or other reserved word;\n",
" session.setValue(id, t);\n",
" };\n",
" int session_addTableTo(String target, String newResults, String columns){\n",
" session_getTable(target);\n",
" insert into ${target} (${columns}) from select ${columns} from ${newResults};\n",
" session_setTable(target, columns);\n",
" drop table ${target};\n",
" };\n",
" int session_init(){\n",
" String columns = \"TABLE, TYPE, NAME, EST_MEMORY, COUNT, CARDINALITY, COMMENT\";\n",
" CREATE TABLE `current_diagnose` (`TABLE` String,`TYPE` String,`NAME` String,`EST_MEMORY` Long,`COUNT` Integer,`CARDINALITY` Integer,`COMMENT` String,`AVG_LENGTH` Double);\n",
" session_setTable(\"current_diagnose\", columns);\n",
" CREATE TABLE `full_diagnose` (`TABLE` String,`TYPE` String,`NAME` String,`EST_MEMORY` Long,`COUNT` Integer,`CARDINALITY` Integer,`COMMENT` String,`AVG_LENGTH` Double);\n",
" session_setTable(\"full_diagnose\", columns);\n",
" };\n",
" \n",
" int showTables(){\n",
" create table tables as use ds=\"AMI\" execute select * from (show tables); \n",
" };\n",
" \n",
" int getDiagnose(){\n",
" session_getTable(\"current_diagnose\"); \n",
" session_getTable(\"full_diagnose\"); \n",
" };\n",
" \n",
" int diagnoseReprocess(){\n",
" layout.getDatamodel(\"dm_diagnose\").reprocess();\n",
" };\n",
" \n",
" int diagnoseTable(String tableName){\n",
" String columns = \"TABLE, TYPE, NAME, EST_MEMORY, COUNT, CARDINALITY, COMMENT\";\n",
" create table current_diagnose as use ds=\"AMI\" execute select ${columns} from (diagnose table `${tableName}`);\n",
" // Table t = select * from `${id}`;\n",
" session_setTable(\"current_diagnose\", columns);\n",
" session_addTableTo(\"full_diagnose\", \"current_diagnose\", columns);\n",
" };\n",
" \n",
" int diagnoseColumn(String tableName, String column){\n",
" String columns = \"TABLE, TYPE, NAME, EST_MEMORY, COUNT, CARDINALITY, COMMENT\";\n",
" create table current_diagnose as use ds=\"AMI\" execute select ${columns} from (diagnose column ${column} on`${tableName}`);\n",
" session_setTable(\"current_diagnose\", columns);\n",
" session_addTableTo(\"full_diagnose\", \"current_diagnose\", columns);\n",
" };\n",
" int menu_diagnoseTable(MenuItem mi){\n",
" TablePanel tp = mi.getPanel();\n",
" List rows = tp.getSelectedRows();\n",
" for(int i = 0; i < rows.size(); i++){\n",
" Row r = rows.get(i);\n",
" String name = r.get(\"TableName\");\n",
" diagnoseTable(name);\n",
" }\n",
" diagnoseReprocess();\n",
" };\n",
" int menu_diagnoseColumn(MenuItem mi){\n",
" TablePanel tp = mi.getPanel();\n",
" List rows = tp.getSelectedRows();\n",
" for(int i = 0; i < rows.size(); i++){\n",
" Row r = rows.get(i);\n",
" String tableName = r.get(\"TABLE\");\n",
" String name = r.get(\"NAME\");\n",
" \n",
" diagnoseColumn(tableName, name);\n",
" }\n",
" };\n",
" //##### ##### ##### \n",
" // Autocomplete Files FlatFile\n",
" //##### ##### ##### \n",
" String fs_unixPath(String path){\n",
" if(path == null)\n",
" return \"\";\n",
" if(strIsnt(path))\n",
" return path;\n",
" return strReplace(path, \"\\\\\", \"/\"); \n",
" };\n",
" String fs_getDir(String path){\n",
" // Gets the parent dir of an incomplete or complete path\n",
" // Appends `/` where appropriate\n",
" path = fs_unixPath(path);\n",
" int idx = strIndexOf(path, \"/\");\n",
" if(idx == -1)\n",
" return \"\";\n",
" String dir = strBeforeLast(path, \"/\", true) + \"/\";\n",
" return dir;\n",
" };\n",
" \n",
" List fs_listFiles(String dir, String match){\n",
" {\n",
" TABLE filesT = USE ds=\"AmiLogFile\" _file=\"./${dir}\" _delim=\"\\n\" _fields=\"String line\" EXECUTE SELECT * FROM file;\n",
" // Table filesT = select * from files;\n",
" // filesT.getColumnLocation(\n",
" int linenum_loc = filesT.getColumnLocation(\"line\");\n",
" if(linenum_loc != -1)\n",
" throw new List(\"Invalid Argument\", \"fs_listFiles: \", \"The path provided is not a directory\", dir );\n",
" \n",
" String filter = \"true\";\n",
" if(strIs(match)){\n",
" // Uses simplified text matching\n",
" // Ex match = \"AmiOne.log\"\n",
" // Ex match = \"AmiMessages.log\"\n",
" // Ex match = \"AmiOne.amilog\"\n",
" filter = \"name ~~ \\\"\" + match +\"\\\"\";\n",
" filesT = filesT.query(\"select * from this WHERE ${filter};\");\n",
" }\n",
" // create table out = filesT;\n",
" List filesList = filesT.toList(\"name\");\n",
" return filesList;\n",
" }\n",
" catch(Object err){\n",
" session.alert(new List(\"Unknown Error\", \"fs_listFiles\", dir, match, err));\n",
" }\n",
" };\n",
" List fs_listFiles(String dir){\n",
" return fs_listFiles(dir, null); \n",
" };\n",
" \n",
" int form_files_autocomplete(FormTextField ff, String dir, String fileMatch){\n",
" // String path = ff.getValue();\n",
" // path = fs_t\n",
" List files_list = null;\n",
" files_list = fs_listFiles(dir, fileMatch);\n",
" for(int i = 0; i < files_list.size(); i++){\n",
" files_list.set(i, dir + files_list.get(i));\n",
" }\n",
" // session.alert(files_list);\n",
" ff.clearOptions();\n",
" ff.setOptions(files_list);\n",
" };\n",
" \n",
" int form_files_show_autocomplete(FormTextField ff, String fileMatch){\n",
" // Ex Use: form_files_show_autocomplete(this, \"AmiOne.log\");\n",
" String path = fs_unixPath((String)(ff.getValue()));\n",
" // If path is empty string or ends with `/`\n",
" boolean showAll = strIsnt(path) || strEndsWith(path, \"/\", false);\n",
" String dir = fs_getDir(path); // will have / at end if necessary\n",
" \n",
" // session.log(showAll);\n",
" if(showAll){\n",
" form_files_autocomplete(ff, dir, null); \n",
" }\n",
" else{\n",
" form_files_autocomplete(ff, dir, fileMatch); \n",
" }\n",
" };\n",
" \n",
" \n",
" //##### ##### ##### \n",
" // VIEW MANAGER \n",
" //##### ##### ##### \n",
" \n",
" \n",
" TabsPanel getViewContainerPanel(){\n",
" return layout.getPanel(\"SystemsTab\");\n",
" // return \"SystemsTab\";\n",
" };\n",
" \n",
" //##### ##### ##### \n",
" // VIEW MANAGER Debug\n",
" //##### ##### ##### \n",
" \n",
" //##### ##### ##### \n",
" // Debug\n",
" //##### ##### ##### \n",
" \n",
" boolean viewConfig(Map config, String pnlId, String field){\n",
" FormPanel f = layout.getPanel(pnlId);\n",
" FormField ff = f.getField(field);\n",
" \n",
" String json = toJson(config, false);\n",
" ff.setValue(json);\n",
" };\n",
" \n",
" //##### ##### ##### \n",
" // Basic View Methods \n",
" //##### ##### ##### \n",
" \n",
" String getViewId(String id){\n",
" String suffix = strAfterLast(id,\"_VIEW_\",false);\n",
" return suffix;\n",
" };\n",
" \n",
" String getViewId(Tab t){\n",
" Panel innerPanel = t.getInnerPanel();\n",
" \n",
" return getViewId(innerPanel.getId());\n",
" };\n",
" \n",
" String getBaseView(Tab t){\n",
" Panel inner = t.getInnerPanel();\n",
" String uiPanelId = inner.getId();\n",
" String baseView = strBeforeLast(uiPanelId,\"_VIEW_\",true);\n",
" return baseView;\n",
" };\n",
" String incrementId(String amiId, String newViewId){\n",
" return \"${strBeforeLast(amiId, \"_VIEW_\", true)}_VIEW_${newViewId}\";\n",
" };\n",
" \n",
" Panel getPanelForView(String viewid, String id){\n",
" String r = id;\n",
" if(viewid != null)\n",
" r += \"_VIEW_\" + viewid;\n",
" return layout.getPanel(r);\n",
" };\n",
" \n",
" Datamodel getDatamodelForView(String viewid, String id){\n",
" String r = id;\n",
" if(viewid != null)\n",
" r += \"_VIEW_\" + viewid;\n",
" return layout.getDatamodel(r);\n",
" };\n",
" \n",
" Relationship getRelationshipForView(String viewid, String id){\n",
" String r = id;\n",
" if(viewid != null)\n",
" r += \"_VIEW_\" + viewid;\n",
" return layout.getRelationship(r);\n",
" };\n",
" \n",
" Panel getPanelFromView(Tab t, String panelId){\n",
" session.alert(\"Deprecated\");\n",
" String suffix = getViewId(t);\n",
" if(suffix != null){\n",
" panelId += \"_VIEW_\"+suffix;\n",
" }\n",
" return layout.getPanel(panelId);\n",
" };\n",
" \n",
" \n",
" Datamodel getDatamodelFromView(Tab t, String dmid){\n",
" session.alert(\"Deprecated\");\n",
" String suffix = getViewId(t);\n",
" if(suffix != null){\n",
" dmid += \"_VIEW_\"+suffix;\n",
" }\n",
" return layout.getDatamodel(dmid);\n",
" };\n",
" \n",
" Relationship getRelationshipFromView(Tab t, String relid){\n",
" session.alert(\"Deprecated\");\n",
" String suffix = getViewId(t);\n",
" if(suffix != null){\n",
" relid += \"_VIEW_\"+suffix;\n",
" }\n",
" return layout.getRelationship(relid);\n",
" };\n",
" \n",
" boolean isView(Tab t){\n",
" return (getViewId(t) != null);\n",
" };\n",
" \n",
" String getNextViewId(TabsPanel tabs){\n",
" Set existingIds = new Set();\n",
" for(int i = 0; i < tabs.getTabsCount(); i++){\n",
" Tab t = tabs.getTabAt(i);\n",
" String viewId = getViewId(t);\n",
" if(existingIds!=null)\n",
" existingIds.add(viewId);\n",
" }\n",
"\n",
" int nextViewId=0;\n",
" \n",
" while(existingIds.contains(\"${nextViewId}\")){\n",
" nextViewId++;\n",
" }\n",
" return \"${nextViewId}\";\n",
" };\n",
" \n",
" Set getViewPanelIds(Map config){\n",
" Set ids = new Set();\n",
" List portlets = config.get(\"portletConfigs\");\n",
" \n",
" for(int i = 0; i < portlets.size(); i++){\n",
" Map portlet = portlets.get(i);\n",
" Map portletConfig = portlet.get(\"portletConfig\"); \n",
" String amiPanelId = portletConfig.get(\"amiPanelId\");\n",
" \n",
" ids.add(amiPanelId);\n",
" }\n",
" return ids;\n",
" };\n",
" \n",
" Set getViewDatamodelIds(Map config){\n",
" Set ids = new Set();\n",
" List portlets = config.get(\"portletConfigs\");\n",
" \n",
" for(int i = 0; i < portlets.size(); i++){\n",
" Map portlet = portlets.get(i);\n",
" Map portletConfig = portlet.get(\"portletConfig\"); \n",
" \n",
" List dmConfig = portletConfig.get(\"dm\");\n",
" for(int j = 0; j < dmConfig.size(); j++){\n",
" Map dm = dmConfig.get(j);\n",
" String dmadn = dm.get(\"dmadn\");\n",
" ids.add(dmadn);\n",
" }\n",
" }\n",
" return ids;\n",
" \n",
" };\n",
" \n",
" Set getViewRelationshipIds(Map config){\n",
" Set ids = new Set();\n",
" List amilinks = config.get(\"ami_links\");\n",
" for(int i = 0; i < amilinks.size(); i++){\n",
" Map link = amilinks.get(i);\n",
" String relid = link.get(\"relid\");\n",
" ids.add(relid);\n",
" }\n",
" return ids;\n",
" };\n",
" \n",
" //##### ##### ##### \n",
" // Copying Views + Managing Views\n",
" //##### ##### ##### \n",
" \n",
" boolean incrementPanels(Map config, Set viewPanelIds, Set viewDatamodelIds, String newViewId){\n",
" List portlets = config.get(\"portletConfigs\");\n",
" \n",
" for(int i = 0; i < portlets.size(); i++){\n",
" Map portlet = portlets.get(i);\n",
" String portletBuilderId = portlet.get(\"portletBuilderId\");\n",
" Map portletConfig = portlet.get(\"portletConfig\"); \n",
" \n",
" // Increment Container children\n",
" if(\"div\" == portletBuilderId){\n",
" String child1 = portletConfig.get(\"child1\");\n",
" if(viewPanelIds.contains(child1))\n",
" portletConfig.put(\"child1\", incrementId(child1, newViewId));\n",
" String child2 = portletConfig.get(\"child2\");\n",
" if(viewPanelIds.contains(child2))\n",
" portletConfig.put(\"child2\", incrementId(child2, newViewId));\n",
" }\n",
" else if(\"tab\" == portletBuilderId){\n",
" List tabs = portletConfig.get(\"tabs\");\n",
" for(int j = 0; j < tabs.size(); j++){\n",
" Map tab = tabs.get(j);\n",
" String child = tab.get(\"child\");\n",
" if(viewPanelIds.contains(child))\n",
" tab.put(\"child\", incrementId(child, newViewId));\n",
" }\n",
" }\n",
" else if(\"scrollpane\" == portletBuilderId){\n",
" String child = portletConfig.get(\"child\");\n",
" if(viewPanelIds.contains(child))\n",
" portletConfig.put(\"child\", incrementId(child, newViewId));\n",
" }\n",
" else if(\"amichartgrid\" == portletBuilderId){\n",
" Map plotConfig = portletConfig.get(\"plotConfig\");\n",
" for(String plotId: plotConfig.getKeys()){\n",
" Map plot = plotConfig.get(plotId);\n",
" List layers = plot.get(\"layers\"); \n",
" for(int j = 0; j < layers.size(); j++){\n",
" Map layer = layers.get(j); \n",
" String dmadn = layer.get(\"dmadn\");\n",
" if(dmadn != null && viewDatamodelIds.contains(dmadn))\n",
" layer.put(\"dmadn\", incrementId(dmadn, newViewId));\n",
" } \n",
" }\n",
" }\n",
" \n",
" \n",
" // Increment rt feed\n",
" else if(\"Amirealtimeaggtable\" == portletBuilderId || \"amirealtimetable\" == portletBuilderId || \"amirealtimetreemap\" == portletBuilderId){\n",
" List rtSources = portletConfig.get(\"rtSources\");\n",
" for(int j = 0; j < rtSources.size(); j++){\n",
" String source = rtSources.get(j);\n",
" if(strStartsWith(source, \"PANEL:\", false)){\n",
" String sourcePanel = strAfter(source, \"PANEL:\", false);\n",
" if(sourcePanel == null)\n",
" throw \"Invalid rtSource\";\n",
" \n",
" if(viewPanelIds.contains(sourcePanel))\n",
" rtSources.set(j, incrementId(source, newViewId));\n",
" }\n",
" }\n",
" }\n",
" \n",
" \n",
" // Increment AmiPanelId upid\n",
" String amiPanelId = portletConfig.get(\"amiPanelId\");\n",
" portletConfig.put(\"amiPanelId\", incrementId(amiPanelId, newViewId));\n",
" String upid = portletConfig.get(\"upid\");\n",
" portletConfig.put(\"upid\", incrementId(upid, newViewId));\n",
" \n",
" // Increment dm if dm is part of view\n",
" List dmConfig = portletConfig.get(\"dm\");\n",
" for(int j = 0; j < dmConfig.size(); j++){\n",
" Map dm = dmConfig.get(j);\n",
" String dmadn = dm.get(\"dmadn\");\n",
" if(viewDatamodelIds.contains(dmadn))\n",
" dm.put(\"dmadn\", incrementId(dmadn, newViewId));\n",
" }\n",
" \n",
" \n",
" }\n",
" };\n",
" \n",
" boolean incrementRelationships(Map config, Set viewPanelIds, Set viewDatamodelIds, String newViewId){\n",
" Set ids = new Set();\n",
" List amilinks = config.get(\"ami_links\");\n",
" for(int i = 0; i < amilinks.size(); i++){\n",
" Map link = amilinks.get(i);\n",
" String relid = link.get(\"relid\");\n",
" link.put(\"relid\", incrementId(relid, newViewId));\n",
" \n",
" // Panels \n",
" String spadn = link.get(\"spadn\");\n",
" if(spadn!=null && viewPanelIds.contains(spadn))\n",
" link.put(\"spadn\", incrementId(spadn, newViewId));\n",
" \n",
" String tpadn = link.get(\"tpadn\");\n",
" if(tpadn!=null && viewPanelIds.contains(tpadn))\n",
" link.put(\"tpadn\", incrementId(tpadn, newViewId));\n",
" \n",
" // Datamodels\n",
" String sdmadn = link.get(\"sdmadn\");\n",
" if(sdmadn!=null && viewDatamodelIds.contains(sdmadn))\n",
" link.put(\"sdmadn\", incrementId(sdmadn, newViewId));\n",
" \n",
" String tdmadn = link.get(\"tdmadn\");\n",
" if(tdmadn!= null && viewDatamodelIds.contains(tdmadn))\n",
" link.put(\"tdmadn\", incrementId(tdmadn, newViewId));\n",
" \n",
" \n",
" }\n",
" };\n",
" \n",
" boolean incrementDatamodels(List config, String newViewId){\n",
" Set ids = new Set();\n",
" for(int i = 0; i < config.size(); i++){\n",
" Map dm = config.get(i);\n",
" String lbl = dm.get(\"lbl\");\n",
" dm.put(\"lbl\", incrementId(lbl, newViewId)); \n",
" }\n",
" };\n",
" \n",
" List exportDatamodels(Set viewDmIds){\n",
" List r = new List();\n",
" for(String lbl: viewDmIds){\n",
" Datamodel dm = layout.getDatamodel(lbl);\n",
" Map dmConfig = dm.exportConfig();\n",
" r.add(dmConfig);\n",
" }\n",
" return r;\n",
" };\n",
" \n",
" boolean addImportDatamodels(List dmsConfig){\n",
" for(int i = 0; i < dmsConfig.size(); i++){\n",
" Map dmConfig = dmsConfig.get(i);\n",
" String lbl = dmConfig.get(\"lbl\");\n",
" Datamodel dm = layout.getDatamodel(lbl);\n",
" if(dm == null)\n",
" session.importDatamodel(dmConfig);\n",
" }\n",
" };\n",
" \n",
"\n",
" \n",
" Tab createView(String viewName, TabsPanel tabsPanel, Panel baseView, String newViewId){\n",
" \n",
" // Export Panel & Relationship Config \n",
" String topPanel = baseView.getId();\n",
" Map baseConfig = baseView.exportConfigIncludeExternalRelationships();\n",
" // viewConfig(baseConfig, \"PNL1\", \"textarea\");\n",
" \n",
" // Get View Panels, Dms, Relationships\n",
" Set basePanelIds = getViewPanelIds(baseConfig);\n",
" Set baseDatamodelIds = getViewDatamodelIds(baseConfig);\n",
" Set baseRelationshipIds = getViewRelationshipIds(baseConfig);\n",
" \n",
" //Export Dm Config\n",
" List dmsConfig = exportDatamodels(baseDatamodelIds);\n",
" \n",
" // Update ids\n",
" incrementPanels(baseConfig, basePanelIds, baseDatamodelIds, newViewId);\n",
" incrementRelationships(baseConfig, basePanelIds, baseDatamodelIds, newViewId);\n",
" incrementDatamodels(dmsConfig, newViewId);\n",
" baseConfig.put(\"topAmiPanelId\", incrementId(topPanel, newViewId));\n",
" viewConfig(baseConfig, \"PNL1\", \"textarea1\");\n",
" \n",
" // Import datamodels\n",
" addImportDatamodels(dmsConfig);\n",
" // Add tab\n",
" Map newConfig = baseConfig;\n",
" int newPosition = tabsPanel.getTabsCount();\n",
" Tab newTab = tabsPanel.addTab(newPosition, viewName, newConfig);\n",
" return newTab;\n",
" };\n",
" \n",
" Tab createView(String viewName, TabsPanel tabsPanel, Panel baseView){\n",
" String newViewId = getNextViewId(tabsPanel);\n",
" return createView(viewName, tabsPanel, baseView, newViewId);\n",
" };\n",
" \n",
" \n",
" boolean closeView(Tab view){\n",
" if(isView(view)){\n",
" view.hideTab();\n",
" Panel innerPanel = view.getInnerPanel();\n",
" innerPanel.close();\n",
" }\n",
" \n",
" // boolean ih = view.isHidden();\n",
" };\n",
" \n",
" String getStatusCloseViewMenu(MenuItem m){\n",
" TabsPanel p = m.getPanel();\n",
" Tab t = p.getSelectedTab();\n",
" return isView(t) ?\"enabled\":\"disabled\";\n",
" };\n",
" boolean closeViewMenu(MenuItem m){\n",
" TabsPanel p = m.getPanel();\n",
" Tab t = p.getSelectedTab();\n",
" closeView(t);\n",
" };\n",
" \n",
" //##### ##### ##### \n",
" // Saving/Loading Views To Preferences\n",
" //##### ##### ##### \n",
" \n",
" boolean getCustomViews(TabsPanel tabs, List sink){\n",
" String tabsPanelId = tabs.getId();\n",
" for(int i = 0; i < tabs.getTabsCount(); i++){\n",
" Tab t = tabs.getTabAt(i);\n",
" \n",
" if(isView(t)){\n",
" Map m = new Map();\n",
" m.put(\"tabsPanelId\", tabsPanelId);\n",
" m.put(\"viewId\", getViewId(t));\n",
" m.put(\"title\", t.getTitle());\n",
" m.put(\"baseView\", getBaseView(t));\n",
" sink.add(m);\n",
" }\n",
" }\n",
" };\n",
" \n",
" boolean savePrefCustomViews(List tabsPanelIds, List userPrefs){\n",
" List customViews = new List();\n",
" for(int i = 0; i < tabsPanelIds.size(); i++){\n",
" String tabsPanelId = tabsPanelIds.get(i);\n",
" TabsPanel tp = layout.getPanel(tabsPanelId);\n",
" getCustomViews(tp, customViews);\n",
" }\n",
" session.putCustomPreference(\"__CUSTOM_VIEWS\", customViews);\n",
" Map pref = new Map();\n",
" pref.put(\"cpid\", \"__CUSTOM_VIEWS\");\n",
" pref.put(\"pref\", customViews);\n",
" userPrefs.add(pref);\n",
" };\n",
" \n",
" boolean loadPrefCustomViews(List userPrefs){\n",
" \n",
" List customViews = session.getCustomPreference(\"__CUSTOM_VIEWS\");\n",
" if(customViews!=null)\n",
" for(int i = 0; i< customViews.size(); i++){\n",
" Map m = customViews.get(i);\n",
" String viewId = m.get(\"viewId\");\n",
" String baseViewId = m.get(\"baseView\");\n",
" \n",
" // Check if the view already exists\n",
" String targetViewId = incrementId(baseViewId, viewId);\n",
" Panel targetViewPanel = layout.getPanel(targetViewId); \n",
" if(targetViewPanel != null)\n",
" continue;\n",
" \n",
" String tabsPanelId = m.get(\"tabsPanelId\");\n",
" String title = m.get(\"title\");\n",
" \n",
" TabsPanel tp = layout.getPanel(tabsPanelId);\n",
" Panel baseView = layout.getPanel(baseViewId); \n",
" createView(title, tp, baseView, viewId);\n",
" }\n",
" };\n",
" boolean loadFormFieldValues(List userPrefs){\n",
" // Get Preference\n",
" List formFieldValues = session.getCustomPreference(\"__CUSTOM_FORM_FIELD_VALUES\");\n",
" if(formFieldValues!= null){\n",
" // Loop through all the saved formms\n",
" for(int i = 0; i < formFieldValues.size(); i ++){\n",
" Map formMap = formFieldValues.get(i); \n",
" String panelId = formMap.get(\"panelId\");\n",
" Map fieldValues = formMap.get(\"fieldValues\");\n",
" \n",
" FormPanel fp = layout.getPanel(panelId);\n",
" // Get all the fields and\n",
" for(String varName : fieldValues.getKeys()){\n",
" Object value = fieldValues.get(varName);\n",
" FormField ff = fp.getField(varName);\n",
" ff.setValue(value);\n",
" }\n",
" \n",
" }\n",
" }\n",
"\n",
" \n",
" };\n",
" boolean saveFormFieldValues(List formPanelIds, List userPrefs){\n",
" List formFieldValues = new List();\n",
" for(int i = 0; i < formPanelIds.size(); i++){\n",
" String panelId = formPanelIds.get(i);\n",
" FormPanel fp = layout.getPanel(panelId);\n",
" Map formMap = new Map(); \n",
" \n",
" Map fieldValues = new Map();\n",
" List fields = fp.getFields();\n",
" for(int j = 0; j < fields.size(); j++){\n",
" FormField ff = fields.get(j);\n",
" String varName = ff.getVariableName();\n",
" Object value = ff.getValue();\n",
" fieldValues.put(varName, value);\n",
" }\n",
" \n",
" \n",
" formMap.put(\"panelId\", panelId);\n",
" formMap.put(\"fieldValues\", fieldValues);\n",
" formFieldValues.add(formMap);\n",
" }\n",
" session.putCustomPreference(\"__CUSTOM_FORM_FIELD_VALUES\", formFieldValues);\n",
" Map pref = new Map();\n",
" pref.put(\"cpid\",\"__CUSTOM_FORM_FIELD_VALUES\");\n",
" pref.put(\"pref\", formFieldValues);\n",
" userPrefs.add(pref);\n",
" };\n",
" \n",
" boolean saveSystemControlsPanels(List userPrefs){\n",
" TabsPanel tabs = getViewContainerPanel();\n",
" List formIds = new List();\n",
" for(int i = 0; i < tabs.getTabsCount(); i++){\n",
" Tab t = tabs.getTabAt(i);\n",
" FormPanel fp = getPanelForView(getViewId(t),\"SystemControls\");\n",
" formIds.add(fp.getId());\n",
" }\n",
" saveFormFieldValues(formIds, userPrefs);\n",
" };\n",
" \n",
" boolean refreshLogViews(){\n",
" TabsPanel tabs = getViewContainerPanel();\n",
" for(int i = 0; i < tabs.getTabsCount(); i++){\n",
" Tab t = tabs.getTabAt(i);\n",
" FormPanel fp = getPanelForView(getViewId(t),\"SystemControls\");\n",
" FormButtonField fb = fp.getField(\"refreshall\");\n",
" fb.click();\n",
" }\n",
" };\n",
" \n",
" boolean onStartupPref(Session sess){\n",
" session_init();\n",
" };\n",
" \n",
" boolean onLoadingPref(Session sess, List userPrefs){\n",
" loadPrefCustomViews(userPrefs);\n",
" loadFormFieldValues(userPrefs);\n",
" refreshLogViews();\n",
" };\n",
" \n",
" boolean onSavingPref(Session sess, List userPrefs){\n",
" savePrefCustomViews(new List(\"SystemsTab\"), userPrefs);\n",
" saveSystemControlsPanels(userPrefs);\n",
" };\n",
" \n",
" Object removeQuote(String value) {\n",
" return strStartsWith(value, \"\\\"\", false) || (strEndsWith(value, \"\\\"\", false)) ? strSubstring(value, 1, strLen(value) - 1) : value;\n",
" \n",
" };\n",
"\n",
" List listFromFile(){\n",
" FormPanel fp = layout.getPanel(\"SystemControls\");\n",
" FormUploadField fuf = fp.getField(\"uploadFF\");\n",
" //Binary st = fuf.getFileBinaryData();\n",
" //String ss = binaryToStr(st);\n",
" String str = fuf.getFileTextData();\n",
" //List l = ss.splitLines();\n",
" //l.remove(0);\n",
" return new List(\"hi\");\n",
" };\n",
" \n",
" \n",
" List stringsToMaps(List strs, String delim, String equals){\n",
" List ret = new List();\n",
" for(String s: strs){\n",
" ret.add(strSplitToMap(s.trim().replaceAll(\"\\\"\",\"\").substring(2), delim, equals));\n",
" }\n",
" return ret;\n",
" };\n",
" \n",
" String formatDuration(long numMillis){\n",
" int sec = numMillis/1000 % 60;\n",
" int min = numMillis/60000 % 60;\n",
" int hrs = numMillis / 3600000;\n",
" return hrs + \"h\" + min + \"m\" + sec +\"s\";\n",
" };\n",
" \n",
" String hoverDisplay(String title, Long time, String yName, String yVal){\n",
" String toRet = \"\";\n",
" toRet += \"\" + title + \"
\";\n",
" toRet += \"Date: \" + formatDate(time,\"MM/dd/yyyy\",session.getTimeZone())+\"
\";\n",
" toRet += \"Time: \" + formatDate(time,\"HH:mm:ss.SSS z\",session.getTimeZone())+\"
\";\n",
" toRet += yName + \": \" + yVal;\n",
" return toRet;\n",
" };\n",
" \n",
" String getLineColor(int series){\n",
" return brighten(cycle(series,\"6cbcde\",\"#ff303e\",\"#ff7530\",\"#30ff6e\",\"#30f8ff\",\"#30b3ff\",\"#d229db\",\"#ff3098\",\"#ffc637\",\"#ffe49e\",\"#ff94c9\",\"#94d8ff\",\"#94fbff\",\"#94ffb4\",\"#ffb894\",\"#ff949b\",\"#e481ea\" ),-0.5D);\n",
" };\n",
" \n",
" String getMarkerColor(int series){\n",
" return cycle(series,\"6cbcde\",\"#ff303e\",\"#ff7530\",\"#30ff6e\",\"#30f8ff\",\"#30b3ff\",\"#d229db\",\"#ff3098\",\"#ffc637\",\"#ffe49e\",\"#ff94c9\",\"#94d8ff\",\"#94fbff\",\"#94ffb4\",\"#ffb894\",\"#ff949b\",\"#e481ea\");\n",
" };\n",
"\n",
" Boolean isOverlap(Long sOrig, Long eOrig, Long sComp, Long eComp){\n",
" return sOrig <= eComp && eOrig >= eComp || \n",
" sOrig <= sComp && eOrig >= sComp || \n",
" sComp <= sOrig && eComp >= sOrig ||\n",
" sComp <= eOrig && eComp >= eOrig;\n",
" };\n",
" \n",
" List getOverlap(Long sOrig, Long eOrig, Long sComp, Long eComp){\n",
" if(!isOverlap(sOrig, eOrig, sComp, eComp)){return new List();}\n",
" \n",
" List overlap = new List(sOrig, eOrig, sComp, eComp);\n",
" \n",
" if (sOrig == sComp && eOrig == eComp){return overlap;}\n",
" \n",
" overlap = overlap.sort();\n",
" overlap.remove(3);\n",
" overlap.remove(0);\n",
" return overlap;\n",
" };\n",
" \n",
" Long rangeToTime(Double percent, Long s, Long e){\n",
" return (percent * (e-s)) + s;\n",
" };\n",
" \n",
" Double timeToRange(Long cur, Long s, Long e){\n",
" return (Double)(cur - s)/(e-s);\n",
" };\n",
"}"
],
"browserTitle":"Ami Log Viewer",
"callbacks":{
"entries":[
{
"amiscript":"onLoadingPref(session, userPrefs);",
"linkedVariables":[
],
"name":"onUserPrefsLoading"
},
{
"amiscript":"onSavingPref(session, userPrefs);",
"linkedVariables":[
],
"name":"onUserPrefsSaving"
},
{
"amiscript":"onStartupPref(session);",
"linkedVariables":[
],
"name":"onStartup",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"TABLE",
"tp":"String"
},
{
"nm":"TYPE",
"tp":"String"
},
{
"nm":"NAME",
"tp":"String"
},
{
"nm":"EST_MEMORY",
"tp":"Long"
},
{
"nm":"COUNT",
"tp":"Integer"
},
{
"nm":"CARDINALITY",
"tp":"Integer"
},
{
"nm":"COMMENT",
"tp":"String"
},
{
"nm":"AVG_LENGTH",
"tp":"Double"
}
],
"nm":"current_diagnose",
"oc":"ask"
},
{
"cols":[
{
"nm":"TABLE",
"tp":"String"
},
{
"nm":"TYPE",
"tp":"String"
},
{
"nm":"NAME",
"tp":"String"
},
{
"nm":"EST_MEMORY",
"tp":"Long"
},
{
"nm":"COUNT",
"tp":"Integer"
},
{
"nm":"CARDINALITY",
"tp":"Integer"
},
{
"nm":"COMMENT",
"tp":"String"
},
{
"nm":"AVG_LENGTH",
"tp":"Double"
}
],
"nm":"full_diagnose",
"oc":"ask"
}
]
}
}
]
},
"customPrefsImportMode":"accept",
"dm":{
"dms":[
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" Create Table viewNames(name String);\n",
" \n",
" for(Tab t : Tabs1.getChildren()){\n",
" INSERT INTO viewNames VALUES (\"${t.getTitle()}\");\n",
" }\n",
" \n",
"}\n"
],
"hasDatamodel":true,
"limit":-1,
"linkedVariables":[
{
"ari":"PANEL:Tabs1",
"varName":"Tabs1"
}
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"name",
"tp":"String"
}
],
"nm":"viewNames",
"oc":"ask"
}
]
}
}
]
},
"lbl":"chartNames",
"queryMode":"startup",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" \n",
" DROP TABLE Process;\n",
" DROP TABLE Topic;\n",
" DROP TABLE AmiWebBalancerClient;\n",
" DROP TABLE AmiWebBalancerServer;\n",
" DROP TABLE AmiWebBalancerStats;\n",
" DROP TABLE AmiWebHttpServer;\n",
" DROP TABLE AmiCenterTables;\n",
" DROP TABLE tPartition;\n",
" DROP TABLE AmiCenterObjects;\n",
" DROP TABLE AmiCenterTriggers;\n",
" DROP TABLE AmiCenterStoredProcs;\n",
" DROP TABLE AmiCenterTimers;\n",
" DROP TABLE eventStats;\n",
" DROP TABLE threadStats;\n",
" DROP TABLE summary;\n",
"\n",
" CREATE TABLE AmiCenterEvents AS SELECT * FROM AmiCenterEvents WHERE ${WHERE};\n",
"}\n"
],
"hasDatamodel":true,
"inputDm":[
"main"
],
"limit":-1,
"linkedVariables":[
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"logouts",
"tp":"Long"
},
{
"nm":"relayEvents",
"tp":"Long"
},
{
"nm":"objExpires",
"tp":"Long"
},
{
"nm":"snapshots",
"tp":"Long"
},
{
"nm":"dsQueries",
"tp":"Long"
},
{
"nm":"logins",
"tp":"Long"
},
{
"nm":"events",
"tp":"Long"
},
{
"nm":"strPoolSize",
"tp":"Integer"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"devents",
"tp":"Double"
},
{
"nm":"drelayEvents",
"tp":"Double"
},
{
"nm":"dobjExpires",
"tp":"Double"
}
],
"nm":"AmiCenterEvents",
"oc":"apply"
}
]
}
}
]
},
"lbl":"events",
"queryMode":"startup,visible",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" \n",
" DROP TABLE Process;\n",
" DROP TABLE Topic;\n",
" DROP TABLE AmiWebBalancerClient;\n",
" DROP TABLE AmiWebBalancerServer;\n",
" DROP TABLE AmiWebBalancerStats;\n",
" DROP TABLE AmiWebHttpServer;\n",
" DROP TABLE AmiCenterTables;\n",
" DROP TABLE tPartition;\n",
" DROP TABLE AmiCenterObjects;\n",
" DROP TABLE AmiCenterTriggers;\n",
" DROP TABLE AmiCenterStoredProcs;\n",
" DROP TABLE AmiCenterTimers;\n",
" DROP TABLE eventStats;\n",
" DROP TABLE threadStats;\n",
" DROP TABLE summary;\n",
"\n",
" CREATE TABLE AmiCenterEvents AS SELECT * FROM AmiCenterEvents WHERE ${WHERE};\n",
"}\n"
],
"hasDatamodel":true,
"inputDm":[
"mainCompare"
],
"limit":-1,
"linkedVariables":[
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"logouts",
"tp":"Long"
},
{
"nm":"relayEvents",
"tp":"Long"
},
{
"nm":"objExpires",
"tp":"Long"
},
{
"nm":"snapshots",
"tp":"Long"
},
{
"nm":"dsQueries",
"tp":"Long"
},
{
"nm":"logins",
"tp":"Long"
},
{
"nm":"events",
"tp":"Long"
},
{
"nm":"strPoolSize",
"tp":"Integer"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"devents",
"tp":"Double"
},
{
"nm":"drelayEvents",
"tp":"Double"
},
{
"nm":"dobjExpires",
"tp":"Double"
}
],
"nm":"AmiCenterEvents",
"oc":"apply"
}
]
}
}
]
},
"lbl":"eventsComp",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" CREATE TABLE _ AS USE ds=\"AmiLogFile\" _file=\"/./\" _delim=\"\\n\" _fields=\"String line\" EXECUTE SELECT * FROM file WHERE ${WHERE};\n",
" create table _ as select *, name as key from _ where name =~\"\\\\.amilog\\\\.?\";\n",
" insert into _ values(null,null,\"--Select a file\", \"\");\n",
" create table _ as select * from _ order by key;\n",
"}\n"
],
"hasDatamodel":true,
"limit":10000,
"linkedVariables":[
{
"ari":"FIELDVALUE:SystemControls?dsSelect?",
"varName":"dsSelVal"
},
{
"ari":"FIELDVALUE:SystemControls?refreshall?",
"varName":"refreshall"
}
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"lastmodified",
"tp":"Long"
},
{
"nm":"size",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"key",
"tp":"String"
}
],
"nm":"_",
"oc":"ask"
}
]
},
"timeout":100000
}
]
},
"datasources":[
"AmiLogFile"
],
"lbl":"filenames",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" List tables = new List(\"Process\",\"tPartition\", \"Topic\",\"AmiCenterObjects\", \"AmiCenterTables\", \"AmiCenterEvents\", \"AmiWebHttpServer\",\"AmiWebBalancerServer\",\"AmiWebBalancerClient\",\"AmiWebBalancerStats\", \"AmiCenterTimers\",\"AmiCenterStoredProcs\",\"AmiCenterTriggers\");\n",
"\n",
" for(String t : tables){\n",
" Create table ${t} as Select * from ${t} WHERE ${WHERE};\n",
" }\n",
"\n",
"}\n"
],
"hasDatamodel":true,
"inputDm":[
"mainSource"
],
"isDynamicDatamodel":true,
"limit":-1,
"linkedVariables":[
{
"ari":"PANEL:SystemControls1",
"varName":"SystemControls1"
},
{
"ari":"FIELD:DisplayHtml?durDisp",
"varName":"durDisp"
},
{
"ari":"FIELD:DisplayHtml?endDisp",
"varName":"endDisp"
},
{
"ari":"FIELD:DisplayHtml?entriesDisp",
"varName":"entriesDisp"
},
{
"ari":"FIELDVALUE:SystemControls1?uploadFF?_text",
"varName":"fileText"
},
{
"ari":"DATAMODEL:main",
"varName":"main"
},
{
"ari":"FIELDVALUE:SystemControls1?uploadFF?_name",
"varName":"name"
},
{
"ari":"FIELD:DisplayHtml?nameDisp",
"varName":"nameDisp"
},
{
"ari":"FIELD:DisplayHtml?startDisp",
"varName":"startDisp"
}
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"logouts",
"tp":"Long"
},
{
"nm":"relayEvents",
"tp":"Long"
},
{
"nm":"objExpires",
"tp":"Long"
},
{
"nm":"snapshots",
"tp":"Long"
},
{
"nm":"dsQueries",
"tp":"Long"
},
{
"nm":"logins",
"tp":"Long"
},
{
"nm":"events",
"tp":"Long"
},
{
"nm":"strPoolSize",
"tp":"Integer"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"devents",
"tp":"Double"
},
{
"nm":"drelayEvents",
"tp":"Double"
},
{
"nm":"dobjExpires",
"tp":"Double"
}
],
"nm":"AmiCenterEvents",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"type",
"tp":"String"
},
{
"nm":"count",
"tp":"Long"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
}
],
"nm":"AmiCenterObjects",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterStoredProcs",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"type",
"tp":"String"
},
{
"nm":"count",
"tp":"Long"
}
],
"nm":"AmiCenterTables",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterTimers",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterTriggers",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"address",
"tp":"String"
},
{
"nm":"startTime",
"tp":"Long"
},
{
"nm":"IdleSince",
"tp":"Long"
},
{
"nm":"target",
"tp":"String"
},
{
"nm":"connections",
"tp":"Long"
},
{
"nm":"bytesToServer",
"tp":"Long"
},
{
"nm":"bytesToClient",
"tp":"Long"
}
],
"nm":"AmiWebBalancerClient",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"address",
"tp":"String"
},
{
"nm":"activeSessions",
"tp":"Integer"
},
{
"nm":"status",
"tp":"String"
}
],
"nm":"AmiWebBalancerServer",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"clientsActive",
"tp":"Integer"
},
{
"nm":"clientsIdle",
"tp":"Integer"
},
{
"nm":"serversUp",
"tp":"Integer"
},
{
"nm":"serversDown",
"tp":"Integer"
},
{
"nm":"activeConnections",
"tp":"Long"
},
{
"nm":"totBytesToServers",
"tp":"Long"
},
{
"nm":"totBytesToClients",
"tp":"Long"
},
{
"nm":"stickyCount",
"tp":"Integer"
}
],
"nm":"AmiWebBalancerStats",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"activeSessions",
"tp":"Integer"
},
{
"nm":"httpServices",
"tp":"Long"
},
{
"nm":"activeConnections",
"tp":"Long"
},
{
"nm":"userRows",
"tp":"Long"
},
{
"nm":"userHiddenRows",
"tp":"Long"
},
{
"nm":"cachedRows",
"tp":"Long"
},
{
"nm":"centersConnected",
"tp":"Integer"
},
{
"nm":"openedConnections",
"tp":"Long"
}
],
"nm":"AmiWebHttpServer",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"freeMem",
"tp":"Long"
},
{
"nm":"maxMem",
"tp":"Long"
},
{
"nm":"totMem",
"tp":"Long"
},
{
"nm":"popsGcMem",
"tp":"Long"
},
{
"nm":"gcCount",
"tp":"Long"
},
{
"nm":"threadBlocked",
"tp":"Integer"
},
{
"nm":"threadsNew",
"tp":"Integer"
},
{
"nm":"threadsRunnable",
"tp":"Integer"
},
{
"nm":"threadsTimedWaiting",
"tp":"Integer"
},
{
"nm":"threadsWaiting",
"tp":"Integer"
}
],
"nm":"Process",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"dir",
"tp":"String"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"msgCount",
"tp":"Long"
},
{
"nm":"connections",
"tp":"String"
}
],
"nm":"Topic",
"oc":"apply"
},
{
"cols":[
{
"nm":"Type",
"tp":"String"
},
{
"nm":"Avg",
"tp":"Double"
},
{
"nm":"Max",
"tp":"Double"
},
{
"nm":"Min",
"tp":"Double"
},
{
"nm":"Avg/s",
"tp":"Double"
},
{
"nm":"Max/s",
"tp":"Double"
},
{
"nm":"Min/s",
"tp":"Double"
}
],
"nm":"eventStats",
"oc":"ask"
},
{
"cols":[
{
"nm":"start",
"tp":"Long"
},
{
"nm":"end",
"tp":"Long"
},
{
"nm":"entries",
"tp":"Long"
}
],
"nm":"summary",
"oc":"ask"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"added",
"tp":"Long"
},
{
"nm":"processed",
"tp":"Long"
},
{
"nm":"queued",
"tp":"Long"
},
{
"nm":"totExecTime",
"tp":"Long"
},
{
"nm":"execs",
"tp":"Long"
},
{
"nm":"inThreadPool",
"tp":"Boolean"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"startTime",
"tp":"Long"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"dProcessed",
"tp":"Double"
},
{
"nm":"dAdded",
"tp":"Double"
},
{
"nm":"dQueued",
"tp":"Double"
}
],
"nm":"tPartition",
"oc":"apply"
},
{
"cols":[
{
"nm":"Type",
"tp":"String"
},
{
"nm":"Avg",
"tp":"Double"
},
{
"nm":"Max",
"tp":"Integer"
},
{
"nm":"Min",
"tp":"Integer"
}
],
"nm":"threadStats",
"oc":"ask"
}
]
},
"testInputType":"cust",
"testInputs":{
"WHERE":"\"true\"",
"rtevents":"",
"wheres":""
},
"timeout":100000
}
]
},
"lbl":"main",
"queryMode":"startup,visible",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" List tables = new List(\"Process\",\"tPartition\", \"Topic\",\"AmiCenterObjects\", \"AmiCenterTables\", \"AmiCenterEvents\", \"AmiWebHttpServer\",\"AmiWebBalancerServer\",\"AmiWebBalancerClient\",\"AmiWebBalancerStats\", \"AmiCenterTimers\",\"AmiCenterStoredProcs\",\"AmiCenterTriggers\");\n",
"\n",
" for(String t : tables){\n",
" Create table ${t} as Select * from ${t} WHERE ${WHERE};\n",
" }\n",
"}\n"
],
"hasDatamodel":true,
"inputDm":[
"mainCompareSource"
],
"limit":-1,
"linkedVariables":[
{
"ari":"PANEL:SystemControls1",
"varName":"SystemControls1"
},
{
"ari":"FIELD:DisplayHtml?durDisp2",
"varName":"durDisp2"
},
{
"ari":"FIELD:DisplayHtml?endDisp2",
"varName":"endDisp2"
},
{
"ari":"FIELD:DisplayHtml?entriesDisp2",
"varName":"entriesDisp2"
},
{
"ari":"FIELDVALUE:SystemControls1?uploadFF?_text",
"varName":"fileText"
},
{
"ari":"FIELDVALUE:SystemControls1?uploadFF?_name",
"varName":"name"
},
{
"ari":"FIELD:DisplayHtml?nameDisp2",
"varName":"nameDisp2"
},
{
"ari":"FIELD:DisplayHtml?startDisp2",
"varName":"startDisp2"
},
{
"ari":"FIELD:SystemControls1?uploadFF",
"varName":"uploadFF"
}
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"logouts",
"tp":"Long"
},
{
"nm":"relayEvents",
"tp":"Long"
},
{
"nm":"objExpires",
"tp":"Long"
},
{
"nm":"snapshots",
"tp":"Long"
},
{
"nm":"dsQueries",
"tp":"Long"
},
{
"nm":"logins",
"tp":"Long"
},
{
"nm":"events",
"tp":"Long"
},
{
"nm":"strPoolSize",
"tp":"Integer"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"devents",
"tp":"Double"
},
{
"nm":"drelayEvents",
"tp":"Double"
},
{
"nm":"dobjExpires",
"tp":"Double"
}
],
"nm":"AmiCenterEvents",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"type",
"tp":"String"
},
{
"nm":"count",
"tp":"Long"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
}
],
"nm":"AmiCenterObjects",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterStoredProcs",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"type",
"tp":"String"
},
{
"nm":"count",
"tp":"Long"
}
],
"nm":"AmiCenterTables",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterTimers",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterTriggers",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"address",
"tp":"String"
},
{
"nm":"startTime",
"tp":"Long"
},
{
"nm":"IdleSince",
"tp":"Long"
},
{
"nm":"target",
"tp":"String"
},
{
"nm":"connections",
"tp":"Long"
},
{
"nm":"bytesToServer",
"tp":"Long"
},
{
"nm":"bytesToClient",
"tp":"Long"
}
],
"nm":"AmiWebBalancerClient",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"address",
"tp":"String"
},
{
"nm":"activeSessions",
"tp":"Integer"
},
{
"nm":"status",
"tp":"String"
}
],
"nm":"AmiWebBalancerServer",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"clientsActive",
"tp":"Integer"
},
{
"nm":"clientsIdle",
"tp":"Integer"
},
{
"nm":"serversUp",
"tp":"Integer"
},
{
"nm":"serversDown",
"tp":"Integer"
},
{
"nm":"activeConnections",
"tp":"Long"
},
{
"nm":"totBytesToServers",
"tp":"Long"
},
{
"nm":"totBytesToClients",
"tp":"Long"
},
{
"nm":"stickyCount",
"tp":"Integer"
}
],
"nm":"AmiWebBalancerStats",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"activeSessions",
"tp":"Integer"
},
{
"nm":"httpServices",
"tp":"Long"
},
{
"nm":"activeConnections",
"tp":"Long"
},
{
"nm":"userRows",
"tp":"Long"
},
{
"nm":"userHiddenRows",
"tp":"Long"
},
{
"nm":"cachedRows",
"tp":"Long"
},
{
"nm":"centersConnected",
"tp":"Integer"
},
{
"nm":"openedConnections",
"tp":"Long"
}
],
"nm":"AmiWebHttpServer",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"freeMem",
"tp":"Long"
},
{
"nm":"maxMem",
"tp":"Long"
},
{
"nm":"totMem",
"tp":"Long"
},
{
"nm":"popsGcMem",
"tp":"Long"
},
{
"nm":"gcCount",
"tp":"Long"
},
{
"nm":"threadBlocked",
"tp":"Integer"
},
{
"nm":"threadsNew",
"tp":"Integer"
},
{
"nm":"threadsRunnable",
"tp":"Integer"
},
{
"nm":"threadsTimedWaiting",
"tp":"Integer"
},
{
"nm":"threadsWaiting",
"tp":"Integer"
}
],
"nm":"Process",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"dir",
"tp":"String"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"msgCount",
"tp":"Long"
},
{
"nm":"connections",
"tp":"String"
}
],
"nm":"Topic",
"oc":"apply"
},
{
"cols":[
{
"nm":"Type",
"tp":"String"
},
{
"nm":"Avg",
"tp":"Double"
},
{
"nm":"Max",
"tp":"Double"
},
{
"nm":"Min",
"tp":"Double"
},
{
"nm":"Avg/s",
"tp":"Double"
},
{
"nm":"Max/s",
"tp":"Double"
},
{
"nm":"Min/s",
"tp":"Double"
}
],
"nm":"eventStats",
"oc":"ask"
},
{
"cols":[
{
"nm":"start",
"tp":"Long"
},
{
"nm":"end",
"tp":"Long"
},
{
"nm":"entries",
"tp":"Long"
}
],
"nm":"summary",
"oc":"ask"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"added",
"tp":"Long"
},
{
"nm":"processed",
"tp":"Long"
},
{
"nm":"queued",
"tp":"Long"
},
{
"nm":"totExecTime",
"tp":"Long"
},
{
"nm":"execs",
"tp":"Long"
},
{
"nm":"inThreadPool",
"tp":"Boolean"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"startTime",
"tp":"Long"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"dProcessed",
"tp":"Double"
},
{
"nm":"dAdded",
"tp":"Double"
},
{
"nm":"dQueued",
"tp":"Double"
}
],
"nm":"tPartition",
"oc":"apply"
},
{
"cols":[
{
"nm":"Type",
"tp":"String"
},
{
"nm":"Avg",
"tp":"Double"
},
{
"nm":"Max",
"tp":"Integer"
},
{
"nm":"Min",
"tp":"Integer"
}
],
"nm":"threadStats",
"oc":"ask"
}
]
},
"testInputType":"cust",
"testInputs":{
"WHERE":"true",
"rtevents":"",
"wheres":"new Map(\"fromUpload\", true)"
},
"timeout":-1
}
]
},
"lbl":"mainCompare",
"queryMode":"startup",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" Boolean fromUpload = wheres.get(\"fromUpload\");\n",
" \n",
" List types = new List(\"Process\",\"Partition\", \"Topic\",\"AmiCenterObjects\", \"AmiCenterTables\", \"AmiCenterEvents\", \"AmiWebHttpServer\",\"AmiWebBalancerServer\",\"AmiWebBalancerClient\",\"AmiWebBalancerStats\", \"AmiCenterTimers\",\"AmiCenterStoredProcs\",\"AmiCenterTriggers\");\n",
"\n",
" List columns = new List(\"Long now, Long freeMem, Long maxMem, Long totMem, Long popsGcMem, Long gcCount, int threadBlocked, int threadsNew, int threadsRunnable, int threadsTimedWaiting, int threadsWaiting\",\n",
" \"Long now, Long added, Long processed, Long queued, Long totExecTime, Long execs, Boolean inThreadPool, String name, Long startTime\", \n",
" \"Long now, String dir, String name, Long msgCount, String connections\",\n",
" \"Long now, String type, long count\",\n",
" \"Long now, String type, long count\",\n",
" \"Long now, Long logouts, Long relayEvents, Long objExpires, Long snapshots, Long dsQueries, Long logins, Long events, Integer strPoolSize\",\n",
" \"Long now, int activeSessions, Long httpServices, Long activeConnections, Long userRows, Long userHiddenRows, Long cachedRows, int centersConnected, long openedConnections\",\n",
" \"Long now, String address, int activeSessions, String status\",\n",
" \"Long now, String address, Long startTime, Long IdleSince, String target, Long connections, Long bytesToServer, Long bytesToClient\",\n",
" \"Long now, int clientsActive, int clientsIdle, int serversUp, int serversDown, Long activeConnections, Long totBytesToServers, Long totBytesToClients, int stickyCount\",\n",
" \"Long now, String name, Long count, Long millis, Long errors\",\n",
" \"Long now, String name, Long count, Long millis, Long errors\",\n",
" \"Long now, String name, Long count, Long millis, Long errors\");\n",
" \n",
" Map typeMap = new Map();\n",
" \n",
" for(int i = 0; i < types.size(); i++){\n",
" typeMap.put(types.get(i), columns.get(i));\n",
" }\n",
" \n",
" Table total;\n",
" String filename;\n",
" if (fromUpload){\n",
" filename = name;\n",
" List l = fileText.splitLines();\n",
" l.remove(0);\n",
" total = new Table(\"total\", new Map(\"data\", l));\n",
" \n",
" } else {\n",
" filename = selectFileName;\n",
" total = use ds=\"AmiLogFile\"_file=\"${filename}\" _skipLines=\"1\" EXECUTE SELECT line FROM file;\n",
" }\n",
" \n",
" total.alterColumn(\"line\", \"data\", \"String\");\n",
" List maps, fields;\n",
" MapParser mp;\n",
" for(String t : types){\n",
" Create table `${t}` as select data from total Where data ~~ \"^O.T=\\\"${t}\";\n",
" maps = select data from `${t}`;\n",
" fields = (String)(typeMap.get(t)).trim().split(\", \");\n",
" maps = stringsToMaps(maps, \"|\", \"=\");\n",
" mp = new MapParser(maps);\n",
" Create table `${t}` = mp.parseToTable(fields);\n",
" }\n",
" \n",
" String first = Select first(data) from total;\n",
" String last = Select last(data) from total;\n",
" Long start = strSplitToMap(first,\"|\",\"=\").get(\"now\");\n",
" Long fin = strSplitToMap(last,\"|\",\"=\").get(\"now\");\n",
" Long numEntries = select count(*) from total;\n",
" Create table summary(start long, `end` long, entries long);\n",
" insert into summary values (start, fin, numEntries);\n",
" \n",
" create table tPartition as select * from `Partition`;\n",
" create table tPartitionPrep as PREPARE now, name, now - offset(now, -1) as dTime, processed - offset(processed, -1) as dProcessed, added - offset(added, -1) as dAdded, added-processed - offset(added-processed, -1) as dQueued from `Partition` partition by name;\n",
" create table tPartitionPrep as select now, name, dTime, 1000*dProcessed/(double)dTime as dProcessed, 1000*dAdded/(double)dTime as dAdded, 1000*dQueued/(double)dTime as dQueued from tPartitionPrep;\n",
" Create TABLE tPartition as SELECT * FROM `Partition` AS tp, tPartitionPrep as tpp where tp.now == tpp.now && tp.name == tpp.name;\n",
" ALTER TABLE tPartition DROP tpp_now, DROP tpp_name;\n",
" DROP TABLE `Partition`;\n",
" DROP TABLE tPartitionPrep;\n",
"\n",
" \n",
" create table eventPrep as PREPARE now, now - offset(now, -1) as dTime, events - offset(events, -1) as dEvents, relayEvents - offset(relayEvents, -1) as dRelayEvents, objExpires - offset(objExpires, -1) as dObjExpires from AmiCenterEvents;\n",
" create table eventPrep as select now, dTime, 1000*dEvents/(double)dTime as devents, 1000*dRelayEvents/(double)dTime as drelayEvents, 1000*dObjExpires/(double)dTime as dobjExpires from eventPrep; \n",
" CREATE TABLE AmiCenterEvents AS SELECT * FROM AmiCenterEvents AS ace, eventPrep as ep WHERE ace.now == ep.now;\n",
" ALTER TABLE AmiCenterEvents DROP ep_now;\n",
" DROP TABLE eventPrep;\n",
" \n",
" insert into AmiCenterObjects byname from select * from AmiCenterTables; \n",
" delete from AmiCenterObjects where `type`=~\"^__*\";\n",
" create table AmiCenterObjectsPrep as PREPARE now, now - offset(now,-1) as dTime, count - offset(count,-1) as dCount, `type` from AmiCenterObjects partition by type;\n",
" create table AmiCenterObjectsPrep as select now, dTime, dCount, `type` from AmiCenterObjectsPrep;\n",
" Create TABLE AmiCenterObjects as SELECT * FROM AmiCenterObjects AS aco, AmiCenterObjectsPrep as acop where aco.now == acop.now && aco.`type` == acop.`type`;\n",
" ALTER TABLE AmiCenterObjects DROP acop_now, DROP acop_type;\n",
" DROP TABLE AmiCenterObjectsPrep;\n",
" \n",
" for(String t : new List(\"Timers\", \"Triggers\", \"StoredProcs\")){\n",
" create table AmiCenter${t} as prepare now, name, errors, millis, millis - offset(millis, -1) as runtime, count - offset(count, -1) as dCount from AmiCenter${t} order by now partition by name;\n",
" delete from AmiCenter${t} WHERE runtime == null || dCount < 0;\n",
" Alter table AmiCenter${t} ADD timeForAction = (Double)runtime/dCount;\n",
" }\n",
" \n",
" Table t = new Table(\"t\",\"Type String, Avg Double, Max int, Min int\");\n",
" Double avg;\n",
" List threads = new List(\"threadsWaiting\",\"threadsRunnable\", \"threadsTimedWaiting\",\"threadBlocked\",\"threadsNew\");\n",
" List names = new List(\"Waiting Threads\",\"Runnable Threads\",\"Timed Waiting Threads\",\"New Threads\",\"Blocked Threads\");\n",
" for(int i = 0; i < names.size(); i++) {\n",
" String threadType = threads.get(i);\n",
" int max = SELECT max(${threadType}) from Process;\n",
" int min = SELECT min(${threadType}) from Process;\n",
" avg = SELECT avg(${threadType}) from Process;\n",
" INSERT INTO t VALUES (\"${names.get(i)}\", ${avg}, ${max}, ${min});\n",
" }\n",
" CREATE TABLE threadStats AS SELECT * FROM t;\n",
" \n",
" t = new Table(\"t\",\"Type String, Avg Double, Max Double, Min Double, Avg/s Double, Max/s Double, Min/s Double\");\n",
"\n",
" int numEvents = select count(*) from AmiCenterEvents;\n",
" if(numEvents > 0){\n",
" List eventNames = new List(\"Events\", \"Relay Events\", \"Object Expires\");\n",
" List dsNames = new List(\"events\", \"relayEvents\", \"objExpires\");\n",
" Double max, min, maxD, minD, avgD;\n",
" for(int i = 0; i < dsNames.size(); i++) {\n",
" String eventType = dsNames.get(i);\n",
" max = SELECT max(${eventType}) from AmiCenterEvents;\n",
" min = SELECT min(${eventType}) from AmiCenterEvents;\n",
" avg = SELECT avg(${eventType}) from AmiCenterEvents;\n",
" maxD = SELECT max(${\"d\"+eventType}) from AmiCenterEvents;\n",
" minD = SELECT min(${\"d\"+eventType}) from AmiCenterEvents;\n",
" avgD = SELECT avg(${\"d\"+eventType}) from AmiCenterEvents;\n",
" INSERT INTO t VALUES (\"${eventNames.get(i)}\", ${avg}, ${max}, ${min}, ${avgD}, ${maxD}, ${minD});\n",
" }\n",
" }\n",
" CREATE TABLE eventStats AS SELECT * FROM t;\n",
" \n",
" nameDisp2.setValue(filename);\n",
" startDisp2.setValue(formatDateTimeWithMillis(start));\n",
" endDisp2.setValue(formatDateTimeWithMillis(fin));\n",
" entriesDisp2.setValue(numEntries);\n",
" durDisp2.setValue(formatDuration(fin-start));\n",
" startComp.setValue(formatDateTimeWithMillis(start));\n",
" endComp.setValue(formatDateTimeWithMillis(fin));\n",
" rangeComp.setValue(0.0, 1.0);\n",
" \n",
" if(nameDisp.getValue() != \"\"){\n",
" String overlapText = \"\";\n",
" Long sOrigVal = parseDate(sOrig, \"MM/dd/yyyy HH:mm:ss.SSS\");\n",
" Long eOrigVal = parseDate(eOrig, \"MM/dd/yyyy HH:mm:ss.SSS\");\n",
" List overlap = getOverlap(start, fin, sOrigVal, eOrigVal);\n",
" if (overlap.size() == 4){\n",
" overlapText = \"Files have the same time range\";\n",
" syncOrig.setVisible(true);\n",
" syncComp.setVisible(true);\n",
" } else if (overlap.size()==2){\n",
" overlapText = \"Overlap: \";\n",
" overlapText += formatDateTimeWithSeconds((Long)(overlap.get(0)));\n",
" overlapText += \" to \";\n",
" overlapText += formatDateTimeWithSeconds((Long)(overlap.get(1)));\n",
" syncOrig.setVisible(true);\n",
" syncComp.setVisible(true);\n",
" } else {\n",
" overlapText = \"Files have no time overlap\";\n",
" syncOrig.setVisible(false);\n",
" syncComp.setVisible(false);\n",
" }\n",
" \n",
" if(overlap.size() >= 2 && nameDisp.isVisible()){\n",
" syncOrig.setVisible(true);\n",
" syncComp.setVisible(true);\n",
" }\n",
" overlapDisplay.setValue(overlapText); \n",
" }\n",
" \n",
"}\n"
],
"hasDatamodel":true,
"limit":-1,
"linkedVariables":[
{
"ari":"FIELD:DisplayHtml?durDisp2",
"varName":"durDisp2"
},
{
"ari":"FIELDVALUE:DisplayHtml?endDisp?",
"varName":"eOrig"
},
{
"ari":"FIELD:SystemControls1?endComp",
"varName":"endComp"
},
{
"ari":"FIELD:DisplayHtml?endDisp2",
"varName":"endDisp2"
},
{
"ari":"FIELD:DisplayHtml?entriesDisp2",
"varName":"entriesDisp2"
},
{
"ari":"FIELDVALUE:SystemControls1?uploadFF?_text",
"varName":"fileText"
},
{
"ari":"DATAMODEL:mainCompare",
"varName":"mainCompare"
},
{
"ari":"FIELDVALUE:SystemControls1?uploadFF?_name",
"varName":"name"
},
{
"ari":"FIELD:DisplayHtml?nameDisp",
"varName":"nameDisp"
},
{
"ari":"FIELD:DisplayHtml?nameDisp2",
"varName":"nameDisp2"
},
{
"ari":"FIELD:DisplayHtml?overlapDisplay",
"varName":"overlapDisplay"
},
{
"ari":"FIELD:SystemControls1?rangeComp",
"varName":"rangeComp"
},
{
"ari":"FIELDVALUE:DisplayHtml?startDisp?",
"varName":"sOrig"
},
{
"ari":"FIELDVALUE:SystemControls1?selectFile?",
"varName":"selectFileName"
},
{
"ari":"FIELD:SystemControls1?startComp",
"varName":"startComp"
},
{
"ari":"FIELD:DisplayHtml?startDisp2",
"varName":"startDisp2"
},
{
"ari":"FIELD:SystemControls1?syncComp",
"varName":"syncComp"
},
{
"ari":"FIELD:SystemControls1?syncButton",
"varName":"syncOrig"
}
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"logouts",
"tp":"Long"
},
{
"nm":"relayEvents",
"tp":"Long"
},
{
"nm":"objExpires",
"tp":"Long"
},
{
"nm":"snapshots",
"tp":"Long"
},
{
"nm":"dsQueries",
"tp":"Long"
},
{
"nm":"logins",
"tp":"Long"
},
{
"nm":"events",
"tp":"Long"
},
{
"nm":"strPoolSize",
"tp":"Integer"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"devents",
"tp":"Double"
},
{
"nm":"drelayEvents",
"tp":"Double"
},
{
"nm":"dobjExpires",
"tp":"Double"
}
],
"nm":"AmiCenterEvents",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"type",
"tp":"String"
},
{
"nm":"count",
"tp":"Long"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
}
],
"nm":"AmiCenterObjects",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterStoredProcs",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"type",
"tp":"String"
},
{
"nm":"count",
"tp":"Long"
}
],
"nm":"AmiCenterTables",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterTimers",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterTriggers",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"address",
"tp":"String"
},
{
"nm":"startTime",
"tp":"Long"
},
{
"nm":"IdleSince",
"tp":"Long"
},
{
"nm":"target",
"tp":"String"
},
{
"nm":"connections",
"tp":"Long"
},
{
"nm":"bytesToServer",
"tp":"Long"
},
{
"nm":"bytesToClient",
"tp":"Long"
}
],
"nm":"AmiWebBalancerClient",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"address",
"tp":"String"
},
{
"nm":"activeSessions",
"tp":"Integer"
},
{
"nm":"status",
"tp":"String"
}
],
"nm":"AmiWebBalancerServer",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"clientsActive",
"tp":"Integer"
},
{
"nm":"clientsIdle",
"tp":"Integer"
},
{
"nm":"serversUp",
"tp":"Integer"
},
{
"nm":"serversDown",
"tp":"Integer"
},
{
"nm":"activeConnections",
"tp":"Long"
},
{
"nm":"totBytesToServers",
"tp":"Long"
},
{
"nm":"totBytesToClients",
"tp":"Long"
},
{
"nm":"stickyCount",
"tp":"Integer"
}
],
"nm":"AmiWebBalancerStats",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"activeSessions",
"tp":"Integer"
},
{
"nm":"httpServices",
"tp":"Long"
},
{
"nm":"activeConnections",
"tp":"Long"
},
{
"nm":"userRows",
"tp":"Long"
},
{
"nm":"userHiddenRows",
"tp":"Long"
},
{
"nm":"cachedRows",
"tp":"Long"
},
{
"nm":"centersConnected",
"tp":"Integer"
},
{
"nm":"openedConnections",
"tp":"Long"
}
],
"nm":"AmiWebHttpServer",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"freeMem",
"tp":"Long"
},
{
"nm":"maxMem",
"tp":"Long"
},
{
"nm":"totMem",
"tp":"Long"
},
{
"nm":"popsGcMem",
"tp":"Long"
},
{
"nm":"gcCount",
"tp":"Long"
},
{
"nm":"threadBlocked",
"tp":"Integer"
},
{
"nm":"threadsNew",
"tp":"Integer"
},
{
"nm":"threadsRunnable",
"tp":"Integer"
},
{
"nm":"threadsTimedWaiting",
"tp":"Integer"
},
{
"nm":"threadsWaiting",
"tp":"Integer"
}
],
"nm":"Process",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"dir",
"tp":"String"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"msgCount",
"tp":"Long"
},
{
"nm":"connections",
"tp":"String"
}
],
"nm":"Topic",
"oc":"apply"
},
{
"cols":[
{
"nm":"Type",
"tp":"String"
},
{
"nm":"Avg",
"tp":"Double"
},
{
"nm":"Max",
"tp":"Double"
},
{
"nm":"Min",
"tp":"Double"
},
{
"nm":"Avg/s",
"tp":"Double"
},
{
"nm":"Max/s",
"tp":"Double"
},
{
"nm":"Min/s",
"tp":"Double"
}
],
"nm":"eventStats",
"oc":"ask"
},
{
"cols":[
{
"nm":"start",
"tp":"Long"
},
{
"nm":"end",
"tp":"Long"
},
{
"nm":"entries",
"tp":"Long"
}
],
"nm":"summary",
"oc":"ask"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"added",
"tp":"Long"
},
{
"nm":"processed",
"tp":"Long"
},
{
"nm":"queued",
"tp":"Long"
},
{
"nm":"totExecTime",
"tp":"Long"
},
{
"nm":"execs",
"tp":"Long"
},
{
"nm":"inThreadPool",
"tp":"Boolean"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"startTime",
"tp":"Long"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"dProcessed",
"tp":"Double"
},
{
"nm":"dAdded",
"tp":"Double"
},
{
"nm":"dQueued",
"tp":"Double"
}
],
"nm":"tPartition",
"oc":"apply"
},
{
"cols":[
{
"nm":"Type",
"tp":"String"
},
{
"nm":"Avg",
"tp":"Double"
},
{
"nm":"Max",
"tp":"Integer"
},
{
"nm":"Min",
"tp":"Integer"
}
],
"nm":"threadStats",
"oc":"ask"
}
]
},
"testInputType":"cust",
"testInputs":{
"WHERE":"true",
"rtevents":"",
"wheres":"new Map(\"fromUpload\", true)"
},
"timeout":-1
}
]
},
"lbl":"mainCompareSource",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" Boolean fromUpload = wheres.get(\"fromUpload\");\n",
" \n",
" List types = new List(\"Process\",\"Partition\", \"Topic\",\"AmiCenterObjects\", \"AmiCenterTables\", \"AmiCenterEvents\", \"AmiWebHttpServer\",\"AmiWebBalancerServer\",\"AmiWebBalancerClient\",\"AmiWebBalancerStats\", \"AmiCenterTimers\",\"AmiCenterStoredProcs\",\"AmiCenterTriggers\");\n",
"\n",
" List columns = new List(\"Long now, Long freeMem, Long maxMem, Long totMem, Long popsGcMem, Long gcCount, int threadBlocked, int threadsNew, int threadsRunnable, int threadsTimedWaiting, int threadsWaiting\",\n",
" \"Long now, Long added, Long processed, Long queued, Long totExecTime, Long execs, Boolean inThreadPool, String name, Long startTime\", \n",
" \"Long now, String dir, String name, Long msgCount, String connections\",\n",
" \"Long now, String type, long count\",\n",
" \"Long now, String type, long count\",\n",
" \"Long now, Long logouts, Long relayEvents, Long objExpires, Long snapshots, Long dsQueries, Long logins, Long events, Integer strPoolSize\",\n",
" \"Long now, int activeSessions, Long httpServices, Long activeConnections, Long userRows, Long userHiddenRows, Long cachedRows, int centersConnected, long openedConnections\",\n",
" \"Long now, String address, int activeSessions, String status\",\n",
" \"Long now, String address, Long startTime, Long IdleSince, String target, Long connections, Long bytesToServer, Long bytesToClient\",\n",
" \"Long now, int clientsActive, int clientsIdle, int serversUp, int serversDown, Long activeConnections, Long totBytesToServers, Long totBytesToClients, int stickyCount\",\n",
" \"Long now, String name, Long count, Long millis, Long errors\",\n",
" \"Long now, String name, Long count, Long millis, Long errors\",\n",
" \"Long now, String name, Long count, Long millis, Long errors\");\n",
" \n",
" Map typeMap = new Map();\n",
" \n",
" for(int i = 0; i < types.size(); i++){\n",
" typeMap.put(types.get(i), columns.get(i));\n",
" }\n",
" \n",
" Table total;\n",
" String filename;\n",
" if (fromUpload){\n",
" filename = name;\n",
" List l = fileText.splitLines();\n",
" l.remove(0);\n",
" total = new Table(\"total\", new Map(\"data\", l));\n",
" \n",
" } else {\n",
" filename = selectFileName;\n",
" total = use ds=\"AmiLogFile\"_file=\"${filename}\" _skipLines=\"1\" EXECUTE SELECT line FROM file;\n",
" }\n",
" \n",
" total.alterColumn(\"line\", \"data\", \"String\");\n",
" List maps, fields;\n",
" MapParser mp;\n",
" for(String t : types){\n",
" Create table `${t}` as select data from total Where data ~~ \"^O.T=\\\"${t}\";\n",
" maps = select data from `${t}`;\n",
" fields = (String)(typeMap.get(t)).trim().split(\", \");\n",
" maps = stringsToMaps(maps, \"|\", \"=\");\n",
" mp = new MapParser(maps);\n",
" Create table `${t}` = mp.parseToTable(fields);\n",
" }\n",
" \n",
" String first = Select first(data) from total;\n",
" String last = Select last(data) from total;\n",
" Long start = strSplitToMap(first,\"|\",\"=\").get(\"now\");\n",
" Long fin = strSplitToMap(last,\"|\",\"=\").get(\"now\");\n",
" Long numEntries = select count(*) from total;\n",
" Create table summary(start long, `end` long, entries long);\n",
" insert into summary values (start, fin, numEntries);\n",
" \n",
" create table tPartition as select * from `Partition`;\n",
" create table tPartitionPrep as PREPARE now, name, now - offset(now, -1) as dTime, processed - offset(processed, -1) as dProcessed, added - offset(added, -1) as dAdded, added-processed - offset(added-processed, -1) as dQueued from `Partition` partition by name;\n",
" create table tPartitionPrep as select now, name, dTime, 1000*dProcessed/(double)dTime as dProcessed, 1000*dAdded/(double)dTime as dAdded, 1000*dQueued/(double)dTime as dQueued from tPartitionPrep;\n",
" Create TABLE tPartition as SELECT * FROM `Partition` AS tp, tPartitionPrep as tpp where tp.now == tpp.now && tp.name == tpp.name;\n",
" ALTER TABLE tPartition DROP tpp_now, DROP tpp_name;\n",
" DROP TABLE `Partition`;\n",
" DROP TABLE tPartitionPrep;\n",
"\n",
" \n",
" create table eventPrep as PREPARE now, now - offset(now, -1) as dTime, events - offset(events, -1) as dEvents, relayEvents - offset(relayEvents, -1) as dRelayEvents, objExpires - offset(objExpires, -1) as dObjExpires from AmiCenterEvents;\n",
" create table eventPrep as select now, dTime, 1000*dEvents/(double)dTime as devents, 1000*dRelayEvents/(double)dTime as drelayEvents, 1000*dObjExpires/(double)dTime as dobjExpires from eventPrep; \n",
" CREATE TABLE AmiCenterEvents AS SELECT * FROM AmiCenterEvents AS ace, eventPrep as ep WHERE ace.now == ep.now;\n",
" ALTER TABLE AmiCenterEvents DROP ep_now;\n",
" DROP TABLE eventPrep;\n",
" \n",
" insert into AmiCenterObjects byname from select * from AmiCenterTables; \n",
" delete from AmiCenterObjects where `type`=~\"^__*\";\n",
" create table AmiCenterObjectsPrep as PREPARE now, now - offset(now,-1) as dTime, count - offset(count,-1) as dCount, `type` from AmiCenterObjects partition by type;\n",
" create table AmiCenterObjectsPrep as select now, dTime, dCount, `type` from AmiCenterObjectsPrep;\n",
" Create TABLE AmiCenterObjects as SELECT * FROM AmiCenterObjects AS aco, AmiCenterObjectsPrep as acop where aco.now == acop.now && aco.`type` == acop.`type`;\n",
" ALTER TABLE AmiCenterObjects DROP acop_now, DROP acop_type;\n",
" DROP TABLE AmiCenterObjectsPrep;\n",
" \n",
" for(String t : new List(\"Timers\", \"Triggers\", \"StoredProcs\")){\n",
" create table AmiCenter${t} as prepare now, name, errors, millis, millis - offset(millis, -1) as runtime, count - offset(count, -1) as dCount from AmiCenter${t} order by now partition by name;\n",
" delete from AmiCenter${t} WHERE runtime == null || dCount < 0;\n",
" Alter table AmiCenter${t} ADD timeForAction = (Double)runtime/dCount;\n",
" }\n",
" \n",
" Table t = new Table(\"t\",\"Type String, Avg Double, Max int, Min int\");\n",
" Double avg;\n",
" List threads = new List(\"threadsWaiting\",\"threadsRunnable\", \"threadsTimedWaiting\",\"threadBlocked\",\"threadsNew\");\n",
" List names = new List(\"Waiting Threads\",\"Runnable Threads\",\"Timed Waiting Threads\",\"New Threads\",\"Blocked Threads\");\n",
" for(int i = 0; i < names.size(); i++) {\n",
" String threadType = threads.get(i);\n",
" int max = SELECT max(${threadType}) from Process;\n",
" int min = SELECT min(${threadType}) from Process;\n",
" avg = SELECT avg(${threadType}) from Process;\n",
" INSERT INTO t VALUES (\"${names.get(i)}\", ${avg}, ${max}, ${min});\n",
" }\n",
" CREATE TABLE threadStats AS SELECT * FROM t;\n",
" \n",
" t = new Table(\"t\",\"Type String, Avg Double, Max Double, Min Double, Avg/s Double, Max/s Double, Min/s Double\");\n",
"\n",
" int numEvents = select count(*) from AmiCenterEvents;\n",
" if(numEvents > 0){\n",
" List eventNames = new List(\"Events\", \"Relay Events\", \"Object Expires\");\n",
" List dsNames = new List(\"events\", \"relayEvents\", \"objExpires\");\n",
" Double max, min, maxD, minD, avgD;\n",
" for(int i = 0; i < dsNames.size(); i++) {\n",
" String eventType = dsNames.get(i);\n",
" max = SELECT max(${eventType}) from AmiCenterEvents;\n",
" min = SELECT min(${eventType}) from AmiCenterEvents;\n",
" avg = SELECT avg(${eventType}) from AmiCenterEvents;\n",
" maxD = SELECT max(${\"d\"+eventType}) from AmiCenterEvents;\n",
" minD = SELECT min(${\"d\"+eventType}) from AmiCenterEvents;\n",
" avgD = SELECT avg(${\"d\"+eventType}) from AmiCenterEvents;\n",
" INSERT INTO t VALUES (\"${eventNames.get(i)}\", ${avg}, ${max}, ${min}, ${avgD}, ${maxD}, ${minD});\n",
" }\n",
" }\n",
" CREATE TABLE eventStats AS SELECT * FROM t;\n",
" \n",
" nameDisp.setValue(filename);\n",
" startDisp.setValue(formatDateTimeWithMillis(start));\n",
" endDisp.setValue(formatDateTimeWithMillis(fin));\n",
" entriesDisp.setValue(numEntries);\n",
" durDisp.setValue(formatDuration(fin-start));\n",
" startOrig.setValue(formatDateTimeWithMillis(start));\n",
" endOrig.setValue(formatDateTimeWithMillis(fin));\n",
" rangeOrig.setValue(0.0, 1.0);\n",
" \n",
" if(nameDisp2.getValue() != \"\"){\n",
" String overlapText = \"\";\n",
" Long sCompVal = parseDate(sComp, \"MM/dd/yyyy HH:mm:ss.SSS\");\n",
" Long eCompVal = parseDate(eComp, \"MM/dd/yyyy HH:mm:ss.SSS\");\n",
" List overlap = getOverlap(start, fin, sCompVal, eCompVal);\n",
" if (overlap.size() == 4){\n",
" overlapText = \"Files have the same time range\";\n",
" } else if (overlap.size()==2){\n",
" overlapText = \"Overlap: \";\n",
" overlapText += formatDateTimeWithSeconds((Long)(overlap.get(0)));\n",
" overlapText += \" to \";\n",
" overlapText += formatDateTimeWithSeconds((Long)(overlap.get(1)));\n",
" } else {\n",
" overlapText = \"Files have no time overlap\";\n",
" syncOrig.setVisible(false);\n",
" syncComp.setVisible(false);\n",
" }\n",
" \n",
" if(overlap.size() >= 2 && nameDisp2.isVisible()){\n",
" syncOrig.setVisible(true);\n",
" syncComp.setVisible(true);\n",
" }\n",
" \n",
" overlapDisplay.setValue(overlapText);\n",
" \n",
" }\n",
" \n",
"}\n"
],
"hasDatamodel":true,
"limit":-1,
"linkedVariables":[
{
"ari":"FIELD:DisplayHtml?durDisp",
"varName":"durDisp"
},
{
"ari":"FIELDVALUE:DisplayHtml?endDisp2?",
"varName":"eComp"
},
{
"ari":"FIELD:DisplayHtml?endDisp",
"varName":"endDisp"
},
{
"ari":"FIELD:SystemControls1?endOrig",
"varName":"endOrig"
},
{
"ari":"FIELD:DisplayHtml?entriesDisp",
"varName":"entriesDisp"
},
{
"ari":"FIELDVALUE:SystemControls1?uploadFF?_text",
"varName":"fileText"
},
{
"ari":"DATAMODEL:main",
"varName":"main"
},
{
"ari":"FIELDVALUE:SystemControls1?uploadFF?_name",
"varName":"name"
},
{
"ari":"FIELD:DisplayHtml?nameDisp",
"varName":"nameDisp"
},
{
"ari":"FIELD:DisplayHtml?nameDisp2",
"varName":"nameDisp2"
},
{
"ari":"FIELD:DisplayHtml?overlapDisplay",
"varName":"overlapDisplay"
},
{
"ari":"FIELD:SystemControls1?rangeOrig",
"varName":"rangeOrig"
},
{
"ari":"FIELDVALUE:DisplayHtml?startDisp2?",
"varName":"sComp"
},
{
"ari":"FIELDVALUE:SystemControls1?selectFile?",
"varName":"selectFileName"
},
{
"ari":"FIELD:DisplayHtml?startDisp",
"varName":"startDisp"
},
{
"ari":"FIELD:SystemControls1?startOrig",
"varName":"startOrig"
},
{
"ari":"FIELD:SystemControls1?syncComp",
"varName":"syncComp"
},
{
"ari":"FIELD:SystemControls1?syncButton",
"varName":"syncOrig"
}
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"logouts",
"tp":"Long"
},
{
"nm":"relayEvents",
"tp":"Long"
},
{
"nm":"objExpires",
"tp":"Long"
},
{
"nm":"snapshots",
"tp":"Long"
},
{
"nm":"dsQueries",
"tp":"Long"
},
{
"nm":"logins",
"tp":"Long"
},
{
"nm":"events",
"tp":"Long"
},
{
"nm":"strPoolSize",
"tp":"Integer"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"devents",
"tp":"Double"
},
{
"nm":"drelayEvents",
"tp":"Double"
},
{
"nm":"dobjExpires",
"tp":"Double"
}
],
"nm":"AmiCenterEvents",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"type",
"tp":"String"
},
{
"nm":"count",
"tp":"Long"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
}
],
"nm":"AmiCenterObjects",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterStoredProcs",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"type",
"tp":"String"
},
{
"nm":"count",
"tp":"Long"
}
],
"nm":"AmiCenterTables",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterTimers",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterTriggers",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"address",
"tp":"String"
},
{
"nm":"startTime",
"tp":"Long"
},
{
"nm":"IdleSince",
"tp":"Long"
},
{
"nm":"target",
"tp":"String"
},
{
"nm":"connections",
"tp":"Long"
},
{
"nm":"bytesToServer",
"tp":"Long"
},
{
"nm":"bytesToClient",
"tp":"Long"
}
],
"nm":"AmiWebBalancerClient",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"address",
"tp":"String"
},
{
"nm":"activeSessions",
"tp":"Integer"
},
{
"nm":"status",
"tp":"String"
}
],
"nm":"AmiWebBalancerServer",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"clientsActive",
"tp":"Integer"
},
{
"nm":"clientsIdle",
"tp":"Integer"
},
{
"nm":"serversUp",
"tp":"Integer"
},
{
"nm":"serversDown",
"tp":"Integer"
},
{
"nm":"activeConnections",
"tp":"Long"
},
{
"nm":"totBytesToServers",
"tp":"Long"
},
{
"nm":"totBytesToClients",
"tp":"Long"
},
{
"nm":"stickyCount",
"tp":"Integer"
}
],
"nm":"AmiWebBalancerStats",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"activeSessions",
"tp":"Integer"
},
{
"nm":"httpServices",
"tp":"Long"
},
{
"nm":"activeConnections",
"tp":"Long"
},
{
"nm":"userRows",
"tp":"Long"
},
{
"nm":"userHiddenRows",
"tp":"Long"
},
{
"nm":"cachedRows",
"tp":"Long"
},
{
"nm":"centersConnected",
"tp":"Integer"
},
{
"nm":"openedConnections",
"tp":"Long"
}
],
"nm":"AmiWebHttpServer",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"freeMem",
"tp":"Long"
},
{
"nm":"maxMem",
"tp":"Long"
},
{
"nm":"totMem",
"tp":"Long"
},
{
"nm":"popsGcMem",
"tp":"Long"
},
{
"nm":"gcCount",
"tp":"Long"
},
{
"nm":"threadBlocked",
"tp":"Integer"
},
{
"nm":"threadsNew",
"tp":"Integer"
},
{
"nm":"threadsRunnable",
"tp":"Integer"
},
{
"nm":"threadsTimedWaiting",
"tp":"Integer"
},
{
"nm":"threadsWaiting",
"tp":"Integer"
}
],
"nm":"Process",
"oc":"apply"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"dir",
"tp":"String"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"msgCount",
"tp":"Long"
},
{
"nm":"connections",
"tp":"String"
}
],
"nm":"Topic",
"oc":"apply"
},
{
"cols":[
{
"nm":"Type",
"tp":"String"
},
{
"nm":"Avg",
"tp":"Double"
},
{
"nm":"Max",
"tp":"Double"
},
{
"nm":"Min",
"tp":"Double"
},
{
"nm":"Avg/s",
"tp":"Double"
},
{
"nm":"Max/s",
"tp":"Double"
},
{
"nm":"Min/s",
"tp":"Double"
}
],
"nm":"eventStats",
"oc":"ask"
},
{
"cols":[
{
"nm":"start",
"tp":"Long"
},
{
"nm":"end",
"tp":"Long"
},
{
"nm":"entries",
"tp":"Long"
}
],
"nm":"summary",
"oc":"ask"
},
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"added",
"tp":"Long"
},
{
"nm":"processed",
"tp":"Long"
},
{
"nm":"queued",
"tp":"Long"
},
{
"nm":"totExecTime",
"tp":"Long"
},
{
"nm":"execs",
"tp":"Long"
},
{
"nm":"inThreadPool",
"tp":"Boolean"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"startTime",
"tp":"Long"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"dProcessed",
"tp":"Double"
},
{
"nm":"dAdded",
"tp":"Double"
},
{
"nm":"dQueued",
"tp":"Double"
}
],
"nm":"tPartition",
"oc":"apply"
},
{
"cols":[
{
"nm":"Type",
"tp":"String"
},
{
"nm":"Avg",
"tp":"Double"
},
{
"nm":"Max",
"tp":"Integer"
},
{
"nm":"Min",
"tp":"Integer"
}
],
"nm":"threadStats",
"oc":"apply"
}
]
},
"timeout":-1
}
]
},
"lbl":"mainSource",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" DROP TABLE Process;\n",
" DROP TABLE Topic;\n",
" DROP TABLE AmiWebBalancerClient;\n",
" DROP TABLE AmiWebBalancerServer;\n",
" DROP TABLE AmiWebBalancerStats;\n",
" DROP TABLE AmiWebHttpServer;\n",
" DROP TABLE AmiCenterTables;\n",
" DROP TABLE AmiCenterEvents;\n",
" DROP TABLE AmiCenterObjects;\n",
" DROP TABLE AmiCenterTriggers;\n",
" DROP TABLE AmiCenterStoredProcs;\n",
" DROP TABLE AmiCenterTimers;\n",
" DROP TABLE summary;\n",
"\n",
" CREATE TABLE tPartition AS SELECT * FROM tPartition WHERE ${WHERE};\n",
"}\n"
],
"hasDatamodel":true,
"inputDm":[
"main"
],
"limit":-1,
"linkedVariables":[
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"added",
"tp":"Long"
},
{
"nm":"processed",
"tp":"Long"
},
{
"nm":"queued",
"tp":"Long"
},
{
"nm":"totExecTime",
"tp":"Long"
},
{
"nm":"execs",
"tp":"Long"
},
{
"nm":"inThreadPool",
"tp":"Boolean"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"startTime",
"tp":"Long"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"dProcessed",
"tp":"Double"
},
{
"nm":"dAdded",
"tp":"Double"
},
{
"nm":"dQueued",
"tp":"Double"
}
],
"nm":"tPartition",
"oc":"ask"
}
]
}
}
]
},
"lbl":"messages",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" DROP TABLE Process;\n",
" DROP TABLE Topic;\n",
" DROP TABLE AmiWebBalancerClient;\n",
" DROP TABLE AmiWebBalancerServer;\n",
" DROP TABLE AmiWebBalancerStats;\n",
" DROP TABLE AmiWebHttpServer;\n",
" DROP TABLE AmiCenterTables;\n",
" DROP TABLE AmiCenterEvents;\n",
" DROP TABLE AmiCenterObjects;\n",
" DROP TABLE AmiCenterTriggers;\n",
" DROP TABLE AmiCenterStoredProcs;\n",
" DROP TABLE AmiCenterTimers;\n",
" DROP TABLE eventStats;\n",
" DROP TABLE threadStats;\n",
" DROP TABLE summary;\n",
"\n",
" CREATE TABLE tPartition AS SELECT * FROM tPartition WHERE ${WHERE};\n",
"}\n"
],
"hasDatamodel":true,
"inputDm":[
"mainCompare"
],
"limit":-1,
"linkedVariables":[
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"added",
"tp":"Long"
},
{
"nm":"processed",
"tp":"Long"
},
{
"nm":"queued",
"tp":"Long"
},
{
"nm":"totExecTime",
"tp":"Long"
},
{
"nm":"execs",
"tp":"Long"
},
{
"nm":"inThreadPool",
"tp":"Boolean"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"startTime",
"tp":"Long"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"dProcessed",
"tp":"Double"
},
{
"nm":"dAdded",
"tp":"Double"
},
{
"nm":"dQueued",
"tp":"Double"
}
],
"nm":"tPartition",
"oc":"apply"
}
]
}
}
]
},
"lbl":"messagesComp",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" DROP TABLE Process;\n",
" DROP TABLE Topic;\n",
" DROP TABLE AmiWebBalancerClient;\n",
" DROP TABLE AmiWebBalancerServer;\n",
" DROP TABLE AmiWebBalancerStats;\n",
" DROP TABLE AmiWebHttpServer;\n",
" DROP TABLE AmiCenterTables;\n",
" DROP TABLE tPartition;\n",
" DROP TABLE AmiCenterEvents;\n",
" DROP TABLE AmiCenterTriggers;\n",
" DROP TABLE AmiCenterStoredProcs;\n",
" DROP TABLE AmiCenterTimers;\n",
" DROP TABLE eventStats;\n",
" DROP TABLE threadStats;\n",
" DROP TABLE summary;\n",
" \n",
" CREATE TABLE AmiCenterObjects AS SELECT * FROM AmiCenterObjects WHERE ${WHERE};\n",
"}\n"
],
"hasDatamodel":true,
"inputDm":[
"main"
],
"limit":-1,
"linkedVariables":[
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"type",
"tp":"String"
},
{
"nm":"count",
"tp":"Long"
},
{
"nm":"rCount",
"tp":"Long"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
}
],
"nm":"AmiCenterObjects",
"oc":"ask"
}
]
}
}
]
},
"lbl":"objects",
"queryMode":"startup",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" DROP TABLE Process;\n",
" DROP TABLE Topic;\n",
" DROP TABLE AmiWebBalancerClient;\n",
" DROP TABLE AmiWebBalancerServer;\n",
" DROP TABLE AmiWebBalancerStats;\n",
" DROP TABLE AmiWebHttpServer;\n",
" DROP TABLE AmiCenterTables;\n",
" DROP TABLE tPartition;\n",
" DROP TABLE AmiCenterEvents;\n",
" DROP TABLE AmiCenterTriggers;\n",
" DROP TABLE AmiCenterStoredProcs;\n",
" DROP TABLE AmiCenterTimers;\n",
" DROP TABLE eventStats;\n",
" DROP TABLE threadStats;\n",
" DROP TABLE summary;\n",
" \n",
" CREATE TABLE AmiCenterObjects AS SELECT * FROM AmiCenterObjects WHERE ${WHERE};\n",
"}\n"
],
"hasDatamodel":true,
"inputDm":[
"mainCompare"
],
"limit":-1,
"linkedVariables":[
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"type",
"tp":"String"
},
{
"nm":"count",
"tp":"Long"
},
{
"nm":"dTime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
}
],
"nm":"AmiCenterObjects",
"oc":"apply"
}
]
}
}
]
},
"lbl":"objectsComp",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" DROP TABLE Process;\n",
" DROP TABLE Topic;\n",
" DROP TABLE AmiWebBalancerClient;\n",
" DROP TABLE AmiWebBalancerServer;\n",
" DROP TABLE AmiWebBalancerStats;\n",
" DROP TABLE AmiWebHttpServer;\n",
" DROP TABLE AmiCenterTables;\n",
" DROP TABLE tPartition;\n",
" DROP TABLE AmiCenterObjects;\n",
" DROP TABLE AmiCenterTriggers;\n",
" DROP TABLE AmiCenterEvents;\n",
" DROP TABLE AmiCenterTimers;\n",
" DROP TABLE eventStats;\n",
" DROP TABLE threadStats;\n",
" DROP TABLE summary;\n",
"\n",
" CREATE TABLE AmiCenterStoredProcs AS SELECT * FROM AmiCenterStoredProcs WHERE ${WHERE};\n",
"}\n"
],
"hasDatamodel":true,
"inputDm":[
"main"
],
"limit":-1,
"linkedVariables":[
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterStoredProcs",
"oc":"apply"
}
]
}
}
]
},
"lbl":"procedures",
"queryMode":"startup",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" DROP TABLE Process;\n",
" DROP TABLE Topic;\n",
" DROP TABLE AmiWebBalancerClient;\n",
" DROP TABLE AmiWebBalancerServer;\n",
" DROP TABLE AmiWebBalancerStats;\n",
" DROP TABLE AmiWebHttpServer;\n",
" DROP TABLE AmiCenterTables;\n",
" DROP TABLE tPartition;\n",
" DROP TABLE AmiCenterObjects;\n",
" DROP TABLE AmiCenterTriggers;\n",
" DROP TABLE AmiCenterEvents;\n",
" DROP TABLE AmiCenterTimers;\n",
" DROP TABLE eventStats;\n",
" DROP TABLE threadStats;\n",
" DROP TABLE summary;\n",
"\n",
" CREATE TABLE AmiCenterStoredProcs AS SELECT * FROM AmiCenterStoredProcs WHERE ${WHERE};\n",
"}\n"
],
"hasDatamodel":true,
"inputDm":[
"mainCompare"
],
"limit":-1,
"linkedVariables":[
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterStoredProcs",
"oc":"apply"
}
]
}
}
]
},
"lbl":"proceduresComp",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" FormPanel controlsPanel = getPanelForView(getViewId(this.getId()), \"SystemControls\");\n",
" \n",
" boolean enableRefresh = controlsPanel.getFieldValue(\"enableRefresh\");\n",
" String refreshTime = controlsPanel.getFieldValue(\"refreshTime\");\n",
" int iRefreshTime = (int) refreshTime;\n",
" if(enableRefresh){\n",
" Datamodel thiz = getDatamodelForView(getViewId(this.getId()), \"refresh\");\n",
" // Datamodel thiz = layout.getDatamodel(\"refresh\");\n",
" \n",
" boolean run = false;\n",
" \n",
" long lastRun = thiz.getValue(\"lastRun\");\n",
" if(lastRun == null)\n",
" run = true;\n",
" else{\n",
" long time = timestamp();\n",
" if(time > (lastRun + 1000*iRefreshTime))\n",
" run = true; \n",
" }\n",
" \n",
" if(run == true){\n",
" getDatamodelForView(getViewId(this.getId()), \"main\").reprocess();\n",
" //layout.getDatamodel(\"main\").reprocess();\n",
" thiz.setValue(\"lastRun\", timestamp());\n",
" \n",
" // file upload field\n",
" main.reprocess();\n",
" }\n",
" }\n",
"}\n"
],
"defaultDs":"AmiLogFile",
"hasDatamodel":true,
"limit":1,
"linkedVariables":[
{
"ari":"DATAMODEL:main",
"varName":"main"
}
],
"name":"onProcess",
"timeout":1000
}
]
},
"datasources":[
"AmiLogFile"
],
"lbl":"refresh",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" DROP TABLE tPartition;\n",
" DROP TABLE Topic;\n",
" DROP TABLE AmiWebBalancerClient;\n",
" DROP TABLE AmiWebBalancerServer;\n",
" DROP TABLE AmiWebBalancerStats;\n",
" DROP TABLE AmiWebHttpServer;\n",
" DROP TABLE AmiCenterTables;\n",
" DROP TABLE AmiCenterEvents;\n",
" DROP TABLE AmiCenterObjects;\n",
" DROP TABLE AmiCenterTriggers;\n",
" DROP TABLE AmiCenterStoredProcs;\n",
" DROP TABLE AmiCenterTimers;\n",
" DROP TABLE eventStats;\n",
" DROP TABLE summary;\n",
"\n",
" CREATE TABLE Process AS SELECT * FROM Process WHERE ${WHERE};\n",
" \n",
"}\n"
],
"hasDatamodel":true,
"inputDm":[
"main"
],
"limit":-1,
"linkedVariables":[
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"freeMem",
"tp":"Long"
},
{
"nm":"maxMem",
"tp":"Long"
},
{
"nm":"totMem",
"tp":"Long"
},
{
"nm":"popsGcMem",
"tp":"Long"
},
{
"nm":"gcCount",
"tp":"Long"
},
{
"nm":"threadBlocked",
"tp":"Integer"
},
{
"nm":"threadsNew",
"tp":"Integer"
},
{
"nm":"threadsRunnable",
"tp":"Integer"
},
{
"nm":"threadsTimedWaiting",
"tp":"Integer"
},
{
"nm":"threadsWaiting",
"tp":"Integer"
}
],
"nm":"Process",
"oc":"ask"
},
{
"cols":[
{
"nm":"Type",
"tp":"String"
},
{
"nm":"Avg",
"tp":"Double"
},
{
"nm":"Max",
"tp":"Integer"
},
{
"nm":"Min",
"tp":"Integer"
}
],
"nm":"threadStats",
"oc":"ask"
}
]
}
}
]
},
"lbl":"threads",
"queryMode":"startup",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
"{\n",
" DROP TABLE tPartition;\n",
" DROP TABLE Topic;\n",
" DROP TABLE AmiWebBalancerClient;\n",
" DROP TABLE AmiWebBalancerServer;\n",
" DROP TABLE AmiWebBalancerStats;\n",
" DROP TABLE AmiWebHttpServer;\n",
" DROP TABLE AmiCenterTables;\n",
" DROP TABLE AmiCenterEvents;\n",
" DROP TABLE AmiCenterObjects;\n",
" DROP TABLE AmiCenterTriggers;\n",
" DROP TABLE AmiCenterStoredProcs;\n",
" DROP TABLE AmiCenterTimers;\n",
" DROP TABLE eventStats;\n",
" DROP TABLE summary;\n",
"\n",
" CREATE TABLE Process AS SELECT * FROM Process WHERE ${WHERE};\n",
" \n",
"}\n"
],
"hasDatamodel":true,
"inputDm":[
"mainCompare"
],
"limit":-1,
"linkedVariables":[
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"freeMem",
"tp":"Long"
},
{
"nm":"maxMem",
"tp":"Long"
},
{
"nm":"totMem",
"tp":"Long"
},
{
"nm":"popsGcMem",
"tp":"Long"
},
{
"nm":"gcCount",
"tp":"Long"
},
{
"nm":"threadBlocked",
"tp":"Integer"
},
{
"nm":"threadsNew",
"tp":"Integer"
},
{
"nm":"threadsRunnable",
"tp":"Integer"
},
{
"nm":"threadsTimedWaiting",
"tp":"Integer"
},
{
"nm":"threadsWaiting",
"tp":"Integer"
}
],
"nm":"Process",
"oc":"ask"
},
{
"cols":[
{
"nm":"Type",
"tp":"String"
},
{
"nm":"Avg",
"tp":"Double"
},
{
"nm":"Max",
"tp":"Integer"
},
{
"nm":"Min",
"tp":"Integer"
}
],
"nm":"threadStats",
"oc":"ask"
}
]
}
}
]
},
"lbl":"threadsComp",
"queryMode":"startup",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
" DROP TABLE Process;\n",
" DROP TABLE Topic;\n",
" DROP TABLE AmiWebBalancerClient;\n",
" DROP TABLE AmiWebBalancerServer;\n",
" DROP TABLE AmiWebBalancerStats;\n",
" DROP TABLE AmiWebHttpServer;\n",
" DROP TABLE AmiCenterTables;\n",
" DROP TABLE tPartition;\n",
" DROP TABLE AmiCenterObjects;\n",
" DROP TABLE AmiCenterTriggers;\n",
" DROP TABLE AmiCenterStoredProcs;\n",
" DROP TABLE AmiCenterEvents;\n",
" DROP TABLE eventStats;\n",
" DROP TABLE threadStats;\n",
" DROP TABLE summary;\n",
"\n",
"CREATE TABLE AmiCenterTimers AS SELECT * FROM AmiCenterTimers WHERE ${WHERE};\n"
],
"hasDatamodel":true,
"inputDm":[
"main"
],
"limit":-1,
"linkedVariables":[
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterTimers",
"oc":"apply"
}
]
}
}
]
},
"lbl":"timers",
"queryMode":"startup",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
" DROP TABLE Process;\n",
" DROP TABLE Topic;\n",
" DROP TABLE AmiWebBalancerClient;\n",
" DROP TABLE AmiWebBalancerServer;\n",
" DROP TABLE AmiWebBalancerStats;\n",
" DROP TABLE AmiWebHttpServer;\n",
" DROP TABLE AmiCenterTables;\n",
" DROP TABLE tPartition;\n",
" DROP TABLE AmiCenterObjects;\n",
" DROP TABLE AmiCenterTriggers;\n",
" DROP TABLE AmiCenterStoredProcs;\n",
" DROP TABLE AmiCenterEvents;\n",
" DROP TABLE eventStats;\n",
" DROP TABLE threadStats;\n",
" DROP TABLE summary;\n",
"\n",
"CREATE TABLE AmiCenterTimers AS SELECT * FROM AmiCenterTimers WHERE ${WHERE};\n"
],
"hasDatamodel":true,
"inputDm":[
"mainCompare"
],
"limit":-1,
"linkedVariables":[
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterTimers",
"oc":"apply"
}
]
}
}
]
},
"lbl":"timersComp",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
" DROP TABLE Process;\n",
" DROP TABLE Topic;\n",
" DROP TABLE AmiWebBalancerClient;\n",
" DROP TABLE AmiWebBalancerServer;\n",
" DROP TABLE AmiWebBalancerStats;\n",
" DROP TABLE AmiWebHttpServer;\n",
" DROP TABLE AmiCenterTables;\n",
" DROP TABLE tPartition;\n",
" DROP TABLE AmiCenterObjects;\n",
" DROP TABLE AmiCenterTimers;\n",
" DROP TABLE AmiCenterStoredProcs;\n",
" DROP TABLE AmiCenterEvents;\n",
" DROP TABLE eventStats;\n",
" DROP TABLE threadStats;\n",
" DROP TABLE summary;\n",
"\n",
"CREATE TABLE AmiCenterTriggers AS SELECT * FROM AmiCenterTriggers WHERE ${WHERE};\n"
],
"hasDatamodel":true,
"inputDm":[
"main"
],
"limit":-1,
"linkedVariables":[
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterTriggers",
"oc":"apply"
}
]
}
}
]
},
"lbl":"triggers",
"queryMode":"startup",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
},
{
"callbacks":{
"entries":[
{
"amiscript":[
" DROP TABLE Process;\n",
" DROP TABLE Topic;\n",
" DROP TABLE AmiWebBalancerClient;\n",
" DROP TABLE AmiWebBalancerServer;\n",
" DROP TABLE AmiWebBalancerStats;\n",
" DROP TABLE AmiWebHttpServer;\n",
" DROP TABLE AmiCenterTables;\n",
" DROP TABLE tPartition;\n",
" DROP TABLE AmiCenterObjects;\n",
" DROP TABLE AmiCenterTimers;\n",
" DROP TABLE AmiCenterStoredProcs;\n",
" DROP TABLE AmiCenterEvents;\n",
" DROP TABLE eventStats;\n",
" DROP TABLE threadStats;\n",
" DROP TABLE summary;\n",
"\n",
"CREATE TABLE AmiCenterTriggers AS SELECT * FROM AmiCenterTriggers WHERE ${WHERE};\n"
],
"hasDatamodel":true,
"inputDm":[
"mainCompare"
],
"limit":-1,
"linkedVariables":[
],
"name":"onProcess",
"schema":{
"tbl":[
{
"cols":[
{
"nm":"now",
"tp":"Long"
},
{
"nm":"name",
"tp":"String"
},
{
"nm":"errors",
"tp":"Long"
},
{
"nm":"millis",
"tp":"Long"
},
{
"nm":"runtime",
"tp":"Long"
},
{
"nm":"dCount",
"tp":"Long"
},
{
"nm":"timeForAction",
"tp":"Double"
}
],
"nm":"AmiCenterTriggers",
"oc":"apply"
}
]
}
}
]
},
"lbl":"triggersComp",
"test_input_type":"OPEN",
"test_input_vars":"String WHERE=\"true\";"
}
],
"lnk":[
{
"awcs":[
{
"fl":"false",
"fo":"",
"j":") or (",
"pf":"((",
"sf":"))",
"to":"",
"tr":"true",
"vn":"WHERE",
"wh":"name == \"${Source_name}\""
}
],
"callbacks":{
},
"op":145,
"relid":"Show_AmiCenterTimersProcessed",
"sdmadn":"main",
"sdmtb":"AmiCenterTimers",
"spadn":"main30",
"tdmadn":"timers",
"title":"Show AmiCenterTimersProcessed",
"tpadn":"timerBlender5"
},
{
"awcs":[
{
"fl":"false",
"fo":"",
"j":") or (",
"pf":"((",
"sf":"))",
"to":"",
"tr":"true",
"vn":"WHERE",
"wh":"name == \"${Source_name}\""
}
],
"callbacks":{
},
"op":145,
"relid":"Show_AmiCenterTimersProcessed1",
"sdmadn":"mainCompare",
"sdmtb":"AmiCenterTimers",
"spadn":"main35",
"tdmadn":"timersComp",
"title":"Show AmiCenterTimersProcessed",
"tpadn":"timerBlender6"
},
{
"awcs":[
{
"fl":"false",
"fo":"",
"j":") or (",
"pf":"((",
"sf":"))",
"to":"",
"tr":"true",
"vn":"WHERE",
"wh":"name ==\"${Source_name}\""
}
],
"callbacks":{
},
"op":19,
"relid":"Show_Procedures_Timelines",
"sdmadn":"main",
"sdmtb":"AmiCenterStoredProcs",
"spadn":"main33",
"tdmadn":"procedures",
"title":"Show Procedures Timelines",
"tpadn":"procBlender"
},
{
"awcs":[
{
"fl":"false",
"fo":"",
"j":") or (",
"pf":"((",
"sf":"))",
"to":"",
"tr":"true",
"vn":"WHERE",
"wh":"name == \"${Source_name}\""
}
],
"callbacks":{
},
"op":19,
"relid":"Show_Procedures_Timelines1",
"sdmadn":"main",
"sdmtb":"AmiCenterTriggers",
"spadn":"main34",
"tdmadn":"triggers",
"title":"Show Procedures Timelines",
"tpadn":"procBlender1"
},
{
"awcs":[
{
"fl":"false",
"fo":"",
"j":") or (",
"pf":"((",
"sf":"))",
"to":"",
"tr":"true",
"vn":"WHERE",
"wh":"name ==\"${Source_name}\""
}
],
"callbacks":{
},
"op":19,
"relid":"Show_Procedures_Timelines2",
"sdmadn":"mainCompare",
"sdmtb":"AmiCenterStoredProcs",
"spadn":"main36",
"tdmadn":"proceduresComp",
"title":"Show Procedures Timelines",
"tpadn":"procBlender2"
},
{
"awcs":[
{
"fl":"false",
"fo":"",
"j":") or (",
"pf":"((",
"sf":"))",
"to":"",
"tr":"true",
"vn":"WHERE",
"wh":"name == \"${Source_name}\""
}
],
"callbacks":{
},
"op":19,
"relid":"Show_Procedures_Timelines3",
"sdmadn":"mainCompare",
"sdmtb":"AmiCenterTriggers",
"spadn":"main37",
"tdmadn":"triggersComp",
"title":"Show Procedures Timelines",
"tpadn":"procBlender3"
},
{
"awcs":[
{
"fl":"false",
"fo":"",
"j":") or (",
"pf":"((",
"sf":"))",
"to":"",
"tr":"true",
"vn":"WHERE",
"wh":"type == \"${Source_type}\""
}
],
"callbacks":{
},
"op":19,
"relid":"Show_Table_Rows_Timeline",
"sdmadn":"main",
"sdmtb":"AmiCenterObjects",
"spadn":"main",
"tdmadn":"objects",
"title":"Show Table Rows Timeline",
"tpadn":"main4"
},
{
"awcs":[
{
"fl":"false",
"fo":"",
"j":") or (",
"pf":"((",
"sf":"))",
"to":"",
"tr":"true",
"vn":"WHERE",
"wh":"type == \"${Source_type}\""
}
],
"callbacks":{
},
"op":19,
"relid":"Show_Table_Rows_Timeline1",
"sdmadn":"mainCompare",
"sdmtb":"AmiCenterObjects",
"spadn":"main3",
"tdmadn":"objectsComp",
"title":"Show Table Rows Timeline",
"tpadn":"main10"
},
{
"awcs":[
{
"fl":"false",
"fo":"",
"j":") or (",
"pf":"((",
"sf":"))",
"to":"",
"tr":"true",
"vn":"WHERE",
"wh":"name == \"${Source_name}\""
}
],
"callbacks":{
},
"op":19,
"relid":"Show_tPartition",
"sdmadn":"main",
"sdmtb":"tPartition",
"spadn":"main31",
"tdmadn":"messages",
"title":"Show tPartition",
"tpadn":"messages"
},
{
"awcs":[
{
"fl":"false",
"fo":"",
"j":") or (",
"pf":"((",
"sf":"))",
"to":"",
"tr":"true",
"vn":"WHERE",
"wh":"name == \"${Source_name}\""
}
],
"callbacks":{
},
"op":19,
"relid":"Show_tPartition1",
"sdmadn":"mainCompare",
"sdmtb":"tPartition",
"spadn":"main32",
"tdmadn":"messages",
"title":"Show tPartition",
"tpadn":"messages1"
}
]
},
"fileVersion":4,
"menubarPosition":"top",
"rt":{
},
"stm":{
"styles":[
{
"id":"DARK",
"lb":"Dark",
"pt":"DEFAULT",
"vl":{
"chart":{
"bgCl":"#3a3a3a",
"divCl":"#ffffff",
"seriesCls":[
"#30b3ff",
"#ff7530",
"#ff303e",
"#ffc637",
"#ff3098",
"#30ff6e",
"#d229db",
"#30f8ff",
"#94d8ff",
"#ffb894",
"#ff949b",
"#ffe49e",
"#ff94c9",
"#94ffb4",
"#e481ea",
"#94fbff"
]
},
"chartAxis":{
"axNumFontCl":"#ffffff",
"axNumFontFam":"Courier",
"axTitleCl":"#ffffff"
},
"div":{
"divCl":"#3a3a3a",
"divSz":2.0
},
"legend":{
"lgdBgCl":"#000000",
"lgdFontFam":"Arial",
"lgdNmCl":"#ffffff"
},
"table":{
"actCl":"#34477f",
"bgCl":"#3a3a3a",
"cellBdrCl":"#6f6f6f",
"cellRtPx":1.0,
"fontCl":"#ffffff",
"graybarCl":"#282828",
"headerBgCl":"#000000",
"headerDivHide":true,
"pdBdrCl":"#3a3a3a",
"pdBtmPx":6.0,
"pdCl":"#000000",
"pdLfPx":6.0,
"pdRtPx":6.0,
"pdShadowCl":"#ffffff",
"pdShadowHzPx":3.0,
"pdShadowSzPx":1.0,
"pdShadowVtPx":3.0,
"pdTpPx":6.0,
"scrollBdrCl":"#111111",
"scrollBtnCl":"#000000",
"scrollGripCl":"#000000",
"scrollIconsCl":"#ffffff",
"scrollTrackCl":"#3a3a3a",
"scrollWd":18.0,
"searchBarDivCl":"#000000",
"searchBgCl":"#111111",
"selCl":"#34477f8a",
"titlePnlFontCl":"#ffffff",
"titlePnlFontSz":15.0
},
"tabs":{
"selCl":"#3a3a3a",
"selTxtCl":"#ffffff"
}
}
},
{
"id":"LAYOUT_DEFAULT2",
"lb":"Midnight",
"pt":"DARK",
"vl":{
"chart":{
"divCl":"#eeeeee",
"divThckH":2.0,
"divThckV":1.0,
"pdBdrCl":"#353747",
"titlePnlFontSz":0.0
},
"chartAxis":{
"axEndPd":7.0,
"axLineCl":"#ffffff",
"axMajUnitSz":3.0,
"axMinorUnitSz":0.0,
"axNumFontCl":"#eeeeee",
"axNumFontFam":"Roboto",
"axNumFontSz":13.0,
"axNumPd":1.0,
"axStartPd":6.0,
"axTitleCl":"#ffffff",
"axTitleFontFam":"Roboto",
"axTitlePd":38.0,
"axTitleSz":14.0
},
"div":{
"divCl":"#353747"
},
"field":{
"fldBgCl":"#353747",
"fldBorderRad":2.0,
"fldFocusBorderCl":"#6cbcde",
"fldFontCl":"#eeeeee",
"fldFontFam":"Roboto",
"fontCl":"#eeeeee",
"fontFam":"Roboto",
"lblPd":2.0
},
"form":{
"bgCl":"#01031c",
"pdBdrCl":"#01031c"
},
"formMultiCheckboxField":{
"fldFontCl":"#01031c"
},
"formRangeSliderField":{
"fldGripCl":"#eeeeee",
"fldTrackCl":"#353747"
},
"formSliderField":{
"fldGripCl":"#eeeeee",
"fldTrackCl":"#353747"
},
"global":{
"bgCl":"#01031c",
"deskBgCl":"#01031c",
"dialogTitleFontFam":"Roboto",
"fontCl":"#ffffff",
"titleBarBdrCl":"#01031c",
"winBgCl":"#1d1f31",
"winFontCl":"#eeeeee",
"winFontFam":"Roboto"
},
"graphLayer":{
"grLyrBdrCl":"#01031c",
"grLyrHMajGrdCl":"#353747"
},
"legend":{
"lgdBdrCl":"#353747",
"lgdBgCl":"#1d1f31",
"lgdCbBdrCl":"#1d1f31",
"lgdCbCk":"#1d1f31",
"lgdCbCl":"#eeeeee",
"lgdFontFam":"Roboto",
"lgdHzPd":23.0,
"lgdKeyPos":"top_left",
"lgdLblSz":11.0,
"lgdNmCl":"#ffffff",
"lgdNmPos":"top_left",
"lgdNmSz":0.0,
"lgdVtPd":17.0
},
"panel":{
"bgCl":"#1d1f31",
"cellBdrCl":"#4f505a",
"filtFontCl":"#eeeeee",
"fldBgCl":"#353747",
"fldFontCl":"#eeeeee",
"fontCl":"#eeeeee",
"graybarCl":"#353747",
"headerBgCl":"#01031c",
"pdBdrCl":"#1d1f31",
"scrollBarHideArrows":true,
"scrollBarRadius":"Rounded",
"scrollBdrCl":"#01031c",
"scrollBtnCl":"#353747",
"scrollGripCl":"#353747",
"scrollIconsCl":"#eeeeee",
"scrollTrackCl":"#01031c",
"scrollWd":12.0,
"searchBgCl":"#01031c",
"searchHide":true,
"titlePnlFontCl":"#252738",
"titlePnlFontFm":"Roboto",
"titlePnlFontSz":16.0
},
"table":{
"cellPadHt":3.0,
"cellRtPx":1.0,
"columnFilterBdrCl":"#353747",
"columnFilterBgCl":"#eeeeee",
"headerHt":20.0,
"pdBdrCl":"#252738",
"pdCl":"#252738",
"pdShadowCl":"#1d1f31",
"scrollBdrCl":"#01031c",
"scrollBtnCl":"#353747",
"scrollGripCl":"#353747",
"scrollIconsCl":"#eeeeee",
"scrollTrackCl":"#01031c",
"searchBgCl":"#01031c",
"searchBtnsCl":"#eeeeee",
"searchFldBdrCl":"#01031c",
"searchFldCl":"#eeeeee",
"searchFldFontCl":"#01031c",
"titlePnlFontCl":"#eeeeee"
},
"tabs":{
"fontFam":"Roboto",
"fontSz":14.0,
"pdBdrCl":"#353747",
"pdBdrSzPx":0.0,
"pdBtmPx":10.0,
"pdCl":"#1d1f31",
"selCl":"#eeeeee",
"selTxtCl":"#01031c",
"tabBdrCl":"#eeeeee",
"tabHt":20.0,
"tabSelBdrCl":"#01031c",
"titlePnlFontCl":"#ffffff",
"unselCl":"#1d1f31",
"unselTxtCl":"#eeeeee"
},
"treegrid":{
"bgCl":"#1d1f31",
"cellPadHt":3.0,
"cellRtPx":1.0,
"graybarCl":"#353747",
"headerDivHide":true,
"titlePnlFontCl":"#eeeeee"
}
}
},
{
"id":"LAYOUT_DEFAULT",
"lb":"Layout Default",
"pt":"LAYOUT_DEFAULT2",
"vl":{
"chartAxis":{
"axEndPd":10.0,
"axLineCl":"#bfbfbf",
"axStartPd":10.0
},
"graphLayer":{
"grLyrHMajGrdCl":"#303030"
},
"legend":{
"lgdCbCl":"#1d1f31",
"lgdKeyPos":"top_left",
"lgdMaxWd":164.0,
"lgdNmPos":"top_left"
},
"table":{
"columnFilterHide":true,
"searchHide":false
},
"treegrid":{
"searchHide":false
}
}
}
]
},
"titleBarHtml":"Log Viewer",
"transientIdPrefix":"TRANSIENT_"
},
"portletConfigs":[
{
"portletBuilderId":"amidesktop",
"portletConfig":{
"amiPanelId":"@DESKTOP",
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"windows":[
{
"header":false,
"heightDflt":896,
"hidden":false,
"leftDflt":0,
"portlet":"Div7",
"pos":0,
"stateDflt":"max",
"title":"AmiLogViewer",
"topDflt":0,
"widthDflt":1912,
"zindexDflt":2
}
]
}
},
{
"portletBuilderId":"amichartgrid",
"portletConfig":{
"amiPanelId":"AmiCenter_amilog",
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"amiTitle":"memory",
"axisBcnts":[
1
],
"axisConfig":{
"B_0_0":{
"amiStyle":{
"axEndPd":31.0,
"axNumPd":4.0,
"axNumRotate":-90.0,
"axTitlePd":28.0,
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":3,
"fontStyle":"",
"format":null,
"formatType":3,
"isGroupOrdered":false,
"orientation":"T",
"reverse":false,
"title":"Time"
},
"L_0_0":{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":116,
"fontStyle":"",
"format":null,
"formatType":5,
"isGroupOrdered":false,
"orientation":"R",
"reverse":true,
"title":"Events per Second"
},
"L_1_0":{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":41,
"fontStyle":"",
"format":"formatNumberCompact(n)",
"formatType":4,
"isGroupOrdered":false,
"orientation":"R",
"reverse":true,
"title":"Table Row Count"
},
"L_2_0":{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":false,
"autoMinorValue":true,
"axisId":34,
"fontStyle":"",
"format":"formatNumber(n,\"#,###\",\"\")",
"formatType":5,
"isGroupOrdered":false,
"minValue":0.0,
"orientation":"R",
"reverse":true,
"title":"Messages Queued"
},
"L_3_0":{
"amiStyle":{
"axStartPd":0.0,
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":30,
"fontStyle":"",
"format":"formatNumber(n/1024.0/1024/1024,\"#,### GB\",\"\")",
"formatType":4,
"isGroupOrdered":false,
"orientation":"R",
"reverse":true,
"title":"Memory"
}
},
"axisLcnts":[
1,
1,
1,
1
],
"axisRcnts":[
0,
0,
0,
0
],
"axisTcnts":[
0
],
"cods":false,
"colsCount":1,
"dm":[
{
"dmadn":"main",
"dmtbid":[
"process",
"Process",
"tPartition",
"AmiCenterEvents",
"AmiCenterObjects"
]
}
],
"mdivs":[
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":84,
"w":0.12416851441241686
},
{
"p":-1,
"w":1.875831485587583
}
],
"p":-1,
"w":1.0818713450292397
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":84,
"w":0.12416851441241686
},
{
"p":-1,
"w":1.875831485587583
}
],
"p":-1,
"w":1.3099415204678362
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":84,
"w":0.12416851441241686
},
{
"p":-1,
"w":1.875831485587583
}
],
"p":-1,
"w":1.1228070175438596
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":84,
"w":0.12416851441241686
},
{
"p":-1,
"w":1.875831485587583
}
],
"p":-1,
"w":1.2339181286549707
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":84,
"w":0.12416851441241686
},
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":-1,
"w":1.875831485587583
}
],
"p":43,
"w":0.25146198830409355
}
],
"plotConfig":{
"0_0":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"id":122,
"name":"Legend",
"opac":100,
"ser":[
118,
120
],
"type":"Legend"
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"AmiCenterEvents",
"dmadn":"main",
"id":121,
"layers":[
{
"desc":"drelayEvents== max(drelayEvents) && max(drelayEvents)!= mode(drelayEvents) ? \"Max: \" + formatNumberCompact(drelayEvents) : (now == min(now)? \"Min:\" + formatNumberCompact(drelayEvents) : (now == max(now) ? \"Avg: \" + formatNumberCompact(avg(drelayEvents)) : \"\"))",
"descColor":{
"type":"custom",
"value":"countUnique(drelayEvents) > 2 || stdev(drelayEvents)/Avg(drelayEvents) > 0.2 ? \"#ff303e\": \"\""
},
"editorType":"2dAdv",
"id":120,
"lineColor":{
"type":"custom",
"value":"brighten(\"#ff303e\", -0.5D)"
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#ff303e\""
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"seriesName":"RelayEvents",
"tooltip":"hoverDisplay(\"Relay Events\", now, \"Rate\",formatNumber(drelayEvents, \"#,###.00/s\", \"\"))",
"xPos":"now",
"yPos":"drelayEvents"
}
],
"name":"RelayEvents",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":116
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"AmiCenterEvents",
"dmadn":"main",
"id":119,
"layers":[
{
"desc":"devents == max(devents) && max(devents)!= mode(devents) ? \"Max: \" + formatNumberCompact(devents) : (now == min(now)? \"Min:\" + formatNumberCompact(devents) : (now == max(now) ? \"Avg: \" + formatNumberCompact(avg(devents)) : \"\"))",
"descColor":{
"type":"custom",
"value":"countUnique(devents) > 2 || stdev(devents)/Avg(devents) > 0.2 ? \"#30b3ff\": \"\""
},
"editorType":"2dAdv",
"id":118,
"lineColor":{
"type":"custom",
"value":"brighten(\"#30b3ff\",-0.5D)"
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#30b3ff\""
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"seriesName":"Events",
"tooltip":"hoverDisplay(\"Relay Events\", now, \"Rate\", formatNumber(devents, \"#,###.00/s\", \"\"))",
"xPos":"now",
"yPos":"devents"
}
],
"name":"Events",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":116
}
],
"plotId":117,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
},
"0_1":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"lgdMaxHt":200.0,
"lgdMaxWd":164.0,
"pt":"LAYOUT_DEFAULT2"
},
"id":45,
"name":"Legend",
"opac":100,
"ser":[
128,
123,
43,
125
],
"type":"Legend"
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"AmiCenterObjects",
"dmadn":"main",
"id":44,
"layers":[
{
"desc":"now == max(now) ? \"Max: \" + formatNumberCompact(count) : (now == min(now)? \"Min:\" + formatNumberCompact(count) :\"\")",
"descColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"descPos":"\"top\"",
"descSz":"12",
"editorType":"2dAdv",
"id":43,
"lineColor":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"lineSize":"1",
"lineType":"\"horizontal\"",
"mColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"name":"type",
"seriesName":"Layer",
"tooltip":"hoverDisplay(type, now, \"Count\", formatNumber(count, \"#,###.#\", \"\") + \" rows\")",
"where":"type !~ \"__\"",
"xPos":"now",
"yPos":"count"
}
],
"name":"Layer",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":41
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"AmiCenterObjects",
"dmadn":"main",
"id":127,
"layers":[
{
"desc":"now==max(now) ? \"Avg: \" + formatNumberCompact(avg(count)) : \"\"",
"descColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"descPos":"\"bottomright\"",
"descSz":"12",
"editorType":"2dAdv",
"id":128,
"line2Color":{
"type":"custom",
"value":"brighten(cycle(__series_num,\"6cbcde\",\"#ff303e\",\"#ff7530\",\"#30ff6e\",\"#30f8ff\",\"#30b3ff\",\"#d229db\",\"#ff3098\",\"#ffc637\",\"#ffe49e\",\"#ff94c9\",\"#94d8ff\",\"#94fbff\",\"#94ffb4\",\"#ffb894\",\"#ff949b\",\"#e481ea\" ), -0.2)"
},
"line2Dash":"1",
"line2Size":"1",
"lineColor":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"lineSize":"1",
"lineType":"\"horizontal\"",
"mColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"name":"type",
"seriesName":"Layer3",
"tooltip":"hoverDisplay(type, now, \"Count\", formatNumber(count, \"#,###.#\", \"\") + \" rows\")",
"where":"type !~ \"__\"",
"x2Pos":"now",
"xPos":"now",
"y2Pos":"round(avg(count))",
"yPos":"round(avg(count))"
}
],
"name":"Layer3",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":41
}
],
"plotId":42,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
},
"0_2":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"lgdMaxHt":107.0,
"lgdMaxWd":200.0,
"pt":"LAYOUT_DEFAULT2"
},
"id":40,
"name":"Legend",
"opac":100,
"ser":[
130,
36,
125
],
"type":"Legend"
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"tPartition",
"dmadn":"main",
"id":37,
"layers":[
{
"desc":"now==max(now) ? \"Max: \" + formatNumberCompact(added-processed) : \"\"",
"descColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"descPos":"\"right\"",
"descSz":"12",
"editorType":"2dAdv",
"id":36,
"line2Dash":"1",
"line2Size":"1",
"lineColor":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"name":"name",
"seriesName":"Layer",
"tooltip":"hoverDisplay(name,now, \"Messages Queued\", \"\" + (added-processed))",
"xPos":"now",
"yPos":"added-processed"
}
],
"name":"Layer",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":34
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"tPartition",
"dmadn":"main",
"id":129,
"layers":[
{
"desc":"now==max(now) ? \"Avg: \" + formatNumberCompact(avg(added-processed)) : \"\"",
"descColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"descPos":"\"right\"",
"descSz":"12",
"editorType":"2dAdv",
"id":130,
"line2Color":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"line2Dash":"1",
"line2Size":"1",
"lineColor":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"lineDash":"10",
"lineSize":"2",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"name":"name",
"seriesName":"Layer2",
"tooltip":"hoverDisplay(name,now, \"Messages Queued\", \"\" + (added-processed))",
"x2Pos":"now",
"xPos":"now",
"y2Pos":"avg(added-processed)",
"yPos":"avg(added-processed)"
}
],
"name":"Layer2",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":34
}
],
"plotId":35,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
},
"0_3":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"id":89,
"name":"Legend",
"opac":100,
"ser":[
32,
85,
87,
136,
123
],
"type":"Legend"
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"main",
"id":124,
"layers":[
{
"desc":"\"Avg: \" + formatNumberCompact(avg(totMem-freeMem)/1024.0/1024/1024)+\" GB\"",
"descColor":{
"type":"custom",
"value":"now == max(now) ? brighten(gradient(avg(totMem - freeMem),min(totMem - freeMem),\"#30ff6e\",maxMem/2,\"#cab800\",maxMem,\"#ff303e\") , 0.8): \"\""
},
"descPos":"\"top\"",
"descSz":"13",
"editorType":"2dAdv",
"id":123,
"line2Color":{
"type":"custom",
"value":" brighten(gradient(avg(totMem - freeMem),min(totMem - freeMem),\"#30ff6e\",maxMem/2,\"#cab800\",maxMem,\"#ff303e\") , 0.8)"
},
"line2Dash":"10",
"line2Size":"2",
"lineColor":{
"type":"custom",
"value":" brighten(gradient(avg(totMem - freeMem),min(totMem - freeMem),\"#30ff6e\",maxMem/2,\"#cab800\",maxMem,\"#ff303e\") , 0.8)"
},
"lineDash":"10",
"lineSize":"2",
"lineType":"\"vertical\"",
"seriesName":"AvgUsedMemory",
"x2Pos":"now ",
"xPos":"now + (double)(max(now) - min(now))/20",
"y2Pos":"avg(totMem-freeMem)",
"yPos":"avg(totMem-freeMem)"
}
],
"name":"AvgUsedMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
},
{
"amiStyle":{
"grLyrHMajGrdCl":"#ff0000",
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"main",
"id":86,
"layers":[
{
"desc":"\"Max: \" + formatNumberCompact((totMem-freeMem)/1024.0/1024/1024) + \"/\" + formatNumberCompact((totMem)/1024.0/1024/1024) + \" GB\"",
"descColor":{
"type":"custom",
"value":"totMem-freeMem == max(totMem-freeMem) ? \"#eeeeee\" : \"\""
},
"descPos":"\"topright\"",
"descSz":"12",
"editorType":"2dAdv",
"id":85,
"lineColor":{
"type":"custom",
"value":"\"#30b3ff\""
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#30b3ff\""
},
"mHeight":"2",
"mShape":"\"circle\"",
"mWidth":"2",
"seriesName":"AllocMemory",
"tooltip":"hoverDisplay(\"Allocated Memory\", now, \"Memory\", formatNumber(totMem/1024.0/1024/1024,\"#,### GB\",\"\"))",
"xPos":"now",
"yPos":"totMem"
}
],
"name":"AllocMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"main",
"id":88,
"layers":[
{
"descColor":{
"type":"custom",
"value":"now == avg(now) ? \"#ff303e\" : \"\" "
},
"descPos":"\"topleft\"",
"descSz":"12",
"editorType":"2dAdv",
"id":87,
"lineColor":{
"type":"custom",
"value":"\"#ff303e\""
},
"lineSize":"2",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#ff303e\""
},
"mHeight":"2",
"mShape":"\"circle\"",
"mWidth":"2",
"seriesName":"MaxMemory",
"tooltip":"\"Max Memory: \"+formatNumber(maxMem/1024.0/1024/1024,\"#,### GB\",\"\")",
"xPos":"now",
"yPos":"maxMem"
}
],
"name":"MaxMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"main",
"id":33,
"layers":[
{
"descPos":"\"bottomright\"",
"descSz":"13",
"editorType":"2dAdv",
"fillBorderSize":"1",
"fillColor":{
"type":"custom",
"value":"gradient((totMem - freeMem),min(totMem - freeMem),\"#215e21\",0.6*maxMem,\"#8c8c2e\",maxMem,\"#992020\")"
},
"id":32,
"line2Size":"1",
"lineColor":{
"type":"custom",
"value":"\"#30ff6e\""
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#30ff6e\""
},
"mHeight":"2",
"mShape":"\"circle\"",
"mWidth":"2",
"seriesName":"UsedMemory",
"tooltip":"hoverDisplay(\"Used Memory\", now, \"Memory\", formatNumber((totMem - freeMem)/1024.0/1024/1024,\"#,###\",\"\") + \"/\" + formatNumber(totMem/1024.0/1024/1024,\"#,### GB\",\"\") + \"
Usage: \" + formatNumber((totMem*1.0 - freeMem)/totMem,\"###.### %\",\"\"))",
"x2Pos":"now",
"xPos":"now",
"y2Pos":"0",
"yPos":"totMem - freeMem"
}
],
"name":"UsedMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
}
],
"plotId":31,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
}
},
"rowsCount":4,
"titlePnl":{
"title":"memory"
},
"upid":"AmiCenter_amilog"
}
},
{
"portletBuilderId":"amichartgrid",
"portletConfig":{
"amiPanelId":"AmiCenter_amilog1",
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"amiTitle":"memory",
"axisBcnts":[
1
],
"axisConfig":{
"B_0_0":{
"amiStyle":{
"axEndPd":31.0,
"axNumPd":4.0,
"axNumRotate":-90.0,
"axTitlePd":28.0,
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":3,
"fontStyle":"",
"format":null,
"formatType":3,
"isGroupOrdered":false,
"orientation":"T",
"reverse":false,
"title":"Time"
},
"L_0_0":{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":116,
"fontStyle":"",
"format":null,
"formatType":5,
"isGroupOrdered":false,
"orientation":"R",
"reverse":true,
"title":"Events per Second"
},
"L_1_0":{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":41,
"fontStyle":"",
"format":"formatNumberCompact(n)",
"formatType":4,
"isGroupOrdered":false,
"orientation":"R",
"reverse":true,
"title":"Table Row Count"
},
"L_2_0":{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":false,
"autoMinorValue":true,
"axisId":34,
"fontStyle":"",
"format":"formatNumber(n,\"#,###\",\"\")",
"formatType":5,
"isGroupOrdered":false,
"minValue":0.0,
"orientation":"R",
"reverse":true,
"title":"Messages Queued"
},
"L_3_0":{
"amiStyle":{
"axStartPd":0.0,
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":30,
"fontStyle":"",
"format":"formatNumber(n/1024.0/1024/1024,\"#,### GB\",\"\")",
"formatType":4,
"isGroupOrdered":false,
"orientation":"R",
"reverse":true,
"title":"Memory"
}
},
"axisLcnts":[
1,
1,
1,
1
],
"axisRcnts":[
0,
0,
0,
0
],
"axisTcnts":[
0
],
"cods":false,
"colsCount":1,
"dm":[
{
"dmadn":"mainCompare",
"dmtbid":[
"process",
"Process",
"tPartition",
"AmiCenterEvents",
"AmiCenterObjects"
]
}
],
"mdivs":[
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":84,
"w":0.12416851441241686
},
{
"p":-1,
"w":1.875831485587583
}
],
"p":-1,
"w":1.0987654320987654
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":84,
"w":0.12416851441241686
},
{
"p":-1,
"w":1.875831485587583
}
],
"p":-1,
"w":1.2469135802469138
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":84,
"w":0.12416851441241686
},
{
"p":-1,
"w":1.875831485587583
}
],
"p":-1,
"w":1.226337448559671
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":84,
"w":0.12416851441241686
},
{
"p":-1,
"w":1.875831485587583
}
],
"p":-1,
"w":1.2510288065843622
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":84,
"w":0.12416851441241686
},
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":-1,
"w":1.875831485587583
}
],
"p":43,
"w":0.1769547325102881
}
],
"plotConfig":{
"0_0":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"id":122,
"name":"Legend",
"opac":100,
"ser":[
118,
120
],
"type":"Legend"
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"AmiCenterEvents",
"dmadn":"mainCompare",
"id":121,
"layers":[
{
"desc":"drelayEvents== max(drelayEvents) && max(drelayEvents)!= mode(drelayEvents) ? \"Max: \" + formatNumberCompact(drelayEvents) : (now == min(now)? \"Min:\" + formatNumberCompact(drelayEvents) : (now == max(now) ? \"Avg: \" + formatNumberCompact(avg(drelayEvents)) : \"\"))",
"descColor":{
"type":"custom",
"value":"countUnique(drelayEvents) > 2 || stdev(drelayEvents)/Avg(drelayEvents) > 0.2 ? \"#ff303e\": \"\""
},
"editorType":"2dAdv",
"id":120,
"lineColor":{
"type":"custom",
"value":"brighten(\"#ff303e\", -0.5D)"
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#ff303e\""
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"seriesName":"RelayEvents",
"tooltip":"hoverDisplay(\"Relay Events\", now, \"Rate\",formatNumber(drelayEvents, \"#,###.00/s\", \"\"))",
"xPos":"now",
"yPos":"drelayEvents"
}
],
"name":"RelayEvents",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":116
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"AmiCenterEvents",
"dmadn":"mainCompare",
"id":119,
"layers":[
{
"desc":"devents == max(devents) && max(devents)!= mode(devents) ? \"Max: \" + formatNumberCompact(devents) : (now == min(now)? \"Min:\" + formatNumberCompact(devents) : (now == max(now) ? \"Avg: \" + formatNumberCompact(avg(devents)) : \"\"))",
"descColor":{
"type":"custom",
"value":"countUnique(devents) > 2 || stdev(devents)/Avg(devents) > 0.2 ? \"#30b3ff\": \"\""
},
"editorType":"2dAdv",
"id":118,
"lineColor":{
"type":"custom",
"value":"brighten(\"#30b3ff\",-0.5D)"
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#30b3ff\""
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"seriesName":"Events",
"tooltip":"hoverDisplay(\"Relay Events\", now, \"Rate\", formatNumber(devents, \"#,###.00/s\", \"\"))",
"xPos":"now",
"yPos":"devents"
}
],
"name":"Events",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":116
}
],
"plotId":117,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
},
"0_1":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"lgdMaxHt":200.0,
"lgdMaxWd":164.0,
"pt":"LAYOUT_DEFAULT2"
},
"id":45,
"name":"Legend",
"opac":100,
"ser":[
128,
123,
43,
125
],
"type":"Legend"
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"AmiCenterObjects",
"dmadn":"mainCompare",
"id":44,
"layers":[
{
"desc":"now == max(now) ? \"Max: \" + formatNumberCompact(count) : (now == min(now)? \"Min:\" + formatNumberCompact(count) :\"\")",
"descColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"descPos":"\"top\"",
"descSz":"12",
"editorType":"2dAdv",
"id":43,
"lineColor":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"lineSize":"1",
"lineType":"\"horizontal\"",
"mColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"name":"type",
"seriesName":"Layer",
"tooltip":"hoverDisplay(type, now, \"Count\", formatNumber(count, \"#,###.#\", \"\") + \" rows\")",
"where":"type !~ \"__\"",
"xPos":"now",
"yPos":"count"
}
],
"name":"Layer",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":41
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"AmiCenterObjects",
"dmadn":"mainCompare",
"id":127,
"layers":[
{
"desc":"now==max(now) ? \"Avg: \" + formatNumberCompact(avg(count)) : \"\"",
"descColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"descPos":"\"bottomright\"",
"descSz":"12",
"editorType":"2dAdv",
"id":128,
"line2Color":{
"type":"custom",
"value":"brighten(cycle(__series_num,\"6cbcde\",\"#ff303e\",\"#ff7530\",\"#30ff6e\",\"#30f8ff\",\"#30b3ff\",\"#d229db\",\"#ff3098\",\"#ffc637\",\"#ffe49e\",\"#ff94c9\",\"#94d8ff\",\"#94fbff\",\"#94ffb4\",\"#ffb894\",\"#ff949b\",\"#e481ea\" ), -0.2)"
},
"line2Dash":"1",
"line2Size":"1",
"lineColor":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"lineSize":"1",
"lineType":"\"horizontal\"",
"mColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"name":"type",
"seriesName":"Layer3",
"tooltip":"hoverDisplay(type, now, \"Count\", formatNumber(count, \"#,###.#\", \"\") + \" rows\")",
"where":"type !~ \"__\"",
"x2Pos":"now",
"xPos":"now",
"y2Pos":"round(avg(count))",
"yPos":"round(avg(count))"
}
],
"name":"Layer3",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":41
}
],
"plotId":42,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
},
"0_2":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"lgdMaxHt":107.0,
"lgdMaxWd":200.0,
"pt":"LAYOUT_DEFAULT2"
},
"id":40,
"name":"Legend",
"opac":100,
"ser":[
130,
36,
125
],
"type":"Legend"
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"tPartition",
"dmadn":"mainCompare",
"id":37,
"layers":[
{
"desc":"now==max(now) ? \"Max: \" + formatNumberCompact(added-processed) : \"\"",
"descColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"descPos":"\"right\"",
"descSz":"12",
"editorType":"2dAdv",
"id":36,
"line2Dash":"1",
"line2Size":"1",
"lineColor":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"name":"name",
"seriesName":"Layer",
"tooltip":"hoverDisplay(name,now, \"Messages Queued\", \"\" + (added-processed))",
"xPos":"now",
"yPos":"added-processed"
}
],
"name":"Layer",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":34
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"tPartition",
"dmadn":"mainCompare",
"id":129,
"layers":[
{
"desc":"now==max(now) ? \"Avg: \" + formatNumberCompact(avg(added-processed)) : \"\"",
"descColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"descPos":"\"right\"",
"descSz":"12",
"editorType":"2dAdv",
"id":130,
"line2Color":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"line2Dash":"1",
"line2Size":"1",
"lineColor":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"lineDash":"10",
"lineSize":"2",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"name":"name",
"seriesName":"Layer2",
"tooltip":"hoverDisplay(name,now, \"Messages Queued\", \"\" + (added-processed))",
"x2Pos":"now",
"xPos":"now",
"y2Pos":"avg(added-processed)",
"yPos":"avg(added-processed)"
}
],
"name":"Layer2",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":34
}
],
"plotId":35,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
},
"0_3":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"id":89,
"name":"Legend",
"opac":100,
"ser":[
32,
85,
87,
136,
123
],
"type":"Legend"
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"mainCompare",
"id":124,
"layers":[
{
"desc":"\"Avg: \" + formatNumberCompact(avg(totMem-freeMem)/1024.0/1024/1024)+\" GB\"",
"descColor":{
"type":"custom",
"value":"now == max(now) ? brighten(gradient(avg(totMem - freeMem),min(totMem - freeMem),\"#30ff6e\",maxMem/2,\"#cab800\",maxMem,\"#ff303e\") , 0.8): \"\""
},
"descPos":"\"top\"",
"descSz":"13",
"editorType":"2dAdv",
"id":123,
"line2Color":{
"type":"custom",
"value":" brighten(gradient(avg(totMem - freeMem),min(totMem - freeMem),\"#30ff6e\",maxMem/2,\"#cab800\",maxMem,\"#ff303e\") , 0.8)"
},
"line2Dash":"10",
"line2Size":"2",
"lineColor":{
"type":"custom",
"value":" brighten(gradient(avg(totMem - freeMem),min(totMem - freeMem),\"#30ff6e\",maxMem/2,\"#cab800\",maxMem,\"#ff303e\") , 0.8)"
},
"lineDash":"10",
"lineSize":"2",
"lineType":"\"vertical\"",
"seriesName":"AvgUsedMemory",
"x2Pos":"now ",
"xPos":"now + (double)(max(now) - min(now))/20",
"y2Pos":"avg(totMem-freeMem)",
"yPos":"avg(totMem-freeMem)"
}
],
"name":"AvgUsedMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
},
{
"amiStyle":{
"grLyrHMajGrdCl":"#ff0000",
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"mainCompare",
"id":86,
"layers":[
{
"desc":"\"Max: \" + formatNumberCompact((totMem-freeMem)/1024.0/1024/1024) + \"/\" + formatNumberCompact((totMem)/1024.0/1024/1024) + \" GB\"",
"descColor":{
"type":"custom",
"value":"totMem-freeMem == max(totMem-freeMem) ? \"#eeeeee\" : \"\""
},
"descPos":"\"topright\"",
"descSz":"12",
"editorType":"2dAdv",
"id":85,
"lineColor":{
"type":"custom",
"value":"\"#30b3ff\""
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#30b3ff\""
},
"mHeight":"2",
"mShape":"\"circle\"",
"mWidth":"2",
"seriesName":"AllocMemory",
"tooltip":"hoverDisplay(\"Allocated Memory\", now, \"Memory\", formatNumber(totMem/1024.0/1024/1024,\"#,### GB\",\"\"))",
"xPos":"now",
"yPos":"totMem"
}
],
"name":"AllocMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"mainCompare",
"id":88,
"layers":[
{
"descColor":{
"type":"custom",
"value":"now == avg(now) ? \"#ff303e\" : \"\" "
},
"descPos":"\"topleft\"",
"descSz":"12",
"editorType":"2dAdv",
"id":87,
"lineColor":{
"type":"custom",
"value":"\"#ff303e\""
},
"lineSize":"2",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#ff303e\""
},
"mHeight":"2",
"mShape":"\"circle\"",
"mWidth":"2",
"seriesName":"MaxMemory",
"tooltip":"\"Max Memory: \"+formatNumber(maxMem/1024.0/1024/1024,\"#,### GB\",\"\")",
"xPos":"now",
"yPos":"maxMem"
}
],
"name":"MaxMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"mainCompare",
"id":33,
"layers":[
{
"descPos":"\"bottomright\"",
"descSz":"13",
"editorType":"2dAdv",
"fillBorderSize":"1",
"fillColor":{
"type":"custom",
"value":"gradient((totMem - freeMem),min(totMem - freeMem),\"#215e21\",0.6*maxMem,\"#8c8c2e\",maxMem,\"#992020\")"
},
"id":32,
"line2Size":"1",
"lineColor":{
"type":"custom",
"value":"\"#30ff6e\""
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#30ff6e\""
},
"mHeight":"2",
"mShape":"\"circle\"",
"mWidth":"2",
"seriesName":"UsedMemory",
"tooltip":"hoverDisplay(\"Used Memory\", now, \"Memory\", formatNumber((totMem - freeMem)/1024.0/1024/1024,\"#,###\",\"\") + \"/\" + formatNumber(totMem/1024.0/1024/1024,\"#,### GB\",\"\") + \"
Usage: \" + formatNumber((totMem*1.0 - freeMem)/totMem,\"###.### %\",\"\"))",
"x2Pos":"now",
"xPos":"now",
"y2Pos":"0",
"yPos":"totMem - freeMem"
}
],
"name":"UsedMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
}
],
"plotId":31,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
}
},
"rowsCount":4,
"titlePnl":{
"title":"memory"
},
"upid":"AmiCenter_amilog1"
}
},
{
"portletBuilderId":"amichartgrid",
"portletConfig":{
"amiPanelId":"AmiCenter_amilog3",
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"amiTitle":"memory",
"axisBcnts":[
1
],
"axisConfig":{
"B_0_0":{
"amiStyle":{
"axNumRotate":-90.0,
"axTitleSz":18.0,
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":3,
"fontStyle":"",
"format":null,
"formatType":3,
"isGroupOrdered":false,
"orientation":"T",
"reverse":false,
"title":"Time"
},
"L_0_0":{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":34,
"fontStyle":"",
"format":"formatNumberCompact(n)",
"formatType":4,
"isGroupOrdered":false,
"orientation":"R",
"reverse":true,
"title":"Msgs Queued"
},
"L_1_0":{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":false,
"autoMinorValue":true,
"axisId":224,
"fontStyle":"",
"format":null,
"formatType":0,
"isGroupOrdered":false,
"minValue":0.0,
"orientation":"R",
"reverse":true,
"title":"Added Msgs/s"
},
"L_2_0":{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":234,
"fontStyle":"",
"format":null,
"formatType":0,
"isGroupOrdered":false,
"orientation":"R",
"reverse":true,
"title":"Msgs Processed"
}
},
"axisLcnts":[
1,
1,
1
],
"axisRcnts":[
0,
0,
0
],
"axisTcnts":[
0
],
"colsCount":1,
"dm":[
{
"dmadn":"messages",
"dmtbid":[
"tPartition"
]
}
],
"mdivs":[
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":81,
"w":0.24
},
{
"p":-1,
"w":1.76
}
],
"p":-1,
"w":1.3037542662116042
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":81,
"w":0.24
},
{
"p":-1,
"w":1.76
}
],
"p":-1,
"w":1.3310580204778157
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":81,
"w":0.24
},
{
"p":-1,
"w":1.76
}
],
"p":-1,
"w":1.2150170648464165
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":81,
"w":0.24
},
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":-1,
"w":1.76
}
],
"p":22,
"w":0.15017064846416384
}
],
"plotConfig":{
"0_0":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"tPartition",
"dmadn":"messages",
"id":37,
"layers":[
{
"descPos":"\"topright\"",
"descSz":"14",
"editorType":"2dAdv",
"id":36,
"line2Color":{
"type":"const",
"value":"\"#6cbcde\""
},
"lineColor":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"name":"name",
"seriesName":"Layer",
"tooltip":"hoverDisplay(name,now,\"Queue size\",formatNumber(queued, \"###,###,###\", \"\"))",
"xPos":"now",
"yPos":"queued"
}
],
"name":"Layer",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":34
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"id":259,
"name":"Legend",
"opac":100,
"ser":[
36
],
"type":"Legend"
}
],
"plotId":35,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
},
"0_1":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"tPartition",
"dmadn":"messages",
"id":227,
"layers":[
{
"editorType":"2dAdv",
"id":226,
"lineColor":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"name":"name",
"seriesName":"Layer",
"tooltip":"hoverDisplay(name,now,\"Added Rate\", formatNumber(dAdded, \"###,###,###/s\", \"\"))",
"xPos":"now",
"yPos":"dAdded"
}
],
"name":"Layer",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":224
}
],
"plotId":225,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
},
"0_2":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"tPartition",
"dmadn":"messages",
"id":1,
"layers":[
{
"editorType":"2dAdv",
"id":246,
"line2Color":{
"type":"custom",
"value":"cycle(__series_num,\"#ff0000\",\"#ff7f00\",\"#00ff00\",\"#007f7f\",\"#007fff\",\"#00007f\",\"#7f00ff\",\"#ff00ff\",\"#3f3f3f\")"
},
"line2Size":"1",
"lineColor":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"name":"name",
"sel":"true",
"seriesName":"Layer",
"tooltip":"hoverDisplay(name, now,\"Messages\", formatNumber(processed, \"###,###,###\", \"\"))",
"xPos":"now",
"yPos":"processed"
}
],
"name":"Layer",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":234
}
],
"plotId":235,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
}
},
"rowsCount":3,
"titlePnl":{
"title":"Chart"
},
"upid":"AmiCenter_amilog3"
}
},
{
"portletBuilderId":"amichartgrid",
"portletConfig":{
"amiPanelId":"AmiCenter_amilog4",
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"amiTitle":"memory",
"axisBcnts":[
1
],
"axisConfig":{
"B_0_0":{
"amiStyle":{
"axNumRotate":-90.0,
"axTitleSz":18.0,
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":3,
"fontStyle":"",
"format":null,
"formatType":3,
"isGroupOrdered":false,
"orientation":"T",
"reverse":false,
"title":"Time"
},
"L_0_0":{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":34,
"fontStyle":"",
"format":"formatNumberCompact(n)",
"formatType":4,
"isGroupOrdered":false,
"orientation":"R",
"reverse":true,
"title":"Msgs Queued"
},
"L_1_0":{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":false,
"autoMinorValue":true,
"axisId":224,
"fontStyle":"",
"format":null,
"formatType":0,
"isGroupOrdered":false,
"minValue":0.0,
"orientation":"R",
"reverse":true,
"title":"Added Msgs/s"
},
"L_2_0":{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":234,
"fontStyle":"",
"format":null,
"formatType":0,
"isGroupOrdered":false,
"orientation":"R",
"reverse":true,
"title":"Msgs Processed"
}
},
"axisLcnts":[
1,
1,
1
],
"axisRcnts":[
0,
0,
0
],
"axisTcnts":[
0
],
"colsCount":1,
"dm":[
{
"dmadn":"messages",
"dmtbid":[
"tPartition"
]
}
],
"mdivs":[
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":81,
"w":0.24
},
{
"p":-1,
"w":1.76
}
],
"p":-1,
"w":1.3037542662116042
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":81,
"w":0.24
},
{
"p":-1,
"w":1.76
}
],
"p":-1,
"w":1.3310580204778157
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":81,
"w":0.24
},
{
"p":-1,
"w":1.76
}
],
"p":-1,
"w":1.2150170648464165
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":81,
"w":0.24
},
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":-1,
"w":1.76
}
],
"p":22,
"w":0.15017064846416384
}
],
"plotConfig":{
"0_0":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"tPartition",
"dmadn":"messages",
"id":37,
"layers":[
{
"descPos":"\"topright\"",
"descSz":"14",
"editorType":"2dAdv",
"id":36,
"line2Color":{
"type":"const",
"value":"\"#6cbcde\""
},
"lineColor":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"name":"name",
"seriesName":"Layer",
"tooltip":"hoverDisplay(name,now,\"Queue size\",formatNumber(queued, \"###,###,###\", \"\"))",
"xPos":"now",
"yPos":"queued"
}
],
"name":"Layer",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":34
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"id":259,
"name":"Legend",
"opac":100,
"ser":[
36
],
"type":"Legend"
}
],
"plotId":35,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
},
"0_1":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"tPartition",
"dmadn":"messages",
"id":227,
"layers":[
{
"editorType":"2dAdv",
"id":226,
"lineColor":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"name":"name",
"seriesName":"Layer",
"tooltip":"hoverDisplay(name,now,\"Added Rate\", formatNumber(dAdded, \"###,###,###/s\", \"\"))",
"xPos":"now",
"yPos":"dAdded"
}
],
"name":"Layer",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":224
}
],
"plotId":225,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
},
"0_2":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"tPartition",
"dmadn":"messages",
"id":1,
"layers":[
{
"editorType":"2dAdv",
"id":246,
"line2Color":{
"type":"custom",
"value":"cycle(__series_num,\"#ff0000\",\"#ff7f00\",\"#00ff00\",\"#007f7f\",\"#007fff\",\"#00007f\",\"#7f00ff\",\"#ff00ff\",\"#3f3f3f\")"
},
"line2Size":"1",
"lineColor":{
"type":"custom",
"value":"getLineColor(__series_num)"
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"getMarkerColor(__series_num)"
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"name":"name",
"sel":"true",
"seriesName":"Layer",
"tooltip":"hoverDisplay(name, now,\"Messages\", formatNumber(processed, \"###,###,###\", \"\"))",
"xPos":"now",
"yPos":"processed"
}
],
"name":"Layer",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":234
}
],
"plotId":235,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
}
},
"rowsCount":3,
"titlePnl":{
"title":"Chart"
},
"upid":"AmiCenter_amilog4"
}
},
{
"portletBuilderId":"amichartgrid",
"portletConfig":{
"amiPanelId":"AmiCenter_amilog6",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"amiTitle":"memory",
"axisBcnts":[
1
],
"axisConfig":{
"B_0_0":{
"amiStyle":{
"axNumRotate":-90.0,
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":3,
"fontStyle":"",
"format":null,
"formatType":3,
"isGroupOrdered":false,
"orientation":"T",
"reverse":false,
"title":""
},
"L_0_0":{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":30,
"fontStyle":"",
"format":"formatNumber(n/1024.0/1024/1024,\"#,### GB\",\"\")",
"formatType":4,
"isGroupOrdered":false,
"orientation":"R",
"reverse":true,
"title":"Memory"
}
},
"axisLcnts":[
1
],
"axisRcnts":[
0
],
"axisTcnts":[
0
],
"colsCount":1,
"dm":[
{
"dmadn":"main",
"dmtbid":[
"Process"
]
}
],
"mdivs":[
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":68,
"w":0.12557710064635272
},
{
"p":-1,
"w":1.8744228993536471
}
],
"p":-1,
"w":1.934782608695652
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":68,
"w":0.12557710064635272
},
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":-1,
"w":1.8744228993536471
}
],
"p":30,
"w":0.06521739130434782
}
],
"plotConfig":{
"0_0":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"lgdMaxHt":80.0,
"pt":"LAYOUT_DEFAULT"
},
"id":89,
"name":"Legend",
"opac":100,
"ser":[
32,
85,
87,
136,
90
],
"type":"Legend"
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"main",
"id":91,
"layers":[
{
"desc":"\"Avg: \" + formatNumberCompact(avg(totMem-freeMem)/1024.0/1024/1024) + \" GB\"",
"descColor":{
"type":"custom",
"value":"now == max(now) ? brighten(gradient(avg(totMem - freeMem),min(totMem - freeMem),\"#30ff6e\",maxMem/2,\"#cab800\",maxMem,\"#ff303e\") , 0.8): \"\""
},
"descPos":"\"top\"",
"descSz":"13",
"editorType":"2dAdv",
"id":90,
"line2Color":{
"type":"custom",
"value":" brighten(gradient(avg(totMem - freeMem),min(totMem - freeMem),\"#30ff6e\",maxMem/2,\"#cab800\",maxMem,\"#ff303e\") , 0.8)"
},
"line2Dash":"10",
"line2Size":"2",
"lineColor":{
"type":"custom",
"value":" brighten(gradient(avg(totMem - freeMem),min(totMem - freeMem),\"#30ff6e\",maxMem/2,\"#cab800\",maxMem,\"#ff303e\") , 0.8)"
},
"lineDash":"10",
"lineSize":"2",
"lineType":"\"vertical\"",
"seriesName":"AvgUsedMemory",
"x2Pos":"now",
"xPos":"now + (double)(max(now) - min(now))/20",
"y2Pos":"avg(totMem - freeMem)",
"yPos":"avg(totMem-freeMem)"
}
],
"name":"AvgUsedMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"main",
"id":86,
"layers":[
{
"desc":"\"Max: \" + formatNumberCompact((totMem-freeMem)/1024.0/1024/1024) + \"/\" + formatNumberCompact((totMem)/1024.0/1024/1024) + \" GB\"",
"descColor":{
"type":"custom",
"value":"now == max(now) ? \"#eeeeee\" : \"\""
},
"descPos":"\"top\"",
"descSz":"13",
"editorType":"2dAdv",
"id":85,
"lineColor":{
"type":"custom",
"value":"\"#30b3ff\""
},
"lineSize":"2",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#30b3ff\""
},
"mHeight":"2",
"mShape":"\"circle\"",
"mWidth":"2",
"seriesName":"AllocMemory",
"tooltip":"hoverDisplay(\"Allocated Memory\", now, \"Memory\", formatNumber(totMem/1024.0/1024/1024,\"#,### GB\",\"\"))",
"xPos":"now",
"yPos":"totMem"
}
],
"name":"AllocMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"main",
"id":33,
"layers":[
{
"descColor":{
"type":"custom",
"value":"now == max(now) ? \"#eeeeee\" : \"\""
},
"descPos":"\"bottomright\"",
"descSz":"13",
"editorType":"2dAdv",
"fillBorderSize":"1",
"fillColor":{
"type":"custom",
"value":"gradient((totMem - freeMem),min(totMem - freeMem),\"#215e21\",maxMem/2,\"#8c8c2e\",maxMem,\"#992020\")"
},
"id":32,
"line2Size":"1",
"lineColor":{
"type":"custom",
"value":"\"#30ff6e\""
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#30ff6e\""
},
"mHeight":"2",
"mShape":"\"circle\"",
"mWidth":"2",
"seriesName":"UsedMemory",
"tooltip":"hoverDisplay(\"Used Memory\", now, \"Memory\", formatNumber((totMem - freeMem)/1024.0/1024/1024,\"#,###\",\"\") + \"/\" + formatNumber(totMem/1024.0/1024/1024,\"#,### GB\",\"\") + \"
Usage: \" + formatNumber((totMem*1.0 - freeMem)/totMem,\"###.### %\",\"\"))",
"x2Pos":"now",
"xPos":"now",
"y2Pos":"0",
"yPos":"totMem - freeMem"
}
],
"name":"UsedMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"main",
"id":88,
"layers":[
{
"desc":"formatNumber(maxMem/1024.0/1024/1024,\"#,### GB\",\"\")",
"descColor":{
"type":"custom",
"value":"now == max(now) ? \"#ff303e\" : \"\" "
},
"descPos":"\"top\"",
"descSz":"13",
"editorType":"2dAdv",
"id":87,
"lineColor":{
"type":"custom",
"value":"\"#ff303e\""
},
"lineSize":"2",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#ff303e\""
},
"mHeight":"2",
"mShape":"\"circle\"",
"mWidth":"2",
"seriesName":"MaxMemory",
"tooltip":"\"Max Memory: \"+formatNumber(maxMem/1024.0/1024/1024,\"#,### GB\",\"\")",
"xPos":"now",
"yPos":"maxMem"
}
],
"name":"MaxMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
}
],
"plotId":31,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
}
},
"rowsCount":1,
"titlePnl":{
"title":"Chart"
},
"upid":"AmiCenter_amilog6"
}
},
{
"portletBuilderId":"amichartgrid",
"portletConfig":{
"amiPanelId":"AmiCenter_amilog7",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"amiTitle":"memory",
"axisBcnts":[
1
],
"axisConfig":{
"B_0_0":{
"amiStyle":{
"axNumRotate":-90.0,
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":3,
"fontStyle":"",
"format":null,
"formatType":3,
"isGroupOrdered":false,
"orientation":"T",
"reverse":false,
"title":""
},
"L_0_0":{
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"autoMajorValue":true,
"autoMaxValue":true,
"autoMinValue":true,
"autoMinorValue":true,
"axisId":30,
"fontStyle":"",
"format":"formatNumber(n/1024.0/1024/1024,\"#,### GB\",\"\")",
"formatType":4,
"isGroupOrdered":false,
"orientation":"R",
"reverse":true,
"title":"Memory"
}
},
"axisLcnts":[
1
],
"axisRcnts":[
0
],
"axisTcnts":[
0
],
"colsCount":1,
"dm":[
{
"dmadn":"mainCompare",
"dmtbid":[
"Process"
]
}
],
"mdivs":[
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":68,
"w":0.12557710064635272
},
{
"p":-1,
"w":1.8744228993536471
}
],
"p":-1,
"w":1.934782608695652
},
{
"mdivs":[
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":68,
"w":0.12557710064635272
},
{
"mdivs":[
{
"p":-1,
"w":1.0
}
],
"p":-1,
"w":1.8744228993536471
}
],
"p":30,
"w":0.06521739130434782
}
],
"plotConfig":{
"0_0":{
"bgColor":"#1d1f31",
"layers":[
{
"amiStyle":{
"lgdMaxHt":80.0,
"pt":"LAYOUT_DEFAULT"
},
"id":89,
"name":"Legend",
"opac":100,
"ser":[
32,
85,
87,
136,
90
],
"type":"Legend"
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"mainCompare",
"id":91,
"layers":[
{
"desc":"\"Avg: \" + formatNumberCompact(avg(totMem-freeMem)/1024.0/1024/1024) + \" GB\"",
"descColor":{
"type":"custom",
"value":"now == max(now) ? brighten(gradient(avg(totMem - freeMem),min(totMem - freeMem),\"#30ff6e\",maxMem/2,\"#cab800\",maxMem,\"#ff303e\") , 0.8): \"\""
},
"descPos":"\"top\"",
"descSz":"13",
"editorType":"2dAdv",
"id":90,
"line2Color":{
"type":"custom",
"value":" brighten(gradient(avg(totMem - freeMem),min(totMem - freeMem),\"#30ff6e\",maxMem/2,\"#cab800\",maxMem,\"#ff303e\") , 0.8)"
},
"line2Dash":"10",
"line2Size":"2",
"lineColor":{
"type":"custom",
"value":" brighten(gradient(avg(totMem - freeMem),min(totMem - freeMem),\"#30ff6e\",maxMem/2,\"#cab800\",maxMem,\"#ff303e\") , 0.8)"
},
"lineDash":"10",
"lineSize":"2",
"lineType":"\"vertical\"",
"seriesName":"AvgUsedMemory",
"x2Pos":"now",
"xPos":"now+ (double)(max(now) - min(now))/20",
"y2Pos":"avg(totMem - freeMem)",
"yPos":"avg(totMem-freeMem)"
}
],
"name":"AvgUsedMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"mainCompare",
"id":86,
"layers":[
{
"desc":"\"Max: \" + formatNumberCompact((totMem-freeMem)/1024.0/1024/1024) + \"/\" + formatNumberCompact((totMem)/1024.0/1024/1024) + \" GB\"",
"descColor":{
"type":"custom",
"value":"now == max(now) ? \"#eeeeee\" : \"\""
},
"descPos":"\"top\"",
"descSz":"13",
"editorType":"2dAdv",
"id":85,
"lineColor":{
"type":"custom",
"value":"\"#30b3ff\""
},
"lineSize":"2",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#30b3ff\""
},
"mHeight":"2",
"mShape":"\"circle\"",
"mWidth":"2",
"seriesName":"AllocMemory",
"tooltip":"hoverDisplay(\"Allocated Memory\", now, \"Memory\", formatNumber(totMem/1024.0/1024/1024,\"#,### GB\",\"\"))",
"xPos":"now",
"yPos":"totMem"
}
],
"name":"AllocMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"mainCompare",
"id":33,
"layers":[
{
"descColor":{
"type":"custom",
"value":"now == max(now) ? \"#eeeeee\" : \"\""
},
"descPos":"\"bottomright\"",
"descSz":"13",
"editorType":"2dAdv",
"fillBorderSize":"1",
"fillColor":{
"type":"custom",
"value":"gradient((totMem - freeMem),min(totMem - freeMem),\"#215e21\",maxMem/2,\"#8c8c2e\",maxMem,\"#992020\")"
},
"id":32,
"line2Size":"1",
"lineColor":{
"type":"custom",
"value":"\"#30ff6e\""
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#30ff6e\""
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"seriesName":"UsedMemory",
"tooltip":"hoverDisplay(\"Used Memory\", now, \"Memory\", formatNumber((totMem - freeMem)/1024.0/1024/1024,\"#,###\",\"\") + \"/\" + formatNumber(totMem/1024.0/1024/1024,\"#,### GB\",\"\") + \"
Usage: \" + formatNumber((totMem*1.0 - freeMem)/totMem,\"###.### %\",\"\"))",
"x2Pos":"now",
"xPos":"now",
"y2Pos":"0",
"yPos":"totMem - freeMem"
}
],
"name":"UsedMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
},
{
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"dmTableName":"Process",
"dmadn":"mainCompare",
"id":88,
"layers":[
{
"desc":"formatNumber(maxMem/1024.0/1024/1024,\"#,### GB\",\"\")",
"descColor":{
"type":"custom",
"value":"now == max(now) ? \"#ff303e\" : \"\" "
},
"descPos":"\"top\"",
"descSz":"13",
"editorType":"2dAdv",
"id":87,
"lineColor":{
"type":"custom",
"value":"\"#ff303e\""
},
"lineSize":"1",
"lineType":"\"vertical\"",
"mColor":{
"type":"custom",
"value":"\"#ff303e\""
},
"mHeight":"3",
"mShape":"\"circle\"",
"mWidth":"3",
"seriesName":"MaxMemory",
"tooltip":"\"Max Memory: \"+formatNumber(maxMem/1024.0/1024/1024,\"#,### GB\",\"\")",
"xPos":"now",
"yPos":"maxMem"
}
],
"name":"MaxMemory",
"opac":100,
"type":"Chart",
"xAxisId":3,
"yAxisId":30
}
],
"plotId":31,
"selBoxBorderColor":"#404040ef",
"selBoxFillColor":"#40404007",
"selColor":"#bacbfb6e"
}
},
"rowsCount":1,
"titlePnl":{
"title":"Chart"
},
"upid":"AmiCenter_amilog7"
}
},
{
"portletBuilderId":"amiform",
"portletConfig":{
"amiPanelId":"DisplayHtml",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"fields":[
{
"disabled":true,
"dme":"\"Original\"",
"hCenterOffsetPct":-0.23131672597864766,
"heightPx":16,
"l":"Original",
"leftPosPct":0.26868327402135234,
"leftPosPx":-45,
"n":"button",
"style":{
"fldBgCl":"#01031c",
"fldFontCl":"#6cbcde",
"fldFontSz":16.0,
"pt":"LAYOUT_DEFAULT"
},
"t":"buttonField",
"topPosPx":55,
"widthPx":90,
"zidx":13
},
{
"disabled":true,
"dme":"\"Comparison\"",
"hCenterOffsetPct":0.22,
"heightPx":20,
"l":"Comparison",
"leftPosPct":0.72,
"leftPosPx":-44,
"n":"button1",
"style":{
"fldBgCl":"#01031c",
"fldFontCl":"#6cbcde",
"fldFontSz":16.0,
"fldLblStatus":false,
"pt":"LAYOUT_DEFAULT"
},
"t":"buttonField",
"topPosPx":55,
"widthPx":89,
"zidx":11
},
{
"disabled":true,
"heightPx":20,
"l":"File Info",
"leftPosPct":0.06,
"n":"div",
"rightPosPct":0.05867970660146692,
"style":{
"fldBgCl":"#01031c",
"fldFontSz":20.0,
"pt":"LAYOUT_DEFAULT"
},
"t":"buttonField",
"topPosPx":0,
"zidx":12
},
{
"dmid":"main",
"dmtbid":"summary",
"dsrt":"asc",
"dsvid":"start",
"heightPx":25,
"l":"Duration",
"leftPosPct":0.05338078291814947,
"n":"durDisp",
"rightPosPct":0.52,
"soi":true,
"style":{
"fldLblSide":"top",
"pt":"LAYOUT_DEFAULT"
},
"t":"textField",
"topPosPx":260,
"zidx":8
},
{
"disabled":true,
"dmid":"main",
"dmtbid":"summary",
"dsrt":"asc",
"dsvid":"start",
"heightPx":25,
"l":"Duration",
"leftPosPct":0.52,
"n":"durDisp2",
"rightPosPct":0.06,
"soi":true,
"style":{
"fldLblSide":"top",
"pt":"LAYOUT_DEFAULT"
},
"t":"textField",
"topPosPx":260,
"zidx":6
},
{
"dmid":"main",
"dmtbid":"summary",
"dsrt":"asc",
"dsvid":"start",
"heightPx":25,
"l":"End Time",
"leftPosPct":0.05693950177935943,
"n":"endDisp",
"rightPosPct":0.52,
"soi":true,
"style":{
"fldLblSide":"top",
"pt":"LAYOUT_DEFAULT"
},
"t":"textField",
"topPosPx":207,
"zidx":1
},
{
"disabled":true,
"dmid":"main",
"dmtbid":"summary",
"dsrt":"asc",
"dsvid":"start",
"heightPx":28,
"l":"End Time",
"leftPosPct":0.5185185185185185,
"n":"endDisp2",
"rightPosPct":0.05982905982905984,
"soi":true,
"style":{
"fldLblSide":"top",
"pt":"LAYOUT_DEFAULT"
},
"t":"textField",
"topPosPx":207,
"zidx":5
},
{
"disabled":true,
"dmid":"main",
"dmtbid":"summary",
"dsrt":"asc",
"dsvid":"start",
"heightPx":25,
"l":"Num Entries",
"leftPosPct":0.05693950177935943,
"n":"entriesDisp",
"rightPosPct":0.52,
"soi":true,
"style":{
"fldLblSide":"top",
"pt":"LAYOUT_DEFAULT"
},
"t":"textField",
"topPosPx":313,
"zidx":3
},
{
"disabled":true,
"dmid":"main",
"dmtbid":"summary",
"dsrt":"asc",
"dsvid":"start",
"heightPx":25,
"l":"Num Entries",
"leftPosPct":0.52,
"n":"entriesDisp2",
"rightPosPct":0.06,
"soi":true,
"style":{
"fldLblSide":"top",
"pt":"LAYOUT_DEFAULT"
},
"t":"textField",
"topPosPx":313,
"zidx":7
},
{
"disabled":true,
"dmid":"main",
"dmtbid":"summary",
"dsrt":"asc",
"dsvid":"start",
"heightPx":25,
"l":"File Name",
"leftPosPct":0.05734767025089606,
"n":"nameDisp",
"rightPosPct":0.52,
"soi":true,
"style":{
"fldLblSide":"top",
"pt":"LAYOUT_DEFAULT"
},
"t":"textField",
"topPosPx":101,
"zidx":9
},
{
"disabled":true,
"dmid":"main",
"dmtbid":"summary",
"dsrt":"asc",
"dsvid":"start",
"heightPx":25,
"l":"File Name",
"leftPosPct":0.52,
"n":"nameDisp2",
"rightPosPct":0.06,
"soi":true,
"style":{
"fldLblSide":"top",
"pt":"LAYOUT_DEFAULT"
},
"t":"textField",
"topPosPx":101,
"zidx":10
},
{
"disabled":true,
"heightPx":20,
"l":"",
"leftPosPct":0.0,
"n":"overlapDisplay",
"rightPosPct":0.0,
"style":{
"fldBgCl":"#01031c",
"fldFontCl":"#eeeeee",
"fldLblStatus":false,
"pt":"LAYOUT_DEFAULT"
},
"t":"buttonField",
"topPosPx":26,
"zidx":14
},
{
"dmid":"main",
"dmtbid":"summary",
"dsrt":"asc",
"dsvid":"start",
"heightPx":25,
"l":"Start Time",
"leftPosPct":0.05693950177935943,
"n":"startDisp",
"rightPosPct":0.52,
"soi":true,
"style":{
"fldLblSide":"top",
"pt":"LAYOUT_DEFAULT"
},
"t":"textField",
"topPosPx":154,
"zidx":2
},
{
"disabled":true,
"dmid":"main",
"dmtbid":"summary",
"dsrt":"asc",
"dsvid":"start",
"heightPx":25,
"l":"Start Time",
"leftPosPct":0.52,
"n":"startDisp2",
"rightPosPct":0.06,
"soi":true,
"style":{
"fldLblSide":"top",
"pt":"LAYOUT_DEFAULT"
},
"t":"textField",
"topPosPx":154,
"zidx":4
}
],
"upid":"DisplayHtml"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div1",
"amiStyle":{
"divSz":6.0,
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div12",
"child2":"Div16",
"dir":"v",
"locked":false,
"offset":1.0,
"upid":"Div15"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div10",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main7",
"child2":"main8",
"dir":"h",
"locked":false,
"offset":0.69908,
"upid":"Div9"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div11",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main9",
"child2":"webDetails",
"dir":"h",
"locked":false,
"offset":0.7686,
"upid":"Div9"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div12",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main29",
"child2":"main12",
"dir":"h",
"locked":false,
"offset":0.77658,
"upid":"Div16"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div13",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div39",
"child2":"AmiCenter_amilog4",
"dir":"h",
"locked":false,
"offset":0.17089,
"upid":"Div10"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div14",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"AmiCenter_amilog7",
"child2":"main2",
"dir":"h",
"locked":false,
"offset":0.7546,
"upid":"Div12"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div15",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div44",
"child2":"threadsChart1",
"dir":"h",
"locked":false,
"offset":0.11365,
"upid":"Div14"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div16",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main38",
"child2":"main13",
"dir":"h",
"locked":false,
"offset":0.77658,
"upid":"Div17"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div17",
"amiStyle":{
"divSz":6.0,
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div3",
"child2":"Div28",
"dir":"v",
"locked":false,
"offset":1.0,
"upid":"Div30"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div18",
"amiStyle":{
"divSz":6.0,
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div11",
"child2":"Div29",
"dir":"v",
"locked":false,
"offset":1.0,
"upid":"Div31"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div19",
"amiStyle":{
"divCl":"#353747",
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div20",
"child2":"main20",
"dir":"h",
"locked":false,
"offset":0.14145,
"upid":"Div19"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div2",
"amiStyle":{
"divSz":6.0,
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div41",
"child2":"Div46",
"dir":"v",
"locked":false,
"offset":1.0,
"upid":"Div18"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div20",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main30",
"child2":"timerBlender5",
"dir":"v",
"locked":false,
"offset":0.55627,
"upid":"Div20"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div21",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div22",
"child2":"main16",
"dir":"h",
"locked":false,
"offset":0.14145,
"upid":"Div21"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div22",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main33",
"child2":"procBlender",
"dir":"v",
"locked":false,
"offset":0.56733,
"upid":"Div22"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div23",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div24",
"child2":"main18",
"dir":"h",
"locked":false,
"offset":0.14063,
"upid":"Div23"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div24",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main34",
"child2":"procBlender1",
"dir":"v",
"locked":false,
"offset":0.58302,
"upid":"Div24"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div25",
"amiStyle":{
"divSz":6.0,
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div21",
"child2":"Div27",
"dir":"v",
"locked":false,
"offset":0.99778,
"upid":"Div25"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div26",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main36",
"child2":"procBlender2",
"dir":"v",
"locked":false,
"offset":0.56733,
"upid":"Div27"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div27",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div26",
"child2":"main17",
"dir":"h",
"locked":false,
"offset":0.14145,
"upid":"Div26"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div28",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div47",
"child2":"main24",
"dir":"h",
"locked":false,
"offset":0.15074,
"upid":"Div28"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div29",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main11",
"child2":"webDetails1",
"dir":"h",
"locked":false,
"offset":0.7686,
"upid":"Div29"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div3",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div43",
"child2":"main21",
"dir":"h",
"locked":false,
"offset":0.15074,
"upid":"Div3"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div30",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main35",
"child2":"timerBlender6",
"dir":"v",
"locked":false,
"offset":0.55627,
"upid":"Div33"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div31",
"amiStyle":{
"divCl":"#353747",
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div30",
"child2":"main22",
"dir":"h",
"locked":false,
"offset":0.14145,
"upid":"Div32"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div32",
"amiStyle":{
"divSz":6.0,
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div19",
"child2":"Div31",
"dir":"v",
"locked":false,
"offset":1.0,
"upid":"Div34"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div33",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main37",
"child2":"procBlender3",
"dir":"v",
"locked":false,
"offset":0.58302,
"upid":"Div36"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div34",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div33",
"child2":"main19",
"dir":"h",
"locked":false,
"offset":0.14063,
"upid":"Div35"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div35",
"amiStyle":{
"divSz":6.0,
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div23",
"child2":"Div34",
"dir":"v",
"locked":false,
"offset":0.99778,
"upid":"Div37"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div38",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main31",
"child2":"messages",
"dir":"v",
"locked":false,
"offset":0.39567,
"upid":"Div40"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div39",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main32",
"child2":"messages1",
"dir":"v",
"locked":false,
"offset":0.39567,
"upid":"Div41"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div4",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div40",
"child2":"threadsChart",
"dir":"h",
"locked":false,
"offset":0.11365,
"upid":"Div4"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div40",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"threads",
"child2":"threadsTable",
"dir":"v",
"locked":false,
"offset":0.33487,
"upid":"Div42"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div41",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div42",
"child2":"eventsChart",
"dir":"h",
"locked":false,
"offset":0.15412,
"upid":"Div43"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div42",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"eventsStats",
"child2":"eventsTable",
"dir":"v",
"locked":false,
"offset":0.38099,
"upid":"Div44"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div43",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main",
"child2":"main4",
"dir":"v",
"locked":false,
"offset":0.5,
"upid":"Div45"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div44",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"threadsComp",
"child2":"threadsTable1",
"dir":"v",
"locked":false,
"offset":0.33579,
"upid":"Div46"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div45",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"eventsStats1",
"child2":"eventsTable1",
"dir":"v",
"locked":false,
"offset":0.38099,
"upid":"Div48"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div46",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div45",
"child2":"eventsChart1",
"dir":"h",
"locked":false,
"offset":0.15412,
"upid":"Div47"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div47",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main3",
"child2":"main10",
"dir":"v",
"locked":false,
"offset":0.5,
"upid":"Div49"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div5",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div38",
"child2":"AmiCenter_amilog3",
"dir":"h",
"locked":false,
"offset":0.17089,
"upid":"Div5"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div6",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"AmiCenter_amilog6",
"child2":"main1",
"dir":"h",
"locked":false,
"offset":0.7546,
"upid":"Div6"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div7",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div8",
"child2":"Tabs1",
"dir":"v",
"locked":false,
"offset":0.12395,
"upid":"Div7"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div8",
"amiStyle":{
"pt":"LAYOUT_DEFAULT2"
},
"child1":"SystemControls1",
"child2":"DisplayHtml",
"dir":"h",
"locked":true,
"offset":0.63149,
"upid":"Div8"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"Div9",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"child1":"main6",
"child2":"main5",
"dir":"h",
"locked":false,
"offset":0.69908,
"upid":"Div9"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"MemoryDiv",
"amiStyle":{
"divSz":6.0,
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div6",
"child2":"Div14",
"dir":"v",
"locked":false,
"offset":0.99778,
"upid":"Div11"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"MsgDiv",
"amiStyle":{
"divSz":6.0,
"pt":"LAYOUT_DEFAULT"
},
"child1":"Div5",
"child2":"Div13",
"dir":"v",
"locked":false,
"offset":0.99816,
"upid":"Div2"
}
},
{
"portletBuilderId":"div",
"portletConfig":{
"amiPanelId":"OverviewDiv",
"amiStyle":{
"divSz":6.0,
"pt":"LAYOUT_DEFAULT"
},
"child1":"AmiCenter_amilog",
"child2":"AmiCenter_amilog1",
"dir":"v",
"locked":true,
"offset":0.99816,
"upid":"Div1"
}
},
{
"portletBuilderId":"amiform",
"portletConfig":{
"amiPanelId":"SystemControls1",
"amiStyle":{
"pt":"LAYOUT_DEFAULT"
},
"fields":[
{
"callbacks":{
"entries":[
{
"amiscript":[
"String curLabel = this.getValue();\n",
"Boolean isAdd = curLabel.startsWith(\"Add\", true);\n",
"DividerPanel curDiv;\n",
"\n",
"for(Tab t : Tabs1.getChildren()){\n",
" curDiv = t.getInnerPanel();\n",
" if(isAdd){\n",
" curDiv.setDividerOffsetPct(0.5);\n",
" session.log(curDiv.getStyleSet().setValue(\"divDivCl\", \"6cbcde\"));\n",
" } else {\n",
" curDiv.setDividerOffsetPct(1.0);\n",
" session.log(curDiv.getStyleSet().setValue(\"divDivCl\", \"1d1f31\"));\n",
" }\n",
"}\n",
"\n",
"if(isAdd){\n",
" this.setValue(\"Remove Comparison\");\n",
" LtCbutton.setVisible(true);\n",
" UtCbutton.setVisible(true);\n",
" button1.setVisible(true);\n",
" durDisp2.setVisible(true);\n",
" endDisp2.setVisible(true);\n",
" entriesDisp2.setVisible(true);\n",
" nameDisp2.setVisible(true);\n",
" startDisp2.setVisible(true);\n",
" rangeComp.setVisible(true);\n",
" startComp.setVisible(true);\n",
" endComp.setVisible(true);\n",
" overlapDisplay.setVisible(true);\n",
" if(overlapDisplay.getValue() != \"\" && strIndexOf((String)(overlapDisplay.getValue()), \" no\") == -1){\n",
" syncOrig.setVisible(true);\n",
" syncComp.setVisible(true);\n",
" }\n",
" \n",
"} else{\n",
" this.setValue(\"Add Comparison\");\n",
" LtCbutton.setVisible(false);\n",
" UtCbutton.setVisible(false);\n",
" button1.setVisible(false);\n",
" durDisp2.setVisible(false);\n",
" endDisp2.setVisible(false);\n",
" entriesDisp2.setVisible(false);\n",
" nameDisp2.setVisible(false);\n",
" startDisp2.setVisible(false);\n",
" rangeComp.setVisible(false);\n",
" startComp.setVisible(false);\n",
" endComp.setVisible(false);\n",
" overlapDisplay.setVisible(false);\n",
" syncOrig.setVisible(false);\n",
" syncComp.setVisible(false);\n",
"}\n",
"\n",
"\n"
],
"linkedVariables":[
{
"ari":"FIELD:SystemControls1?LtCbutton",
"varName":"LtCbutton"
},
{
"ari":"PANEL:Tabs1",
"varName":"Tabs1"
},
{
"ari":"FIELD:SystemControls1?UtCbutton",
"varName":"UtCbutton"
},
{
"ari":"FIELD:DisplayHtml?button1",
"varName":"button1"
},
{
"ari":"FIELD:DisplayHtml?durDisp2",
"varName":"durDisp2"
},
{
"ari":"FIELD:SystemControls1?endComp",
"varName":"endComp"
},
{
"ari":"FIELD:DisplayHtml?endDisp2",
"varName":"endDisp2"
},
{
"ari":"FIELD:DisplayHtml?entriesDisp2",
"varName":"entriesDisp2"
},
{
"ari":"FIELD:DisplayHtml?nameDisp",
"varName":"nameDisp"
},
{
"ari":"FIELD:DisplayHtml?nameDisp2",
"varName":"nameDisp2"
},
{
"ari":"FIELD:DisplayHtml?overlapDisplay",
"varName":"overlapDisplay"
},
{
"ari":"FIELD:SystemControls1?rangeComp",
"varName":"rangeComp"
},
{
"ari":"FIELD:SystemControls1?startComp",
"varName":"startComp"
},
{
"ari":"FIELD:DisplayHtml?startDisp2",
"varName":"startDisp2"
},
{
"ari":"FIELD:SystemControls1?syncComp",
"varName":"syncComp"
},
{
"ari":"FIELD:SystemControls1?syncButton",
"varName":"syncOrig"
}
],
"name":"onChange"
}
]
},
"dme":"\"Add Comparison\"",
"heightPx":20,
"l":"Add Comparison",
"leftPosPct":0.06,
"n":"AddComp",
"rightPosPct":0.06,
"style":{
"fldBgCl":"#6cbcde",
"fldFontCl":"#01031c",
"pt":"LAYOUT_DEFAULT"
},
"t":"buttonField",
"topPosPx":300,
"zidx":14
},
{
"callbacks":{
"entries":[
{
"amiscript":"mainCompareSource.processSync(new Map(\"WHERE\", \"true\", \"fromUpload\", false));",
"limit":-1,
"linkedVariables":[
{
"ari":"DATAMODEL:mainCompareSource",
"varName":"mainCompareSource"
}
],
"name":"onChange"
}
]
},
"heightPx":20,
"l":"Load to Compare",
"leftPosPct":0.35106382978723405,
"n":"LtCbutton",
"rightPosPct":0.057446808510638325,
"style":{
"pt":"LAYOUT_DEFAULT"
},
"t":"buttonField",
"topPosPx":217,
"zidx":18
},
{
"callbacks":{
"entries":[
{
"amiscript":"mainCompareSource.processSync(new Map(\"WHERE\", \"true\", \"fromUpload\", true));\n",
"limit":-1,
"linkedVariables":[
{
"ari":"DATAMODEL:mainCompare",
"varName":"mainCompare"
},
{
"ari":"DATAMODEL:mainCompareSource",
"varName":"mainCompareSource"
}
],
"name":"onChange"
}
]
},
"heightPx":22,
"l":"Upload to Compare",
"leftPosPct":0.3504273504273504,
"n":"UtCbutton",
"rightPosPct":0.06,
"style":{
"pt":"LAYOUT_DEFAULT"
},
"t":"buttonField",
"topPosPx":141,
"zidx":15
},
{
"callbacks":{
"entries":[
{
"amiscript":"mainSource.processSync(new Map(\"WHERE\", \"true\", \"fromUpload\", false));",
"limit":-1,
"linkedVariables":[
{
"ari":"DATAMODEL:mainSource",
"varName":"mainSource"
}
],
"name":"onChange"
}
]
},
"heightPx":20,
"l":"Load",
"leftPosPct":0.06,
"n":"button",
"rightPosPct":0.66,
"style":{
"pt":"LAYOUT_DEFAULT2"
},
"t":"buttonField",
"topPosPx":217,
"zidx":8
},
{
"disabled":true,
"heightPx":2,
"hide":true,
"l":"",
"leftPosPx":84,
"n":"div",
"style":{
"fldBorderWd":0.0,
"fldFontCl":"#bbc1cc",
"pt":"LAYOUT_DEFAULT"
},
"t":"divField",
"template":"
Drag & Drop files here or click to upload
\n