]> git.proxmox.com Git - pmg-gui.git/blame - js/RBLStatistics.js
fix color coding mistake for one context menu
[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
d6a00b29 10 title: gettext('Statistics') + ': ' + gettext('Postscreen'),
a32c09e6 11
c87d46fb 12 tbar: [{ xtype: 'pmgStatTimeSelector' }],
a32c09e6
DM
13
14 items: [
15 {
d6a00b29 16 title: gettext('Rejects'),
a32c09e6 17 xtype: 'proxmoxRRDChart',
c87d46fb 18 fields: ['rbl_rejects', 'pregreet_rejects'],
d6a00b29 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' },
c87d46fb
TL
27 { type: 'date', dateFormat: 'timestamp', name: 'time' },
28 ],
29 },
30 },
31 ],
a32c09e6 32});