datamonitor

0.0.3 • Public • Published

DataMonitor

datamonitor是一个监控服务,启动之后监听一个端口。 客户端通过socket连接将实际用户的请求信息发送到这个服务器, {type, date, name, id, ext, action}\x01{......} datamonitor通过统计这些流量的频率来判断用户是否为爬数据行为

Usage

hooks

hooks = {
  initLog: function (log) {
    // this function will called when hook loaded, and an log Object will send in
  },
  onKill: functon (node) {
 
  },
  onMessage: function (cache, message) {
 
  },
  onInterval: function (actions) {
 
  }
}

Config

Client

client可以发送两种信息:

1. realtime process data
   {
      type: 信息分组

   }
2. errorLog

Readme

Keywords

none

Package Sidebar

Install

npm i datamonitor

Weekly Downloads

2

Version

0.0.3

License

none

Last publish

Collaborators

  • fish