Connect to a single Kapacitor instance by specifying a set of connection options.
Get config.
result
Return a task. returns the results in a friendly format, ITask.
the task id.
result
Return a array of tasks. returns the results in a friendly format, ITasks.
result(s)
Return a template. returns the results in a friendly format, ITemplate.
the template id.
result(s)
Return a array of template. returns the results in a friendly format, ITemplates.
result(s)
Pings all available hosts, collecting online status and version info.
Given in milliseconds
remove a task with the provided task id.
remove a template with the provided template id.
Update config.
Update a task with the provided task id.
Generated using TypeDoc
Kapacitor is an open source framework for processing, monitoring, and alerting on time series data. This is a 'driver-level' module, not a a full-fleged ORM or ODM. you run queries directly by calling methods on this class.
import { Kapacitor } from 'kapacitor'; const kapacitor = new Kapacitor({ host: 'localhost' }) kapacitor.getTasks().then(res => { console.log(JSON.stringify(res, null, 2)); })