Socket
Socket
Sign inDemoInstall

hot-shots

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hot-shots - npm Package Compare versions

Comparing version 5.3.0 to 5.4.0

5

CHANGES.md
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

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc