mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-07-27 00:05:30 +00:00
add RBL statistics
This commit is contained in:
parent
4183c5557f
commit
a32c09e62d
@ -60,6 +60,7 @@ JSSRC= \
|
||||
VirusCharts.js \
|
||||
SpamScoreDistribution.js \
|
||||
GeneralMailStatistics.js \
|
||||
RBLStatistics.js \
|
||||
DomainStatistics.js \
|
||||
SenderStatistics.js \
|
||||
ReceiverStatistics.js \
|
||||
|
@ -142,6 +142,13 @@ Ext.define('PMG.store.NavigationStore', {
|
||||
border: false,
|
||||
leaf: true
|
||||
},
|
||||
{
|
||||
text: gettext('RBL'),
|
||||
iconCls: 'fa fa-line-chart',
|
||||
path: 'pmgRBLStatistics',
|
||||
border: false,
|
||||
leaf: true
|
||||
},
|
||||
{
|
||||
text: gettext('Domain'),
|
||||
iconCls: 'fa fa-table',
|
||||
|
33
js/RBLStatistics.js
Normal file
33
js/RBLStatistics.js
Normal file
@ -0,0 +1,33 @@
|
||||
Ext.define('PMG.RBLStatistics', {
|
||||
extend: 'Ext.panel.Panel',
|
||||
xtype: 'pmgRBLStatistics',
|
||||
|
||||
scrollable: true,
|
||||
|
||||
bodyPadding: '10 0 10 10',
|
||||
|
||||
title: gettext('Statistics') + ': ' + gettext('RBL rejects'),
|
||||
|
||||
tbar: [ { xtype: 'pmgStatTimeSelector' } ],
|
||||
|
||||
items: [
|
||||
{
|
||||
title: gettext('RBL rejects'),
|
||||
xtype: 'proxmoxRRDChart',
|
||||
legend: false,
|
||||
fields: [ 'count' ],
|
||||
fieldTitles: [
|
||||
gettext('RBL rejects'),
|
||||
],
|
||||
store: {
|
||||
type: 'pmgStatStore',
|
||||
includeTimeSpan: true,
|
||||
staturl: "/api2/json/statistics/rblcount",
|
||||
fields: [
|
||||
{ type: 'integer', name: 'count' },
|
||||
{ type: 'date', dateFormat: 'timestamp', name: 'time' }
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
Loading…
Reference in New Issue
Block a user