Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function transformProcessResponse(json) {
var map = {
list: 'rows',
item: {
id: 'PID',
parentId: 'PPID',
user: 'USER',
processorUtilization: '%CPU',
memoryUtilization: '%MEM',
command: 'COMMAND'
}
};
var dataTransform = DataTransform(json, map);
return dataTransform.transform();
}
__transformResponse(data, map) {
let dataTransform = DataTransform(data, map)
let transformedData = dataTransform.transform()
return transformedData
}