|
|
|
@ -3,7 +3,7 @@ var monitor = {}
|
|
|
|
|
monitor.processes = {}
|
|
|
|
|
monitor.processes.fetch = function(){
|
|
|
|
|
var httpclient = HttpClient.instance()
|
|
|
|
|
httpclient.get('/get/processes',monitor.processes.init);
|
|
|
|
|
httpclient.get(HTTP_CONTEXT+'/get/processes',monitor.processes.init);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -105,7 +105,7 @@ monitor.processes.render = function(label,data) {
|
|
|
|
|
monitor.processes.trend = {}
|
|
|
|
|
monitor.processes.trend.init = function (label,app) {
|
|
|
|
|
var httpclient = HttpClient.instance()
|
|
|
|
|
var uri = '/trends?id='+label+'&app='+encodeURIComponent(app)
|
|
|
|
|
var uri = HTTP_CONTEXT+'/trends?id='+label+'&app='+encodeURIComponent(app)
|
|
|
|
|
httpclient.get(uri, function (x) {
|
|
|
|
|
var logs = JSON.parse(x.responseText)
|
|
|
|
|
var dom = jx.dom.get.instance('trend_info');
|
|
|
|
@ -282,7 +282,7 @@ monitor.sandbox = {}
|
|
|
|
|
monitor.sandbox.init = function () {
|
|
|
|
|
jx.dom.hide('inspect_sandbox')
|
|
|
|
|
var httpclient = HttpClient.instance()
|
|
|
|
|
httpclient.get('/sandbox', function (x) {
|
|
|
|
|
httpclient.get(HTTP_CONTEXT+'/sandbox', function (x) {
|
|
|
|
|
|
|
|
|
|
var r = JSON.parse(x.responseText)
|
|
|
|
|
|
|
|
|
@ -335,7 +335,7 @@ monitor.sandbox.render = function (logs) {
|
|
|
|
|
dom.name = 'missing'
|
|
|
|
|
dom.value = JSON.stringify(item.missing)
|
|
|
|
|
|
|
|
|
|
form.action = '/download'
|
|
|
|
|
form.action = HTTP_CONTEXT+'/download'
|
|
|
|
|
form.method = 'POST'
|
|
|
|
|
form.appendChild(dom)
|
|
|
|
|
form.submit()
|
|
|
|
@ -358,7 +358,7 @@ monitor.sandbox.render = function (logs) {
|
|
|
|
|
monitor.folders = {}
|
|
|
|
|
monitor.folders.init = function () {
|
|
|
|
|
var httpclient = HttpClient.instance()
|
|
|
|
|
httpclient.get('/folders', function (x) {
|
|
|
|
|
httpclient.get(HTTP_CONTEXT+'/folders', function (x) {
|
|
|
|
|
var r = JSON.parse(x.responseText)
|
|
|
|
|
var data = []
|
|
|
|
|
for (var id in r) {
|
|
|
|
|