]>
Commit | Line | Data |
---|---|---|
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('Postscreen'), | |
11 | ||
12 | tbar: [ { xtype: 'pmgStatTimeSelector' } ], | |
13 | ||
14 | items: [ | |
15 | { | |
16 | title: gettext('Rejects'), | |
17 | xtype: 'proxmoxRRDChart', | |
18 | fields: [ 'rbl_rejects', 'pregreet_rejects'], | |
19 | fieldTitles: ['RBL', 'PREGREET'], | |
20 | store: { | |
21 | type: 'pmgStatStore', | |
22 | includeTimeSpan: true, | |
23 | staturl: "/api2/json/statistics/rejectcount", | |
24 | fields: [ | |
25 | { type: 'integer', name: 'rbl_rejects' }, | |
26 | { type: 'integer', name: 'pregreet_rejects' }, | |
27 | { type: 'date', dateFormat: 'timestamp', name: 'time' } | |
28 | ] | |
29 | } | |
30 | } | |
31 | ] | |
32 | }); |