add RBL statistics

This commit is contained in:
Dietmar Maurer 2017-09-11 12:32:12 +02:00
parent 4183c5557f
commit a32c09e62d
3 changed files with 41 additions and 0 deletions

View File

@ -60,6 +60,7 @@ JSSRC= \
VirusCharts.js \
SpamScoreDistribution.js \
GeneralMailStatistics.js \
RBLStatistics.js \
DomainStatistics.js \
SenderStatistics.js \
ReceiverStatistics.js \

View File

@ -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
View 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' }
]
}
}
]
});