2017-01-31 23:26:29 +00:00
|
|
|
angular.module('portainer.rest')
|
2017-03-12 16:24:15 +00:00
|
|
|
.factory('ContainerTop', ['$http', 'Settings', 'EndpointProvider', function ($http, Settings, EndpointProvider) {
|
2017-01-31 23:26:29 +00:00
|
|
|
'use strict';
|
|
|
|
return {
|
|
|
|
get: function (id, params, callback, errorCallback) {
|
|
|
|
$http({
|
|
|
|
method: 'GET',
|
2017-03-12 16:24:15 +00:00
|
|
|
url: Settings.url + '/' + EndpointProvider.endpointID() + '/containers/' + id + '/top',
|
2017-01-31 23:26:29 +00:00
|
|
|
params: {
|
|
|
|
ps_args: params.ps_args
|
|
|
|
}
|
|
|
|
}).success(callback);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}]);
|