]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/lxc/Summary.js
1 Ext
.define('PVE.lxc.Summary', {
2 extend
: 'Ext.panel.Panel',
3 alias
: 'widget.pveLxcSummary',
5 tbar
: [ '->' , { xtype
: 'pveRRDTypeSelector' } ],
7 bodyStyle
: 'padding:10px',
9 style
: {'padding-top':'10px'},
13 initComponent: function() {
16 var nodename
= me
.pveSelNode
.data
.node
;
18 throw "no node name specified";
21 var vmid
= me
.pveSelNode
.data
.vmid
;
23 throw "no VM ID specified";
27 throw "no workspace specified";
30 if (!me
.statusStore
) {
31 throw "no status storage specified";
34 var rstore
= me
.statusStore
;
36 var statusview
= Ext
.create('PVE.lxc.StatusView', {
37 title
: gettext('Status'),
38 pveSelNode
: me
.pveSelNode
,
43 var notesview
= Ext
.create('PVE.panel.NotesView', {
44 pveSelNode
: me
.pveSelNode
,
48 var rrdstore
= Ext
.create('PVE.data.RRDStore', {
49 rrdurl
: "/api2/json/nodes/" + nodename
+ "/lxc/" + vmid
+ "/rrddata"
57 style
: {'padding-top': '0px' },
63 items
: [ statusview
, notesview
]
67 title
: gettext('CPU usage'),
68 pveSelNode
: me
.pveSelNode
,
70 fieldTitles
: [gettext('CPU usage')],
75 title
: gettext('Memory usage'),
76 pveSelNode
: me
.pveSelNode
,
77 fields
: ['maxmem', 'mem'],
78 fieldTitles
: [gettext('Total'), gettext('RAM usage')],
83 title
: gettext('Network traffic'),
84 pveSelNode
: me
.pveSelNode
,
85 fields
: ['netin','netout'],
90 title
: gettext('Disk IO'),
91 pveSelNode
: me
.pveSelNode
,
92 fields
: ['diskread','diskwrite'],
98 activate: function() { notesview
.load(); rrdstore
.startUpdate(); },
99 hide
: rrdstore
.stopUpdate
,
100 destroy
: rrdstore
.stopUpdate