zero-statistics
Log request or bus event to database.
Usage
- Add dependency to your module package.json file like:
{
"name" : "YOUR_MODULE_NAME",
"zero" : {
"dependencies" : {
"statistics" : "^0.0.1"
}
}
}
- declare
statistics
in your module :
module.exports = {
statistics : {
log : {
"GET /post/*" : "daily",
"rest.fire.after" : {
strategy : "feed",
argv : ["post"]
}
}
}
}
- Simply visit
/statistic?type=GET /post/*-daily
to get results.