Comparing version 4.1.0 to 4.1.1
@@ -8,2 +8,5 @@ CHANGELOG | ||
## 4.1.1 (2015-5-22) | ||
* @ash2k date_happened should be seconds, not milliseconds | ||
## 4.1.0 (2015-5-8) | ||
@@ -10,0 +13,0 @@ * @ash2k Support multiline text in DataDog events |
@@ -199,4 +199,8 @@ "use strict"; | ||
if (options) { | ||
if (options.date_happened && options.date_happened instanceof Date) { | ||
message += '|d:' + options.date_happened.getTime(); | ||
if (options.date_happened instanceof Date) { | ||
// Datadog expects seconds. | ||
message += '|d:' + Math.round(options.date_happened.getTime() / 1000); | ||
} else if (options.date_happened instanceof Number) { | ||
// Make sure it is an integer, not a float. | ||
message += '|d:' + Math.round(options.date_happened); | ||
} | ||
@@ -203,0 +207,0 @@ if (options.hostname) { |
{ | ||
"name": "hot-shots", | ||
"description": "Node.js client for StatsD, DogStatsD, and Telegraf", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"author": "Steve Ivy", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
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
486
30064
6