Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (22 sloc) 1.198 kB

TDMetrics - NodeJS Wrapper

NodeJS module to send metrics to TotenDev's Metrics

Build Status

Requirements

Installation

Install with npm some dependencies

$ npm install

Usage

var Metrics = require('./index.js')({projectID:"99",auth:"Basic dedewdewdew",host:"totendev.com",port:"8080",path:"/"});
Metrics.sendMetric("Status 202","202","Info","/index.html",function (resp,ok) { console.log(resp,ok); });
setTimeout(function () { console.log("Timed out"); },5000);

If you don't know what this parameters are please read How it works.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

GPL v3

Jump to Line
Something went wrong with that request. Please try again.