Created
July 10, 2012 23:00
-
-
Save spolu/3086787 to your computer and use it in GitHub Desktop.
DaTtSs client library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var foo = require('dattss').process({ name: 'foo', | |
auth: '__YOUR_AUTH_KEY__' }); | |
/* DaTtSs lets you aggregate 3 types of statistics */ | |
foo.agg('new', '1c'); // counters (evolves incrementally) | |
foo.agg('query', '153ms'); // timers (time it takes to do smthg) | |
foo.agg('users', '23g'); // gauges (snapshot of a value) | |
/* It's also possible to emphasize a statistic */ | |
foo.agg('signup', '1c!'); // emphasized counter | |
/* The `error` counter is detected and displayed in red */ | |
foo.agg('error', '1c'); // error counter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment