juttle-opentsdb-adapter
Advanced tools
Comparing version 0.2.1 to 0.3.0
# 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 |
@@ -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
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 4 instances in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 4 instances in 1 package
5
693
0
0
45136
+ Addedajv@6.12.6(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@1.0.0(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedconst-max-uint32@1.0.2(transitive)
+ Addedconst-pinf-float64@1.0.0(transitive)
+ Addedcore-util-is@1.0.2(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedopentsdb@0.5.7(transitive)
+ Addedopentsdb-client@0.0.4(transitive)
+ Addedopentsdb-datum@1.0.0(transitive)
+ Addedopentsdb-mquery@0.0.1(transitive)
+ Addedopentsdb-query@0.0.2(transitive)
+ Addedopentsdb-tquery@0.0.2(transitive)
+ Addedopentsdb-url@0.0.2(transitive)
+ Addedopentsdb-validate-time@0.0.1(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpsl@1.15.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedregex-regex@1.0.0(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addedtype-name@2.0.2(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addedutils-copy@1.1.1(transitive)
+ Addedutils-copy-error@1.0.1(transitive)
+ Addedutils-indexof@1.0.0(transitive)
+ Addedutils-regex-from-string@1.0.0(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedvalidate.io-array@1.0.6(transitive)
+ Addedvalidate.io-array-like@1.0.2(transitive)
+ Addedvalidate.io-buffer@1.0.2(transitive)
+ Addedvalidate.io-integer@1.0.5(transitive)
+ Addedvalidate.io-integer-primitive@1.0.0(transitive)
+ Addedvalidate.io-nonnegative-integer@1.0.0(transitive)
+ Addedvalidate.io-number@1.0.3(transitive)
+ Addedvalidate.io-number-primitive@1.0.0(transitive)
+ Addedvalidate.io-string-primitive@1.0.1(transitive)
+ Addedverror@1.10.0(transitive)
- Removedopentsdb-validate-time@juttle/validate-time#unix-time-before-2001
Updatedopentsdb@^0.5.7