/
ControlNodeListModel.js
36 lines (35 loc) · 1.18 KB
/
ControlNodeListModel.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
*/
define([
'contrail-list-model'
], function (ContrailListModel) {
var vlRemoteConfig = [
{
getAjaxConfig: function(responseJSON) {
return monitorInfraUtils.getAjaxConfigForInfraNodesCpuStats(
monitorInfraConstants.CONTROL_NODE,responseJSON,'summary');
},
successCallback: function(response, contrailListModel) {
monitorInfraUtils.parseAndMergeCpuStatsWithPrimaryDataForInfraNodes(
response, contrailListModel);
}
}
];
var listModelConfig = {
remote : {
ajaxConfig : {
url : ctwl.CONTROLNODE_SUMMARY_URL
},
dataParser : monitorInfraParsers.parseControlNodesDashboardData
},
vlRemoteConfig :{
vlRemoteList : vlRemoteConfig
},
cacheConfig : {
ucid: ctwc.CACHE_CONTROLNODE
}
};
return listModelConfig;
}
);