Neverending Plethora of Modules

npm

Need private packages and team management tools?Check out npm Orgs. »

This package has been deprecated

Author message:

only use not maintain

monitor-node

1.0.11 • Public • Published

monitor-node

API

getIP()

getPC()

update(argv)

参数 argv 是 mongoose对象或者connection实例,监控日志存储在 monitors集合

示例

let monitor = require('monitor-node');
let mongoose = require('mongoose');
let conn = mongoose.connect(log-uri);
let task = monitor.update(conn);
console.log(task);

备注

  1. 数据库记录只保存 1 天。
monitorSchema.index({ date: 1 }, { expireAfterSeconds: 3600 });

install

npm i monitor-node

Downloadsweekly downloads

14

version

1.0.11

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability