zero-statistic

0.0.12 • Public • Published

zero-statistics

Log request or bus event to database.

Usage

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

Readme

Keywords

Package Sidebar

Install

npm i zero-statistic

Weekly Downloads

11

Version

0.0.12

License

none

Last publish

Collaborators

  • sskyy