operator: use limits route to get the max memory app can use
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user