juttle-influx-adapter
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -75,3 +75,2 @@ var _ = require('underscore'); | ||
var Read = Juttle.proc.source.extend({ | ||
sourceType: 'batch', | ||
procName: 'read-influx', | ||
@@ -78,0 +77,0 @@ |
@@ -19,9 +19,4 @@ var ASTVisitor = require('juttle/lib/compiler/ast-visitor'); | ||
_.each([ | ||
'MomentDuration', | ||
'CalendarExpression', | ||
'YesterDayLiteral', | ||
'TodayLiteral', | ||
'TomorrowLiteral', | ||
'ISODateLiteral', | ||
'NowLiteral' | ||
'MomentLiteral', | ||
'DurationLiteral' | ||
], function(node) { | ||
@@ -33,13 +28,2 @@ Lints['visit' + node] = function() { | ||
// Beginning/end/forever are illegal | ||
_.each([ | ||
'BeginningLiteral', | ||
'EndLiteral', | ||
'ForeverLiteral', | ||
], function(node) { | ||
Lints['visit' + node] = function(node) { | ||
throw new Error('Node ' + node.value + ' cannot be used in filter'); | ||
}; | ||
}); | ||
module.exports = ASTVisitor.extend(Lints); |
{ | ||
"name": "juttle-influx-adapter", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Juttle adapter for InfluxDB", | ||
"keywords": ["juttle", "adapter", "influxdb"], | ||
"keywords": [ | ||
"juttle", | ||
"adapter", | ||
"influxdb" | ||
], | ||
"homepage": "https://github.com/juttle/juttle-influx-adapter", | ||
@@ -7,0 +11,0 @@ "bugs": "https://github.com/juttle/juttle-influx-adapter/issues", |
@@ -57,2 +57,17 @@ # Juttle InfluxDB Adapter | ||
### Authentication | ||
Influx adapter supports HTTP basic authentication. To use it, modify the `url` | ||
key to include the username and password: | ||
```json | ||
{ | ||
"adapters": { | ||
"juttle-influx-adapter": { | ||
"url": "http://username:password@localhost:8086/" | ||
} | ||
} | ||
} | ||
``` | ||
## Usage | ||
@@ -59,0 +74,0 @@ |
@@ -47,5 +47,5 @@ var _ = require('underscore'); | ||
var ast = parser.parseFilter(test); | ||
expect(linter.lint.bind(linter, ast)).to.throw(/cannot be used in filter/); | ||
expect(linter.lint.bind(linter, ast)).to.throw(/Filtering by time is not supported/); | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
135956
35
118
1394