operator: use limits route to get the max memory app can use

This commit is contained in:
Girish Ramakrishnan
2021-09-21 22:29:05 -07:00
parent b493355cbc
commit 26e9589842
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -1477,6 +1477,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.getAppLimits = function (appId, callback) {
get('/api/v1/apps/' + appId + '/limits', null, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
callback(null, data.limits);
});
};
Client.prototype.getAppWithTask = function (appId, callback) {
var that = this;