mirror of https://github.com/apache/cloudstack.git
metrics: work in progress list views
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
62bccb08d4
commit
992693b67e
|
|
@ -16,6 +16,20 @@
|
|||
// under the License.
|
||||
(function(cloudStack) {
|
||||
cloudStack.sections.metrics = {
|
||||
title: 'label.metrics',
|
||||
listView: {
|
||||
id: 'metrics',
|
||||
fields: {
|
||||
name: {
|
||||
label: 'metrics'
|
||||
}
|
||||
},
|
||||
hideSearchBar: true
|
||||
}
|
||||
};
|
||||
|
||||
// Cluster Metrics
|
||||
cloudStack.sections.metrics.cluster = {
|
||||
title: 'label.metrics',
|
||||
listView: {
|
||||
id: 'metrics',
|
||||
|
|
@ -25,13 +39,25 @@
|
|||
}
|
||||
},
|
||||
dataProvider: function(args) {
|
||||
var data = {};
|
||||
listViewDataProvider(args, data);
|
||||
// TODO implement provider
|
||||
console.log("Metris view dataprovider triggered");
|
||||
console.log(args);
|
||||
},
|
||||
actions: {
|
||||
// TODO implement refresh action
|
||||
}
|
||||
refreshMetric: {
|
||||
label: 'label.refresh',
|
||||
isHeader: true,
|
||||
addRow: true,
|
||||
action: {
|
||||
custom: function (args) {
|
||||
return function() {
|
||||
return console.log("Cluster Refresh metrics");
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
hideSearchBar: true,
|
||||
needsRefresh: true
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue