0.9.0 • Published 7 years ago

cloudinsight-sdk v0.9.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Cloudinsight SDK for Node.JS

npm.io npm.io npm.io npm.io npm.io

Installation

npm install cloudinsight-sdk

Quick Start Guide

// Require the module
var StatsD = require( 'cloudinsight-sdk' ).StatsD;

// Instantiate the StatsD, with host, port and global tags specified.
// The default host & port is 'localhost:8251'
var statsd = new StatsD( '127.0.0.1', 8251, [ 'machineName:awsBeijing1', 'timezone:GMT8' ] );

// Increment a counter.
statsd.increment('page.views')

// Increment a counter with value.
statsd.incrementBy('page.views', 100)


// Record a gauge with custom tags and sample rate(50% of the time).
statsd.gauge('users.online', 128, [ 'mytag:myvalue' ], 0.5)

For detailed information, please visit http://docs-ci.oneapm.com/api/nodejs.html

0.9.0

7 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago