0.0.6 • Published 7 years ago

sugar-watcher v0.0.6

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

sugar-watcher

sugar2.0框架的监控组件。

API

time(key, timestamp)

对key进行一定时间范围内的时间差计算,以统计接口的平均耗时

const watcher = require('sugar-watcher');
// watcher.time('test', [endTime - startTime]);

count(key)

对key进行一定时间范围内的计数

const watcher = require('sugar-watcher');
watcher.count('test');
0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.1

7 years ago