|
|
|
@ -2,7 +2,7 @@ var updateStats = function (serviceURL, id) {
|
|
|
|
|
invokerUtil.get(
|
|
|
|
|
serviceURL,
|
|
|
|
|
function (result) {
|
|
|
|
|
$(id).html(JSON.parse(result).data);
|
|
|
|
|
$(id).html(JSON.parse(result));
|
|
|
|
|
}, function (message) {
|
|
|
|
|
console.log(message);
|
|
|
|
|
}
|
|
|
|
@ -11,6 +11,7 @@ var updateStats = function (serviceURL, id) {
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
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/users/count", "#user-count");
|
|
|
|
|
});
|