 
   uptime = ->
     prettyHrtime process.hrtime start
+
+  processInfos = ()->
+    processInfosList = [
+      pid         : process.pid,
+      arch        : process.arch,
+      platform    : process.platform,
+      memoryUsage : process.memoryUsage(),
+      uptime      : process.uptime(),
+      execPath    : process.execPath,
+      execArgv    : process.execArgv
+    ]
+    processInfosList
+
+  osInfos = ()->
+    osInfosList = [
+      platform : os.platform(),
+      arch     : os.arch(),
+      release  : os.release(),
+      uptime   : os.uptime(),
+      loadavg  : os.loadavg(),
+      totalmem : os.totalmem(),
+      freemem  : os.freemem()
+    ]
+    osInfosList
 
   globalStatus = (statuses) ->
     for status in statuses

express = require 'express'
Promise = require 'bluebird'
prettyHrtime = require 'pretty-hrtime'
_ = require 'lodash'

module.exports = (params = {}) ->
  defaultParams =

      if _.isArray custom
        for result in custom
          body[result.key] = result.result
      body.status       = globalStatus statuses
      body.processInfos = processInfos()
      body.osInfos      = osInfos()
      res.send body
  return app
