Comparing version 5.9.0 to 5.9.1
CHANGELOG | ||
========= | ||
## 5.9.1 (2018-9-18) | ||
* @etaoins Add asyncTimer types | ||
* @blimmer: Add increment doc snippet | ||
## 5.9.0 (2018-7-27) | ||
@@ -5,0 +9,0 @@ * @chrismatheson: Fix timer to have duration in microseconds (was nanoseconds) |
{ | ||
"name": "hot-shots", | ||
"description": "Node.js client for StatsD, DogStatsD, and Telegraf", | ||
"version": "5.9.0", | ||
"version": "5.9.1", | ||
"author": "Steve Ivy", | ||
@@ -6,0 +6,0 @@ "types": "./types.d.ts", |
@@ -136,2 +136,5 @@ # hot-shots | ||
client.increment(['these', 'are', 'different', 'stats']); | ||
// Incrementing with tags | ||
client.increment('my_counter', ['foo', 'bar']); | ||
@@ -138,0 +141,0 @@ // Sampling, this will sample 25% of the time the StatsD Daemon will compensate for sampling |
@@ -91,2 +91,7 @@ import dgram = require("dgram"); | ||
asyncTimer<T>(func: (...args: any[]) => Promise<T>, stat: string | string[], sampleRate?: number, tags?: Tags, callback?: StatsCb): (...args: any[]) => Promise<T>; | ||
asyncTimer<T>(func: (...args: any[]) => Promise<T>, stat: string | string[], tags?: Tags, callback?: StatsCb): (...args: any[]) => Promise<T>; | ||
asyncTimer<T>(func: (...args: any[]) => Promise<T>, stat: string | string[], callback?: StatsCb): (...args: any[]) => Promise<T>; | ||
asyncTimer<T>(func: (...args: any[]) => Promise<T>, stat: string | string[], sampleRate?: number, callback?: StatsCb): (...args: any[]) => Promise<T>; | ||
histogram(stat: string | string[], value: number, sampleRate?: number, tags?: Tags, callback?: StatsCb): void; | ||
@@ -93,0 +98,0 @@ histogram(stat: string | string[], value: number, tags?: Tags, callback?: StatsCb): void; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55600
872
241
3