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