@shopify/statsd
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -8,2 +8,8 @@ # Changelog | ||
## [1.2.0] - 2019-12-24 | ||
### Added | ||
- added `gauge` metric support from `hot-spot` | ||
## [1.1.0] - 2019-10-08 | ||
@@ -10,0 +16,0 @@ |
@@ -16,2 +16,3 @@ import { ClientOptions } from 'hot-shots'; | ||
distribution(stat: string | string[], value: number, tags?: Tags): Promise<void>; | ||
gauge(stat: string | string[], value: number, tags?: Tags): Promise<void>; | ||
increment(stat: string | string[], tags?: Tags): Promise<void>; | ||
@@ -18,0 +19,0 @@ close(): Promise<void>; |
@@ -29,2 +29,8 @@ "use strict"; | ||
}; | ||
StatsDClient.prototype.gauge = function (stat, value, tags) { | ||
var _this = this; | ||
return new Promise(function (resolve) { | ||
_this.statsd.gauge(stat, value, _this.normalizeTags(tags), _this.createCallback(resolve)); | ||
}); | ||
}; | ||
StatsDClient.prototype.increment = function (stat, tags) { | ||
@@ -31,0 +37,0 @@ var _this = this; |
{ | ||
"name": "@shopify/statsd", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "An opinionated StatsD client for Shopify Node.js server and other StatsD utilities.", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
326922
119