cloudstack/ui/scripts-test/dashboard.js
Brian Federle 49aa03a807 Dashboard updates
-Implement general and host alert listings

-Move dashboard UI code to ui-custom/dashbaord.js
2011-12-14 15:44:09 -08:00

27 lines
711 B
JavaScript

(function(cloudStack, testData) {
// Admin dashboard
cloudStack.sections.dashboard = {
title: 'Dashboard',
show: cloudStack.uiCustom.dashboard,
dataProvider: function(args) {
args.response.success({
data: {
publicIPAllocated: 50,
publicIPTotal: 100,
publicIPPercentage: 50,
privateIPAllocated: 50,
privateIPTotal: 100,
privateIPPercentage: (100 / 50) * 10,
memoryAllocated: 256,
memoryTotal: 1024,
memoryPercentage: (1024 / 256) * 10,
cpuAllocated: 500,
cpuTotal: 1200,
cpuPercentage: (1200 / 500) * 10
}
});
}
};
})(cloudStack, testData);