mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-04-28 16:21:12 +00:00
33 lines
767 B
JavaScript
33 lines
767 B
JavaScript
Ext.define('PMG.RBLStatistics', {
|
|
extend: 'Ext.panel.Panel',
|
|
xtype: 'pmgRBLStatistics',
|
|
|
|
scrollable: true,
|
|
border: false,
|
|
|
|
bodyPadding: '10 0 10 10',
|
|
|
|
title: gettext('Statistics') + ': ' + gettext('Postscreen'),
|
|
|
|
tbar: [{ xtype: 'pmgStatTimeSelector' }],
|
|
|
|
items: [
|
|
{
|
|
title: gettext('Rejects'),
|
|
xtype: 'proxmoxRRDChart',
|
|
fields: ['rbl_rejects', 'pregreet_rejects'],
|
|
fieldTitles: ['RBL', 'PREGREET'],
|
|
store: {
|
|
type: 'pmgStatStore',
|
|
includeTimeSpan: true,
|
|
staturl: "/api2/json/statistics/rejectcount",
|
|
fields: [
|
|
{ type: 'integer', name: 'rbl_rejects' },
|
|
{ type: 'integer', name: 'pregreet_rejects' },
|
|
{ type: 'date', dateFormat: 'timestamp', name: 'time' },
|
|
],
|
|
},
|
|
},
|
|
],
|
|
});
|