|
|
@ -2,7 +2,7 @@ var updateStats = function (serviceURL, id) {
|
|
|
|
invokerUtil.get(
|
|
|
|
invokerUtil.get(
|
|
|
|
serviceURL,
|
|
|
|
serviceURL,
|
|
|
|
function (result) {
|
|
|
|
function (result) {
|
|
|
|
$(id).html(JSON.parse(result).data);
|
|
|
|
$(id).html(JSON.parse(result));
|
|
|
|
}, function (message) {
|
|
|
|
}, function (message) {
|
|
|
|
console.log(message);
|
|
|
|
console.log(message);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -11,6 +11,7 @@ var updateStats = function (serviceURL, id) {
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
$(document).ready(function(){
|
|
|
|
updateStats("/iotserver/api/devices/count", "#device-count");
|
|
|
|
updateStats("/iotserver/api/devices/count", "#device-count");
|
|
|
|
|
|
|
|
updateStats("/iotserver/api/group/all/count", "#group-count");
|
|
|
|
updateStats("/iotserver/api/policies/count", "#policy-count");
|
|
|
|
updateStats("/iotserver/api/policies/count", "#policy-count");
|
|
|
|
updateStats("/iotserver/api/users/count", "#user-count");
|
|
|
|
updateStats("/iotserver/api/users/count", "#user-count");
|
|
|
|
});
|
|
|
|
});
|