Blame view

lib/matrix.js 582 Bytes
cd4feda87   Adhidarma Hadiwinoto   APISERVER and MATRIX
1
2
3
4
5
  const os = require('os');
  // const config = require('komodo-sdk/config');
  
  module.exports = {
      pid: process.pid,
352496124   Adhidarma Hadiwinoto   matrix.start_time...
6
      ts: new Date(),
cd4feda87   Adhidarma Hadiwinoto   APISERVER and MATRIX
7
      start_time: new Date(),
352496124   Adhidarma Hadiwinoto   matrix.start_time...
8
9
      start_time_from_now: null,
      uptime_secs: process.uptime(),
cd4feda87   Adhidarma Hadiwinoto   APISERVER and MATRIX
10
11
12
13
14
15
16
17
18
19
20
21
22
      hostname: os.hostname(),
      loadavg: os.loadavg(),
      workdir: process.cwd(),
      memory_usage: process.memoryUsage(),
      messages_from_core: 0,
      messages_to_core: 0,
      callback_sender: {
          message_sent: 0,
          message_sent_failed: 0,
          message_sent_using_get_method: 0,
          message_sent_using_post_method: 0,
      },
  };