fh-metrics-client

1.0.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i fh-metrics-client

Weekly Downloads

1

Version

1.0.6

License

Apache-2.0

Unpacked Size

28.4 kB

Total Files

10

Last publish

Collaborators

  • darahayes
  • davidffrench
  • feedhenry
  • feedhenry-dev
  • grdryn
  • maleck13
  • omatskiv
  • philipgough