]> git.proxmox.com Git - pmg-gui.git/blob - js/RBLStatistics.js
f6939c5311b5a973b0afc51b81370a8b3b7841fc
[pmg-gui.git] / js / RBLStatistics.js
1 Ext.define('PMG.RBLStatistics', {
2 extend: 'Ext.panel.Panel',
3 xtype: 'pmgRBLStatistics',
4
5 scrollable: true,
6 border: false,
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: [
21 gettext('RBL rejects')
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 });