0.4.1 • Published 9 months ago

@adobe/aio-metrics-client v0.4.1

Weekly downloads
-
License
-
Repository
github
Last release
9 months ago

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')
0.4.1

9 months ago

0.4.0

1 year ago

0.3.0

3 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.2

4 years ago