Merge pull request #194 from danharvey/add-hitcount-function

Added hitcount Transform function.
This commit is contained in:
Torkel Ödegaard 2014-03-12 09:57:47 +01:00
commit 336cf768d8
2 changed files with 12 additions and 5 deletions

View File

@ -3,12 +3,12 @@ And if you have time clone this repo and submit a pull request and help me make
kickass metrics & devops dashboard we all dream about!
Prerequisites:
Nodejs (for jshint & grunt & development server)
- Nodejs (for jshint & grunt & development server)
Clone repository:
npm install
grunt server (starts development web server in src folder)
grunt (runs jshint and less -> css compilation)
npm install
grunt server (starts development web server in src folder)
grunt (runs jshint and less -> css compilation)
Please remember to run grunt before doing pull request to verify that your code passes all the jshint validations.
Please remember to run grunt before doing pull request to verify that your code passes all the jshint validations.

View File

@ -213,6 +213,13 @@ function (_) {
category: categories.Transform,
});
addFuncDef({
name: 'hitcount',
category: categories.Transform,
params: [ { name: "interval", type: "string" }],
defaultParams: ['10s']
});
addFuncDef({
name: 'averageAbove',
category: categories.Filter,