@adobe/aio-metrics-client

0.4.0 • Public • Published

aio-metrics-client

This library is for enabling tracking of our App Builder services.

Version

Usage

// Import
const { setMetricsURL, incBatchCounter } = require('../src/index')

// Setting the URL to send the batched metrics to
setMetricsURL('https://...<your server>...')

// Incrementing the count of a metric for a specific namespace. eg:- 'requestCount'
await incBatchCounter('requestCount', 'mynamespace')

// Incrementing the count of a metric for a specific namespace with a label such as an error type or http response type
await incBatchCounter('errorCount', 'mynamespace', 'auth')
await incBatchCounter('responseCount', 'mynamespace', '403')

Readme

Keywords

none

Package Sidebar

Install

npm i @adobe/aio-metrics-client

Weekly Downloads

1,280

Version

0.4.0

License

none

Unpacked Size

5.89 kB

Total Files

3

Last publish

Collaborators

  • amol-anand
  • doten
  • stopp-adobe
  • dylandepass
  • djaeggi
  • adobehalls
  • fullcolorcoder
  • marbec
  • tripod
  • garthdb
  • lazd
  • adobe-admin
  • patrickfulton
  • trieloff
  • shazron
  • krisnye
  • dcpfsdk
  • natebaldwin
  • devongovett
  • aspro83
  • symanovi
  • dpfister
  • stefan-guggisberg
  • korra
  • rofe
  • kptdobe