0.0.12 • Published 9 years ago

zero-statistic v0.0.12

Weekly downloads
45
License
-
Repository
-
Last release
9 years ago

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.
0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.1

10 years ago