mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-06-03 21:54:52 +00:00
35 lines
717 B
JavaScript
35 lines
717 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('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' }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
});
|