fh-metrics-client
v1.0.6
Published
client for interfacing with metrics
Downloads
10
Keywords
Readme
fh-metrics-client
Install
npm install fh-metrics-client --save
Usage
Import the module, pass the configuration for metrics
var fhMetrics = require('fh-metrics')(metricsConfig)
fhMetrics.getAppMetrics(params,cb);
//params is an object:
{
"metric":"apprequestdest",
"from": timestamp,
"to":timestamp,
"app":<appguid>
}
fhMetrics.getDomainMetrics(params,cb);
//params is an object:
{
"metric":"apprequestdest",
"from": timestamp,
"to":timestamp,
"domain":<domain>
}
###Versioning
Bump version numbers in
- npm-shrinkwrap.json
- package.json
- sonar-project.properties