basic usage:
var norikra = require('norikra-client');
c = norikra.createClient('http://localhost:26571')
// get a list of targets
c.targets(function (err, targets){
console.log(targets);
})
c.open(target, fields, autoField, [callback])
target | target name to open fields | an object describing the fields with keys being the field name and values being the type autoField | boolean
c.close(target, [callback])
target
is the name of target stream to close
c.targets([callback])
returns a list of opened targets
c.register(name, query, [group], [callback])
register a query. default group is 'default' if not specified.
c.deregister(name, [callback])
deregister a query
c.queries([callback])
get a list of registered queries
c.events(query_name, [callback])
get an array of events captured by the query and sweep
c.send(target, events, [callback])
send an array of events to target