pmg-gui/js/RBLStatistics.js
Dominik Csapak 771bd0b94b jslint: remove trailing commas
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:29:17 +02:00

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