New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

juttle-opentsdb-adapter

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

juttle-opentsdb-adapter - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

6

CHANGELOG.md
# Change Log
This file documents all notable changes to the juttle-opentsdb-adapter. The release numbering uses [semantic versioning](http://semver.org).
## 0.3.0
Released 2016-03-23
### Minor Change
- Support juttle v0.7.0
## 0.2.1

@@ -5,0 +11,0 @@ Released 2016-03-09

31

lib/read.js

@@ -20,2 +20,6 @@ 'use strict';

static requiredOptions() {
return ['from'];
}
//initialization functions

@@ -29,3 +33,2 @@

this.validateOptions(options);
this.setOptions(options);

@@ -45,8 +48,2 @@

validateOptions(options) {
if (!_.has(options, 'from')) {
throw this.compileError('MISSING-OPTION', { option: "from" });
}
}
setOptions(options) {

@@ -108,10 +105,16 @@ this.debugOption = options.debug;

if (from) {
this.client.start(from.milliseconds());
this.logger.debug('start time', JSON.stringify(from));
let start = this.getAbsoluteTime(from.clone());
this.client.start(start);
this.logger.debug('start time', start);
}
let end = to || new Date();
this.client.end(end.milliseconds());
this.logger.debug('end time', JSON.stringify(end));
let end = to || new JuttleMoment({rawDate: new Date()});
end = this.getAbsoluteTime(end.clone());
this.client.end(end);
this.logger.debug('end time', end);
}
getAbsoluteTime(juttleMoment) {
return JuttleMoment.format(juttleMoment, 'YYYY/MM/DD-HH:mm:ss');
}

@@ -140,3 +143,3 @@ formatPoints(metric_info) {

}],
readEnd: new JuttleMoment(Infinity)
eof: true
};

@@ -143,0 +146,0 @@ }

{
"name": "juttle-opentsdb-adapter",
"version": "0.2.1",
"version": "0.3.0",
"description": "OpenTSDB Adapter for Juttle",

@@ -26,8 +26,5 @@ "keywords": [

"bluebird-retry": "^0.5.3",
"opentsdb": "juttle/opentsdb.js#temp-client",
"opentsdb": "^0.5.7",
"opentsdb-socket": "0.0.2",
"underscore": "^1.8.3",
"opentsdb-client": "juttle/client#allow-unix-time-zero",
"opentsdb-datum": "juttle/datum#allow-value-zero",
"opentsdb-validate-time": "juttle/validate-time#unix-time-before-2001"
"underscore": "^1.8.3"
},

@@ -40,3 +37,3 @@ "devDependencies": {

},
"juttleAdapterAPI": "^0.5.0",
"juttleAdapterAPI": "^0.7.0",
"engines": {

@@ -43,0 +40,0 @@ "node": ">=4.2.0",

Sorry, the diff of this file is not supported yet

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