]> git.proxmox.com Git - pmg-gui.git/blame - js/RBLStatistics.js
BackupRestore.js - add timestamp column
[pmg-gui.git] / js / RBLStatistics.js
CommitLineData
a32c09e6
DM
1Ext.define('PMG.RBLStatistics', {
2 extend: 'Ext.panel.Panel',
3 xtype: 'pmgRBLStatistics',
4
5 scrollable: true,
50531ef9 6 border: false,
a32c09e6
DM
7
8 bodyPadding: '10 0 10 10',
9
10 title: gettext('Statistics') + ': ' + gettext('RBL rejects'),
11
12 tbar: [ { xtype: 'pmgStatTimeSelector' } ],
13
14 items: [
15 {
16 title: gettext('RBL rejects'),
17 xtype: 'proxmoxRRDChart',
18 legend: false,
19 fields: [ 'count' ],
20 fieldTitles: [
771bd0b9 21 gettext('RBL rejects')
a32c09e6
DM
22 ],
23 store: {
24 type: 'pmgStatStore',
25 includeTimeSpan: true,
26 staturl: "/api2/json/statistics/rblcount",
27 fields: [
28 { type: 'integer', name: 'count' },
29 { type: 'date', dateFormat: 'timestamp', name: 'time' }
30 ]
31 }
32 }
33 ]
34});