Comparing version 5.3.0 to 5.4.0
CHANGELOG | ||
========= | ||
## 5.4.0 (2018-4-26) | ||
* @RobGraham Added `distribution()` support for DataDog v6 | ||
## 5.3.0 (2018-4-3) | ||
@tanelso2 Added support for using default route on Linux | ||
* @tanelso2 Added support for using default route on Linux | ||
@@ -7,0 +10,0 @@ ## 5.2.0 (2018-2-28) |
@@ -198,3 +198,15 @@ "use strict"; | ||
/** | ||
* Represents the distribution stat | ||
* @param stat {String|Array} The stat(s) to send | ||
* @param value The value to send | ||
* @param sampleRate {Number=} The Number of times to sample (0 to 1). Optional. | ||
* @param tags {Array=} The Array of tags to add to metrics. Optional. | ||
* @param callback {Function=} Callback when message is done being delivered. Optional. | ||
*/ | ||
Client.prototype.distribution = function (stat, value, sampleRate, tags, callback) { | ||
this.sendAll(stat, value, 'd', sampleRate, tags, callback); | ||
}; | ||
/** | ||
@@ -201,0 +213,0 @@ * Gauges a stat by a specified amount |
{ | ||
"name": "hot-shots", | ||
"description": "Node.js client for StatsD, DogStatsD, and Telegraf", | ||
"version": "5.3.0", | ||
"version": "5.4.0", | ||
"author": "Steve Ivy", | ||
@@ -6,0 +6,0 @@ "types": "./types.d.ts", |
@@ -109,2 +109,5 @@ # hot-shots | ||
// Distribution: Tracks the statistical distribution of a set of values across your infrastructure. (DataDog v6) | ||
client.distribution('my_distribution', 42); | ||
// Gauge: Gauge a stat by a specified amount | ||
@@ -111,0 +114,0 @@ client.gauge('my_gauge', 123.45); |
@@ -78,2 +78,3 @@ import dgram = require("dgram"); | ||
histogram(stat: string | string[], value: number, sampleRate?: number, tags?: Tags, callback?: StatsCb): void; | ||
distribution(stat: string | string[], value: number, sampleRate?: number, tags?: Tags, callback?: StatsCb): void; | ||
gauge(stat: string | string[], value: number, sampleRate?: number, tags?: Tags, callback?: StatsCb): void; | ||
@@ -80,0 +81,0 @@ set(stat: string | string[], value: number, sampleRate?: 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
46687
753
229