statful-client
Advanced tools
Comparing version 4.2.0 to 4.3.0
@@ -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 @@ |
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
94464
254