influxdb-client-js

InfluxDB 2.0 JavaScript client

View the Project on GitHub influxdata/influxdb-client-js

Home > @influxdata/influxdb-client > InfluxDB

InfluxDB class

InfluxDB entry point that configures communication with InfluxDB server and provide APIs to write and query data.

Signature:

declare class InfluxDB 

Constructors

Constructor Modifiers Description
(constructor)(options)   Creates influxdb client options from an options object or url.

Properties

Property Modifiers Type Description
processCSVResponse readonly (executor: APIExecutor, iterableResultExecutor: IterableResultExecutor) => AnnotatedCSVResponse  
transport readonly Transport  

Methods

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.