0.0.2 • Published 1 year ago

watchlog-metric v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

watchlog

A Node.js client for watchlog server .

Usage

const watchlog = require("watchlog-metric")

// Send Metric: Increments a stat by a value (default is 1)
watchlog.increment("Your_metric")

watchlog.increment("Your_metric" , 75)


// Send Metric: Decrements a stat by a value (default is 1)
watchlog.decrement("Your_metric")

watchlog.decrement("Your_metric" , 25)

// Send Metric: Percentage a stat by a value (value is required. min is 0 and max is 100)
watchlog.percentage("Your_metric" , 12.23)

// Send Metric: To measure a specific metric (value is required)
watchlog.gauge("Your_metric" , 12.23)

// Send Metric: To send byte of a metric (value is required)
watchlog.systembyte("Your_metric" , 1024000000) //for example : 1024000000 is 1 GB
0.0.2

1 year ago

0.0.1

1 year ago