Creates a new Pool instance.
Inserts a new host to the pool.
Makes a request and discards any response body it receives. An error is returned on a non-2xx status code.
Returns a list of currently active hosts.
Returns a list of hosts that are currently disabled due to network errors.
Returns true if there's any host available to by queried.
Makes a request and calls back with the response, parsed as JSON. An error is returned on a non-2xx status code or on a parsing exception.
Ping sends out a request to all available Kapacitor servers, reporting on their response time and version number.
Makes a request and calls back with the IncomingMessage stream, if possible. An error is returned on a non-2xx status code.
Makes a request and resolves with the plain text response, if possible. An error is raised on a non-2xx status code.
Generated using TypeDoc
The Pool maintains a list available Kapacitor hosts and dispatches requests to them. If there are errors connecting to hosts, it will disable that host for a period of time.