|
|
|
@ -50,8 +50,9 @@ monitor.processes.render = function(label,data) {
|
|
|
|
|
})
|
|
|
|
|
jx.dom.set.value('latest_processes','') ;
|
|
|
|
|
jx.dom.set.value('latest_processes_label',label)
|
|
|
|
|
var options = {width:$('#latest_processes').width(),height:$('#latest_processes').height()-2}
|
|
|
|
|
|
|
|
|
|
var options = {width:$('#latest_processes').width()}
|
|
|
|
|
options.pageSize = 10
|
|
|
|
|
options.pageIndex = 1
|
|
|
|
|
options.data = data
|
|
|
|
|
options.rowClass = function (item, index,evt) {
|
|
|
|
|
|
|
|
|
@ -185,18 +186,21 @@ monitor.processes.summary.init = function(logs){
|
|
|
|
|
|
|
|
|
|
jx.dom.set.value('summary_chart','')
|
|
|
|
|
jx.dom.append('summary_chart',context)
|
|
|
|
|
var options = {}
|
|
|
|
|
options.type = 'doughnut'
|
|
|
|
|
options.data = data
|
|
|
|
|
var conf = {width:50,height:50}
|
|
|
|
|
|
|
|
|
|
var chart = new Chart(context,options)
|
|
|
|
|
conf.type = 'doughnut'
|
|
|
|
|
conf.data = data
|
|
|
|
|
conf.options = {legend:{ position:'right'}}
|
|
|
|
|
var chart = new Chart(context,conf)
|
|
|
|
|
|
|
|
|
|
jx.dom.set.value('summary_ranking','')
|
|
|
|
|
context = jx.dom.get.instance('CANVAS')
|
|
|
|
|
jx.dom.append('summary_ranking',context)
|
|
|
|
|
conf = {type:'bar',responsive:true}
|
|
|
|
|
|
|
|
|
|
conf.options={scales:{xAxes:[{gridLines: {display:false}}],yAxes:[{gridLines: {display:false}}] }}
|
|
|
|
|
conf.options={scales:{xAxes:[{gridLines: {display:false}}],yAxes:[{gridLines: {display:false},scaleLabel:{display:true,labelString:'PROCESS COUNTS'} }] }}
|
|
|
|
|
conf.options.legend ={position:'right'}
|
|
|
|
|
|
|
|
|
|
conf.data = {labels:['Running','Idle','Crash']}
|
|
|
|
|
var labels = jx.utils.keys(series)
|
|
|
|
|
|
|
|
|
|