Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

statful-client

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

statful-client - npm Package Compare versions

Comparing version 4.2.0 to 4.3.0

2

lib/client.js

@@ -440,3 +440,3 @@ 'use strict';

this.protocol = 'https';
this.basePath = '/tel/v2.0/metrics';
this.basePath = config.api.path || config.path || '/tel/v2.0/metrics';
this.timeout = config.api.timeout || 2000;

@@ -443,0 +443,0 @@ this.token = config.token || config.api.token;

@@ -13,3 +13,3 @@ {

},
"version": "4.2.0",
"version": "4.3.0",
"engines": {

@@ -16,0 +16,0 @@ "node": ">=0.8"

@@ -209,2 +209,3 @@ Statful Client for NodeJS

| _host_ | Defines the host name to where the metrics should be sent. Can also be set inside _api_. | `string` | `127.0.0.1` | **NO** |
| _path_ | Defines the api path to where the metrics should be sent. Can also be set inside _api_. | `string` | `/tel/v2.0/metric` | **NO** |
| _port_ | Defines the port. Can also be set inside _api_. | `string` | `2013` | **NO** |

@@ -229,5 +230,5 @@ | _token_ | Defines the token to be used. Must be set inside _api_. | `string` | **none** | **NO** |

```
The methods for non aggregated metrics receive a metric name and a metric value as arguments and send a counter/gauge/timer/custom metric.
The methods for aggregated metrics receive a metric name, a metric value, an aggregation and an aggregation frequency (used previously to aggregate the metric) as arguments and send a counter/gauge/timer/custom metric.
If the options parameter is omitted, the default values are used. Those methods are truly valuable due to need of ingest already aggregated metrics into Statful (for example from AWS CloudWatch).
The methods for non aggregated metrics receive a metric name and a metric value as arguments and send a counter/gauge/timer/custom metric.
The methods for aggregated metrics receive a metric name, a metric value, an aggregation and an aggregation frequency (used previously to aggregate the metric) as arguments and send a counter/gauge/timer/custom metric.
If the options parameter is omitted, the default values are used. Those methods are truly valuable due to need of ingest already aggregated metrics into Statful (for example from AWS CloudWatch).
Read the methods options reference bellow to get more information about the default values.

@@ -234,0 +235,0 @@

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