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