interface default { close(): Promise<void>; doWrite( lines: string[], bucket: string, org?: string, writeOptions?: Partial<WriteOptions>, ): Promise<void>;} Methods
close
- close(): Promise<void>
Returns Promise<void>
completition promise
doWrite
- doWrite(
lines: string[],
bucket: string,
org?: string,
writeOptions?: Partial<WriteOptions>,
): Promise<void> Parameters
- lines: string[]
- bucket: string
Optional
org: stringOptional
writeOptions: Partial<WriteOptions>
Returns Promise<void>
Asynchronous API that writes time-series data into InfluxDB. This API always sends data to InfluxDB immediately