InfluxDB 2.0 JavaScript client
Home > @influxdata/influxdb-client > InfluxDB
InfluxDB entry point that configures communication with InfluxDB server and provide APIs to write and query data.
Signature:
declare class InfluxDB
Constructor | Modifiers | Description |
---|---|---|
(constructor)(options) | Creates influxdb client options from an options object or url. |
Property | Modifiers | Type | Description |
---|---|---|---|
processCSVResponse | readonly |
(executor: APIExecutor, iterableResultExecutor: IterableResultExecutor) => AnnotatedCSVResponse | |
transport | readonly |
Transport |
Method | Modifiers | Description |
---|---|---|
getQueryApi(org) | Creates QueryApi for the supplied organization . | |
getWriteApi(org, bucket, precision, writeOptions) | Creates WriteApi for the supplied organization and bucket. BEWARE that returned instances must be closed in order to flush the remaining data and close already scheduled retry executions. |